Please any one can help at this problem I have with javac.
I have download the java jdk1.5.0_15 at least 20 times in three (3) machins and it do not compile. Actualy it can not read the file. Javac is installed and is on bin,
when I type javac it brings the manue. But my problem is not reading the file.java.
I have saved the file Hello.java on desktop, do not work. On bin where the javac is and still not work, I have set the path and it still not work any idea what is the wrong. I have used java 1.5.0_0 before three years and I have compile the codes, but after I have rebote the computer from facrory siting I have lost that and this semester I have to use the java for my project. Please if any one can halp.
Thanks
What are the exact error messages and what exactly are you doing, plus what OS are you using?
VernonDozier
Posting Expert
5,527 posts since Jan 2008
Reputation Points: 2,633
Solved Threads: 711
Hi and thanks for your reply. As I said it cannot read Hello.java.
It can not read the file.
I have saved as java file and when I open Properties of my file it is saying JAVA File. So the file is on my computer and the path is working because when I type path it gives the path and tha javac is working, but it can not read the file, I am having so bad luck for my project.
What's the EXACT error message and what command are you giving it on the command line when you you get that error, and do you ever get any .class files? You describing it in English is fine, but listing the actual Java error message gives more information. I'm looking for something like this:Exception in thread "main" java.lang.NoClassDefFoundException:haha
Caused by: java.lang.ClassNotFoundException: haha
.
.
.
etc.
.
.
I got this error (intentionally) by typing "java haha" in a directory where there is no "haha.class" file. There are all sorts of errors you can get, following all sorts of commands. Which one are you getting? Are you getting it when you type:
javac *.java
on the command line? If you get any ".class" files, you are at least compiling something. If you get the ".class" files, but then you can't run them successfully, that's a different error.
VernonDozier
Posting Expert
5,527 posts since Jan 2008
Reputation Points: 2,633
Solved Threads: 711