No main method can be found [FIXED]

[quote=“J01,post:20,topic:49539”]
Fair enough. All I’m saying is that changing your JAVA_HOME wasn’t actually what fixed your problem. It’s cool that you got it working, but next time you encounter this problem, changing JAVA_HOME won’t fix it.

[quote=“KevinWorkman,post:21,topic:49539”]

Sane explanation - It’s possible that he had %JAVA_HOME%\bin in his path but JAVA_HOME was missing in his system variables. Windows wouldn’t complain about that. Adding JAVA_HOME fixed the problem.

Ehe, that must be it :smiley:
Thanks to everyone who posted here ! :slight_smile:
J0

Again, no. His javac and java commands worked fine, so there was nothing wrong with his PATH variable. That’s the only thing you need to set in order to use javac and java. Neither java nor javac use the JAVA_HOME variable.

In fact… It doesn’t REALLY matter, what was going wrong, is it ? :stuck_out_tongue:

I thought they used to run…and then gave up…