Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Register Tags Active Topics RSS Search Mark Forums Read

Sponsored Links



Java: "The system cannot find the path SPECIFIED."

Software Development


Reply
 
Thread Tools Search this Thread
  #1  
Old 06-10-2010
Member
 
Join Date: Jun 2009
Posts: 1,518
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.

Reply With Quote
  #2  
Old 06-10-2010
Member
 
Join Date: Nov 2008
Posts: 1,054
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.
Reply With Quote
  #3  
Old 06-10-2010
Member
 
Join Date: Jun 2009
Posts: 1,518
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.
Reply With Quote
  #4  
Old 06-10-2010
Member
 
Join Date: Nov 2008
Posts: 1,192
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.
Reply With Quote
  #5  
Old 06-10-2010
Member
 
Join Date: May 2008
Posts: 2,290
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 ...
Reply With Quote
  #6  
Old 06-10-2010
Member
 
Join Date: Apr 2008
Posts: 2,000
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
Reply With Quote
  #7  
Old 07-10-2010
Member
 
Join Date: Oct 2010
Location: Jaipur
Posts: 2
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
Reply With Quote
Reply

  TechArena Community > Software > Software Development
Tags: , , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "Java: "The system cannot find the path SPECIFIED.""
Thread Thread Starter Forum Replies Last Post
"system cannot find the file specified" error when attempting toinstall security update kusumanabh Windows Security 1 12-05-2009 02:30 AM
Starting a service from a windows network drive gives me an error "The system cannot find the path specified." lat Operating Systems 2 31-03-2009 09:09 PM
display "path" system variable in cmd.exe John A Grandy Windows Server Help 1 12-12-2008 11:26 AM
"Windows is unable to find a system volume that meets its criteriafor installing" mannuraama Vista Setup and Install 2 18-09-2008 05:18 AM
"unable to create the file" "the system cannot find the file specified" Leo Wandersleb Windows Server Help 3 20-03-2008 09:23 PM


All times are GMT +5.5. The time now is 03:11 PM.