Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Java
#1
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?
Reply
#2
What is your C:\Java directory?
Reply
#3
???
It says there?
Reply
#4
Oh, sorry.

Type in the whole path to Main.java
Reply
#5
C:\Java\Main.java
Reply
#6
Do you get an error?
Reply
#7
No.

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

I have javac.exe and javac
Reply
#8
Try javac.exe
Reply
#9
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/st...l#conf_win

Just make sure that you add the path with a semicolon; don't erase what's already there.
Reply
#10
Windows and its unnecessary complexities :o
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)