You can run Java applications just fine without setting the
Set the
Open Notepad,Write The Following Code.
Now,You Can Run The Program Without Navigating to Directory.
There is only disadvantage in this Method.You have to Run setpath.bat each time you Restart your Computer.
There is Another Method For Setting Class Path Permanently.
It Can be Found on Official Oracle Site Here.
Keep Checking.More Java Tutorials To Be Posted...!
PATH
environment variable. Or, you can optionally set it as a convenience.Set the
PATH
environment variable if you want to be able to conveniently run the executables (javac.exe
, java.exe
, javadoc.exe
, and so on) from any directory without having to type the full path of the command. If you do not set the PATH
variable, you need to specify the full path to the executable every time you run it, such as:C:\Java\jdk\bin\javac program.java
The Method:
Open Notepad,Write The Following Code.
Save it as setpath.batPATH=C:/java/jdk/bin
Now,You Can Run The Program Without Navigating to Directory.
There is only disadvantage in this Method.You have to Run setpath.bat each time you Restart your Computer.
There is Another Method For Setting Class Path Permanently.
It Can be Found on Official Oracle Site Here.
Keep Checking.More Java Tutorials To Be Posted...!
Enjoy...