Java: "The system cannot find the path SPECIFIED."
I'm having trouble running a Hello program. Whenever I try to compile the code, I don't have any error or warning message but when I run the code I get this:
Quote:
The system cannot find the path specified
Do I need to create a File object for this? Text editor used here is TextPad 5 (latest version). I don't know what to do. Please help.
Re: Java: "The system cannot find the path SPECIFIED."
Have you installed the JDK? I don't know if you have tried it until now and so its better if you check it if this is available. The window may be trying to run Javac.exe. Try to open up cmd and type javac, if you get an error message than that is not familiar with the PATH command, the settings you need to fix a little. PATH found in the environment variables on system performance. Add java folder there.
Re: Java: "The system cannot find the path SPECIFIED."
I tried to uninstall the JDK, and install it again but the same thing happens. Is there any user who have used TextPad. So, what I want to get away is "The system can not find the path SPECIFIED." I need to know how to use java because I am going to give an online test for the same very soon.
Re: Java: "The system cannot find the path SPECIFIED."
There must be something TextPad trying to run before it runs your class. Try the old fashioned way to compile and run from the command line, to see if it gets better. If it helps, only to find out what kind of "trick" stuff TextPad trying to do.
If you want a little better the Eclipse IDE is fully capable and free. Others think that IntelliJ is also good, have not tried it myself. Moreover, it costs a bit.
Check the way that the PATH is set up with the right location at JAVA_HOME.
Re: Java: "The system cannot find the path SPECIFIED."
Should be fun to know where the "Hello World" statement came from unless the compiler and vm was in the path given. Here it seems the more that everything that has to do with java is in order? JAVA_HOME should not be in the path,% JAVA_HOME% \ bin must be in the PATH ... provided that JAVA_HOME is set Seff. otherwise there will be pointless ...
Re: Java: "The system cannot find the path SPECIFIED."
What is your PATH environment variable? Modify it with the directory where java was installed. If java is installed in the default directory you have to add "bin" in the PATH environment variable under the java installation directory. Then go to the DOS prompt and do the following:
set PATH=%PATH%;C:\Program Files\Java\jdk1.6.0_03\bin
Re: Java: "The system cannot find the path SPECIFIED."
Follow 10 simple steps
1. go to my computer.
2. right click -> properties ->advance TAB
3. create new system variable
name-JAVA_HOME
value :C:\Program Files\Java\jdk1.6.0_03\bin
and save it.
4. search for "path" variable in system variable
5. Add ";%JAVA_HOME%;" at the end of value of path varable.
6. OK -> OK -> OK
7. run ->cmd
8. type in javac
if it says usage:javac....
it means you have done with the job else start from step 1