You can use the command prompt or use an IDE. You can find a link with some IDE's
http://www.tech-forums.net/showthrea...threadid=31371
Just scroll down to the Java Resources Section
Now if you want to use the command prompt, follow this:
1. Install the JavaSDK (Preferably version 1.4.2 or 1.5.0) which you can get at
http://java.sun.com/ (for this tutorial, I'm going to assume you installed the SDK to C:\Program Files\Sun\jSDK1.5.0\ or C:\Program Files\Sun\jSDK1.4.2\ depending on the version you installed
2. Open the command prompt by going to Start->Run and type cmd and press enter
3. Make your java file, such as HelloWorld.java then place it in a directory, I'm going to put it in C:\JavaFiles\
4. In the command prompt type (it changes you to the javafiles directory):
cd C:\JavaFiles\
5. Then type (This actually does the compiling):
c:\program files\Sun\jSDK1.5.0\bin\javac HelloWorld.java
6. Step 5 does the compiling, it creates a HelloWorld.class in the C:\JavaFiles\HelloWorld.class
7. To run the Hello World application type this in the commmand prompt (This runs the program):
C:\program files\Sun\jSDK1.5.0\bin\java HelloWorld
8. If you add the Javac and Java program to your environmental variables you only need to type:
cd <Dir that contains your java files>
javac HelloWorld.java
java HelloWorld
Just replace the < and > with your directory.
Hope that helps some