Glad you got it working.
Type: Posts; User: Norm
Glad you got it working.
Use the java command with the classname to execute the class.
See the tutorial: http://docs.oracle.com/javase/tutorial/getStarted/cupojava/win32.html
The space in the folder name requires that the full path be enclosed in quotes:
"C:\Program Files\Java\jdk1.7.0_45\bin/javac.exe"
MS has messed up more people with that folder named: Program Files
It looks ok.
That was from the contents of the comandprompt window from when I executed the batch file.
1) find the path to your javac.exe file
2) replace the path to my javac.exe file with the path to your javac.exe file
3)replace the name of my java file with the name of your java file.
4) save...
The batch file contains a command line and the MORE command.
Can you execute the javac command in a command prompt window? Use that exact same command line as the first line of the batch file. ...
Is that from when the batch file was executed? Here is the batch file named: CompileTestCode16.bat
In Meta format. Replace items inside <> with your values:
<PATH TO THE javac.exe file> <The java...
A batch file is a way to save a commandline in a file and execute it by double clicking on it. The javac command will not harm your system. A batch file is a simple and quick way to execute a...
Create a batch file with 2 lines similar to what is shown in post#4. Replace the path to the javac.exe file with the path on your PC and replace the name of the .java file with the name of your java...
Are you able to compile now? If not, make a simple batch file to do compiles(see post#4)
There are lots of tutorials on how to set the Path environment variable.
I don't know anything about...
Is the bin folder with javac.exe on the Path variable?
A quick way for short term usage is to make a batch file that will compile a java file:
<PATH TO THE javac.exe file> <The java file>.java...