| | |
cannot read Hello.java
Please support our Java advertiser: Programming Forums - DaniWeb Sister Site
![]() |
•
•
Join Date: Apr 2008
Posts: 4
Reputation:
Solved Threads: 0
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
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
•
•
Join Date: Jan 2008
Posts: 3,828
Reputation:
Solved Threads: 501
•
•
•
•
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
•
•
Join Date: Apr 2008
Posts: 4
Reputation:
Solved Threads: 0
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.
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.
•
•
Join Date: Jan 2008
Posts: 3,828
Reputation:
Solved Threads: 501
•
•
•
•
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.
.
.
Java Syntax (Toggle Plain Text)
javac *.java
•
•
Join Date: Nov 2007
Posts: 9
Reputation:
Solved Threads: 2
•
•
•
•
cannot read: Wecome.java.
and if i type java Welcome it will give this error Exception in thread "main" java.lang.NoClassDefFoundException:Welcome
For humans, it is understandable, but for Machines, they don't accept it.
If you just mistyped it,
Here is the last option,
If your main class ( public class ) is Welcome, then save it first into Welcome.java
Copy that file into the bin folder where javac.exe exists,
run terminal ( CMD for windows )
Go to the bin folder.
As usual, type javac Welcome.java
If there is an error again, im 100% sure, there is a problem on your code.
And that error should be posted here in order for our experts to advice you immediately.
regards,
sukatoa
![]() |
Similar Threads
- Starting "Java" [Java tutorials / resources / faq] (Java)
- Need java tutor? (Java)
- Starting With Java (Java)
- Java open internet browser (Java)
- Read from an array (Java)
- Favorite Java textbook (Java)
- Suggest me books on Java concept. (Java)
Other Threads in the Java Forum
- Previous Thread: Applet Problem...
- Next Thread: update JTable after deleting a rows!
| Thread Tools | Search this Thread |
android api applet application array arrays automation awt bidirectional binary birt bluetooth businessintelligence busy_handler(null) chat class classes client code columns component constructor database designadrawingapplicationusingjavajslider draw eclipse editor error errors event eventlistener exception expand fractal game givemetehcodez graphics gui guidancer html ide image inetaddress input integer intellij j2me java javafx javamicroeditionuseofmotionsensor javaprojects jme jni jpanel jtree julia linux list loop map method methods mobile mobiledevelopmentcreatejar myaggfun netbeans newbie oracle parsing plazmic print problem program programming project recursion scanner screen server set sharepoint size smart sms smsspam sort sortedmaps sql string subclass support swing textfield threads time tree unlimited utility webservices windows






