1- Very important.
|
set PATH="C:\Program Files\Java\jdk1.5.0_14\bin";%PATH% set JAVA_HOME="C:\Program Files\Java\jdk1.5.0_14" set PATH=%JAVA_HOME%\bin;%PATH% |
|
rem Display environment variables for verification echo Verify current build environment settings: echo CLASSPATH: %CLASSPATH% echo JAVA_HOME: %JAVA_HOME% echo ICS211_HOME: %ICS211_HOME% echo TEXTPAD_HOME: %TEXTPAD_HOME% echo . echo PATH: %PATH% echo . rem GoTo ICS211_HOME directory d: cd %ICS211_HOME% |
To create a similar batch file, you should verify the full paths to any directories that you want to
add to your system PATH variable. Then you can make any necessary changes to this
example code, and save it as a batch file on your system.
You can download a copy of my batch file using this URL:
kutay.bat
|
// JAVA Compiler : Console> javac JavaFileName.java |
How to Run,
|
Console> java JavaFileName |