I cant run Java programs in JCreator

leeroyMarv

New Member
Whenever I compile the project the output comes up with:
--------------------Configuration: <Default>--------------------
Error : Invalid path, \bin\java.exe -classpath "D:\Program Files" HelloWorldSwing

Process completed.

And the file wont execute at all, am i missing a file or the compiler or something? And what does the above text refer to?
 
If you were to take a look at the folder C:\Program Files\Java\jre1.5.0_06\bin (jre1.5.0_06 is the latest version I have, you might have a more recent or older version..) at any rate, take a look and make sure the Java.exe is there. If not, you probably need to re-install your Java SE (Java Standard Edition..)
 
Thanks for that suki243, it worked, i did that and changed it to the correct path. For some reason it was defaultly wrong. But anyway the file can compile and execute now.
 
Back
Top