You write your JAVA code in a text file editor like note pad and save the file with a JAVA extension
You then compile that code file using a program called JAVAC which compiles the text file into a bytecode class file.
Then you can run the class by calling JAVA [Class file name]
These programs are called from within a DOS Command window.
To make life a little easier when using JAVA in a DOS environment it helps to have the JAVA directory included in the systems PATH. This helps the OS find your java programs without the need for you to have to type the path as part of the command.
When you ran the installation program, JAVA was placed in a directory like C:\Program Files\Java.
Find this directory (it may be slightly different on your system) and add it to the PATH environment variable for your OS. Open the Control Panel and click on system then open the Advanced tab and click on the environment variable button. Find the PATH variable and click edit and append the JAVA path to the existing PATH string. You need to separate the existing and new paths with a semicolon ;
C:\Temp;C:\Program Files\Java
Just add a semicolon to the end of the existing path statement before you paste the JAVA path into it and you will be fine.
By adding the JAVA path you will be able to find the JAVA programs without having to type the path as part of the command.
Test to see if your JAVA is installed and Path statment is working by checking the version from within a DOS Command window
JAVA -version (enter)
If this works and responds with version info all is well, if you get a file not found error you have a configuration error in the path or java isn't installed
Visual BASIC is Sooooo Much easier........................