Run the setup executable.
Running java classes...
Now you have to make sure that the jdk bin directory is in your system path. For some reason i have to set this every time on my computer, so you might want to make a batch file.
the command is as follows (with the respective bin dir):
path %path%;c:\j2sdk1.4.0\bin
then typing 'java' should give you the usage output.
to run a java class (dont use the extension .class):
java MyClass <any args that MyClass takes in>
(you only need the classpath if MyClass links other classes outside of the current dir or it is not in the current dir itself. java -cp c:\others MyClass)
2 ways to compile source code (I recommend that you use the first way enough so that your familiar with it):
1. javac
again make sure the bin dir is in the system path.
javac *.java
will compile all java files in the current dir
javac MyClass.java
will compile MyClass
again use -classpath if you need classes from another directory to compile or -sourcepath for source files
2. use a java editor that interfaces with the java compiler.
i recommend
or JCreator LE (check
thats just a brief explanation. if you have anymore questions, just ask. If you leave it for the last minute, it only takes a minute.
-MetalEye the Procrastinoid