2DWorlds Forums
Java - Printable Version

+- 2DWorlds Forums (http://2dworlds.buildism.net/forum)
+-- Forum: Off Topic (http://2dworlds.buildism.net/forum/forumdisplay.php?fid=5)
+--- Forum: Programming (http://2dworlds.buildism.net/forum/forumdisplay.php?fid=30)
+--- Thread: Java (/showthread.php?tid=8240)

Pages: 1 2


Java - Dignity - 09-05-2011

I cannot compile java into a .class file

Exact log:

--C:\Java
-javac.exe
-javac
-Main.java
--

In cmd:

cd C:\Java
javac Main.java
dir

Does not compile the Main.java

Help?


RE: Java - noob007 - 09-05-2011

What is your C:\Java directory?


RE: Java - Dignity - 09-05-2011

???
It says there?


RE: Java - noob007 - 09-05-2011

Oh, sorry.

Type in the whole path to Main.java


RE: Java - Dignity - 09-05-2011

C:\Java\Main.java


RE: Java - noob007 - 09-05-2011

Do you get an error?


RE: Java - Dignity - 09-06-2011

No.

Can you tell me the full name of the javac file?

I have javac.exe and javac


RE: Java - noob007 - 09-06-2011

Try javac.exe


RE: Java - Jacob__mybb_import1 - 09-06-2011

If you have the Java Development Kit installed but you can't use javac, you might need to set your PATH environment variable. This explains how to do it: http://www.cc.gatech.edu/~stasko/1331/started/index.html#conf_win

Just make sure that you add the path with a semicolon; don't erase what's already there.


RE: Java - noob007 - 09-06-2011

Windows and its unnecessary complexities :o