Results 1 to 7 of 7

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

  1. #1
    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:

    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.

  2. #2
    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.

  3. #3
    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.

  4. #4
    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.

  5. #5
    Join Date
    May 2008
    Posts
    2,297

    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 ...

  6. #6
    Join Date
    Apr 2008
    Posts
    2,005

    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

  7. #7
    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

Similar Threads

  1. Replies: 1
    Last Post: 12-05-2009, 02:30 AM
  2. Replies: 2
    Last Post: 31-03-2009, 09:09 PM
  3. display "path" system variable in cmd.exe
    By John A Grandy in forum Windows Server Help
    Replies: 1
    Last Post: 12-12-2008, 12:26 PM
  4. Replies: 2
    Last Post: 18-09-2008, 05:18 AM
  5. "unable to create the file" "the system cannot find the file specified"
    By Leo Wandersleb in forum Windows Server Help
    Replies: 3
    Last Post: 20-03-2008, 09:23 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,711,629,621.70350 seconds with 17 queries