|
adewsteve
|
My Fellow nairaander please am writing a java program and am having a problem with the application when i was about to compile all the file with the command "javac Welcome1.java" in the command prompt it was giving me an error message javac is not an inter or external command and i was told in the book that if i get this message that means my sys JSE 5.0 Development kit is not instaled proparly that i should change the path. That is where am facing problem am using windows vista i tried doing that but it was still the same thing anybody know the way out, My Email is adewsteve@yahoo.com I have Ebooks on diff Program topic.
|
|
|
|
|
|
Bossman (m)
|
You need to add the location of your JDK to your path.
|
|
|
|
|
|
my2cents (m)
|
Ade: In case you don't know how, go to your desktop, right-click on "my computer" and make sure your set up is similar to these screenshots. When I last installed the JDK, I was impressed that the wizard set up the class path for me automatically. I guess this isn't the case with you. p.s. 1) I use Windows XP professional, so what you see on Vista may not the same as these screenshots (I don't use Vista) 2) Forgive my photoshop "skills" - I am not much of a designer  I hope this helps.
|
|
|
|
|
|
adewsteve
|
You need to add the location of your JDK to your path.
This is what was at the system path C:\Program Files\Java\jdk1.5.0_<version>\bin This is my java file directory c:\Program Files\Java\jdk1.5.0_14\bin Could it be where the problem is i await a reply from you.
|
|
|
|
|
|
my2cents (m)
|
what exactly is in "<version>"?
|
|
|
|
|
|
adewsteve
|
Ade: In case you don't know how, go to your desktop, right-click on "my computer" and make sure your set up is similar to these screenshots. When I last installed the JDK, I was impressed that the wizard set up the class path for me automatically. I guess this isn't the case with you. p.s. 1) I use Windows XP professional, so what you see on Vista may not the same as these screenshots (I don't use Vista) 2) Forgive my photoshop "skills" - I am not much of a designer  I hope this helps. what exactly is in "<version>"?
Am sorry for disturbing you guys i have change the path to "C:\Program Files\Java\jdk1.5.0_14\bin" because that is the directory you can find javac application but yet after re-starting the computer all effort remain the same please do i need to add it like this ", ;C:\Program Files\Java\jdk1.5.0_14\bin"please reply me back the right way to add it, Thanks And God Bless.
|
|
|
|
|
|
adewsteve
|
If you don't mind me calling you please paste your phone number as well, i ill give you a call.
|
|
|
|
|
|
|
|
my2cents (m)
|
This might help clear up some air:
Though a temporary fix, you can avoid the classpath thing altogether by, in DOS, going to where you have your Java installed (probably in the C drive and in java/bin) and doing the following:
1) Type java -version: if something comes up, you are in the right place 2) Either type next "javac (path to java file)" or move the file to the bin folder and run javac *.java for example 3) Then run java (class name, without the .class extension)
NOTE: This is a temporary fix and should only be used if you are doing your regular "hello world" type app. For more serious apps, you gotta set your classpath man.
|
|
|
|
|
|
|
|
darth
|
Ehm, dude's instead of all this command line wahala why don't you just download netbeans free online at www.netbeans.org. 
|
|
|
|
|
|
don_java (m)
|
 Another answer to your problem could be as a result of the CD-ROM,or right click on the My Computer icon on your Desktop,and a dialog box will appear,after that click on the Advanced link of the Dialog box,you will see a Startup and Recovery label on the Dialog box,click on the Enviroment Variables,click on New to set the Class path:jdk1.5.0\bin,make sure that the version that you are using has been properly burned into the CD-Rom.As for Vista that OS sucks,this is one Microsoft failed projects,they should borrow a leaf from OSS. Keep it Real!
|
|
|
|
|
|