Problem with JDK 6 update 5 - Error Message says cant find java compiler

Hi i am a complete beginner to programming and i am having trouble with the latest java development kit. jdk 6 update 5.
The problem is i have set the path and the program cant find my compiler.
I have installed the latest java development kit 6 update 5 on my windows xp machine.
I have created a simple program as shown below:
class Hello
     public static void main(String[] args)
               System.out.println("Hello from java");
saved the file to my desktop as Hello.java
I have set the path variable like so:
Go to control panel then click system icon then click advanced tab then click environmental variables.
Now in system variables the path is shown as this - %SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\Program Files\Java\jdk1.6.0_05\bin;C:\Program Files\QuickTime\QTSystem\;c:\Program Files\Microsoft SQL Server\90\Tools\binn\
I then add this to the end;C:\Program Files\Java\jdk1.6.0_05\bin
This is the location to the things like compiler, applet viewer etc.
No in the command prompt i type javac Hello.java and i get this error message:
C:\> javac Hello.java
javac: file not found: Hello.java
Usage: javac <options> <source files>
use -help for a list of possible options
The jdk is installed properly im sure but it can find my compiler.
What mistake have i made in setting the path because im guessing that is related to the problem?
Could someone out there please help me?
Thank You
Rafeeq

saved the file to my desktop as Hello.java
C:\> javac Hello.javaC:\ is not the desktop!
The jdk is installed properly im sure but it can find my compiler.Of course it can! It just can't find the file you are trying to compile, because that's not in the root directory.
I suggest you make a directory C:\java and save your source file there rather than on the desktop. In the command prompt, enter cd \java to make it the current working directory and then enter javac Hello.java.
@Pravin: The question is about compiling, not running. CLASSPATH has nothing to do with this problem.
db

Similar Messages

  • I have ipod classic 5gen it will not sync with windows the error message says ipod can not sync as required file missing   wht to do???

    i have ipod classic 5gen it will not sync with windows the error message says ipod can not sync as required file missing   wht to do???

    Although you used the new USB 3.0 port, the actual connection speed is still USB2.0, as the iPod Dock connector, does not have the 10 times faster USB3.0 signal pins, the connection speed is still 480Mbits/s
    I assumed that you have tried the other USB 2.0 port to no success..
    Can you do the iPod Disk diagnostic as posted earlier by tt2, it wont fix your problem, but helps in troubleshooting.
    Have a nice day!

  • When syncing with itunes, got error message saying had error and now ipad2 will not do anything other than showing the USB cable with arrow pointing to Itunes on screen.  have done the reset and restart, but still get same thing.

    when syncing with itunes, got error message saying had error and now ipad2 will not do anything other than showing the USB cable with arrow pointing to Itunes on screen.  have done the reset and restart, but still get same thing.  Ipad does not show up in itunes even though cable plugged in.  Have shut down and restarted Windows 7 computer.

    I had done all of that to no avail.  I did call Apple Tech Support and after he suggested I try a USB port in the rear of the Win 7 computer, things starting working again.  I had tried switching the USB port at the front of the machine but that had not helped.  Everything is good to go again.  thanks for  your reply

  • Moving files to another directory got an error message [File System Task] Error: An error occurred with the following error message: "Could not find a part of the path.".

    Hi all,
    I am having a list of files in a folder named datafiles and I am processing them one by one when I finish each one I want to move the file into a folder archive.
    I am having a variable named filename and archivefilename and two fileconnections  one is originalfiles and archivefiles
    archivefilename=replace( @[User::filename],"datafiles","archive")
    orginalfiles connection is an expression =@user:filename
    archivefies connection is an expression=@user:archivefilename
    the filename comes from reading the folder that contains those files
    public void Main()
                string[] filenames;
                filenames = Directory.GetFiles(@"C:\luminis\datafiles\");
                Array.Sort(filenames);
                Dts.Variables["filelist"].Value = filenames;
                Dts.TaskResult = (int)ScriptResults.Success;
    The folder c:\luminis\archive\ exists
    why I am getting this error
    My filesystem task : destinationpathvariable =false
    destinationconnection:archivefile
    overwrite=true
    operation=movefile
    issourcepathvariable=false
    sourceconnection=original file
    why am i getting this error[File System Task] Error: An error occurred with the following error message: "Could not find a part of the path.".
    sohairzaki

    there may be 2 problem...
    1> specify a target directory only, not with the file name. 
    OR
    2> Try using the unc,path format \\computername\sharename\
    let us know your observation...
    Let us TRY this | Mail me
    My Blog :: http://quest4gen.blogspot.com/

  • Here are the instructions on how to fix the newest update problem with the .dll error message:, Here are the instructions on how to fix the newest update problem with the .dll error message:

    Go to My Computer, Uninstall Programs, and uninstall in this exact order :
          Itunes
          Apples Software Update
         Apple Mobile Device Support
         Bonjour (my system required a reboot on this one)
         Apple Application Support
    Reboot your computer, go to the official Itunes website (make sure it's the Apple Itunes Website and not some other one!), and reinstall Itunes. 
    I got the same .dll error message after the reinstall, but my Itunes was downloaded successfully and I was able to Sync my phone. : )
    Good luck to you and God Bless! 
    (Sad that we have to come to the Discussion Forum to figure this all out instead of Apple taking care of their business and helping us out, huh?)

    Someone else said they did a system restore to a previous update, and then a java update and that worked for them, saying they were going to stick with the earlier version of itunes until they get the bugs out of the new one.  I t tried restores and that didn't work for me either, but maybe it will work for you.  Good luck and I hope you get it working soon.. 

  • Ipod update error message says can't write or read to IUPOD

    i have itunes 7.0.1 and a 20gb ipod. i am trying to update/reload the ipod from my itunes library. my itunes library is 24gb.....
    i have reformatted the ipod to factory settings and deselected the podcast category and have failed at loading the ipod. i get an error message after the reload begins which says that the "ipod cannot be read from or written to"
    do i have a bad disk? or am i failing because it is trying to load the entire music library which is 4gb larger than the ipod disk.
    thanks
    dennis

    See this troubleshooting article.
    "Disk cannot be read from or written to" error syncing iPod in iTunes.
    Why are you trying to load 24GB of music onto a 20Gb iPod!!

  • I Have a problem with adobe updater.  It says "Updater cannot start"

    I search google for adobe updater.  But it shows adobe website.  For each update i can't go like this.  Please tell a solution for this solution.

    Supply pertinent information for quicker answers
    The more information you supply about your situation, the better equipped other community members will be to answer. Consider including the following in your question:
    Adobe product and version number
    Operating system and version number
    The full text of any error message(s)
    What you were doing when the problem occurred
    Screenshots of the problem
    Computer hardware, such as CPU; GPU; amount of RAM; etc.

  • Problem with iTunes installation - Error Message when trying to use

    I intalled iTunes on my Dell Laptop. The icon is on my Desktop, but when I try to start it, I get the following error message;
    "iTunes has encountered a problem and needs to close. We are sorry for the inconvenience."
    Then the error message wants me to send some message to microsoft?

    You can't do that.  Instead, just remove "aaa new-model" from the config then try to deploy it.  Alternatively, you can try "merge mode," but that will send the whole config back to the device.

  • "Problem With Primary Server" error message

    I am trying to connect to www.blogtv.com
    when I click Start Broadcast on FME it says
    "Problem With Primary Server.
    Failure to connect to the primary server. Please verify that your server URL and application name are valid and that your internet connection is working and retry"
    What do I do. I downloaded all the steps and followed all instructions.
    I have windows vista.
    -DingoTV

    FMS server on which you want to stream is either not working/unreachable or URL you mentioned is not in correct.
    Please contact blogtv.com website for correct FMS URL.
    Problem is not related to OS.
    please check if your URL is in the form "rtmp://server_name/app_name"

  • Unistalled firefox on windows vista now wont allow me to reinstall get error message windows cant find

    unistalled firefox due to ask.com toolbar when tried to reinstall firefox from already saved set up exe file windows states cannot find c:/user/jim/appdata/local/temp/7zSAD30.temp/setup exe make sure you typed the name correctly and try again.
    This same meesage came up when i tried to download firefox directly from mozilla the file set up exe would download and when i pressed run the error message appeared again
    grateful for any help you can offer regards

    Try to delete the files in the temp folder.
    Download and save the Firefox installer to the desktop and start the installation with a double-click on the desktop icon.
    You can find the full version of the latest Firefox 25.0.1 release in all languages and for all Operating Systems here:
    *http://www.mozilla.org/en-US/firefox/all.html
    Boot the computer in Windows Safe Mode with network support (press F8 on the boot screen) if you keep having problems with downloading and/or installing.

  • I keep getting an error message saying cannot find or create the font "arialunicodeMS' s

    I keep getting this error message and all I can see are dots. Can anyone help? thank you.

    Seems like an issue with the fonts not being embedded in the PDF and the same not being available on your system either. You could ask the PDF creater to embed the same in the PDF and provide you with the new PDF.

  • Java error message 'Can't find Java Home'

    While Installing an application, I can see the error popup window 'Can't find Java Home'. Why it occur the error message only most newer PC. Please advise me
    Thanks in Advance,
    Ponmuthu

    Well, hi again!
    My problem is not solved, when I tried to start Tomcat today it fails with the same message as earlier, namely
    C:\jakarta-tomcat-4.1.12-LE-jdk14\bin>catalina start
    The JAVA_HOME environment variable is not defined correctly
    This environment variable is needed to run this program
    Using CATALINA_BASE: C:\jakarta-tomcat-4.1.12-LE-jdk14
    Using CATALINA_HOME: C:\jakarta-tomcat-4.1.12-LE-jdk14
    Using CATALINA_TMPDIR: C:\jakarta-tomcat-4.1.12-LE-jdk14\temp
    Using JAVA_HOME: C:\j2sdk1.4.1_01
    Det g�r inte att hitta filen -Djava.endorsed.dirs=. (Could find the file -DJAVA.endorsed.dirs=...............
    And JAVA_HOME, CATALINA_HOME, TOMCAT_HOME is:
    C:\jakarta-tomcat-4.1.12-LE-jdk14\bin>echo %JAVA_HOME%
    C:\j2sdk1.4.1_01
    C:\jakarta-tomcat-4.1.12-LE-jdk14\bin>echo %TOMCAT_HOME%
    C:\jakarta-tomcat-4.1.12_LE-jdk14
    C:\jakarta-tomcat-4.1.12-LE-jdk14\bin>echo %CATALINA_HOME%
    C:\jakarta-tomcat-4.1.12-LE-jdk14
    Any more suggestions of why it's not working?

  • HT1926 my itunes will not update due to an error message saying cannot find itunes.msi

    I need help to resolve the fact that my computer will not update. It gives me a message about 95% way through the update that it cannot find itunes.msi and I also went to just uninstall the program completely off my computer and it gives me the same message. Help please!

    Go to Control Panel > Add or Remove Programs (Win XP) or Programs and Features (later)
    Remove all of these items in the following order:
    iTunes
    Apple Software Update
    Apple Mobile Device Support (if this won't uninstall move on to the next item)
    Bonjour
    Apple Application Support
    Reboot, download iTunes, then reinstall, either using an account with administrative rights, or right-clicking the downloaded installer and selecting Run as Administrator.
    The uninstall and reinstall process will preserve your iTunes library and settings, but ideally you would back up the library and your other important personal documents and data on a regular basis. See this user tip for a suggested technique.
    Please note:
    Some users may need to follow all the steps in whichever of the following support documents applies to their system. These include some additional manual file and folder deletions not mentioned above.
    HT1925: Removing and Reinstalling iTunes for Windows XP
    HT1923: Removing and reinstalling iTunes for Windows Vista, Windows 7, or Windows 8
    tt2

  • HT201210 my apple iphone wont get out of recuvery mode and when i restore it, it gives me an error message saying cant restore. i need help.

    i cant restore my apple iphone and it is stuck in recuvery mode and i dont know what to do

    If you can't restore it in recovery mode then you'll have to try DFU mode to restore it (see
    https://discussions.apple.com/thread/2648467?threadID=2648467&tstart=0 or http://www.iclarified.com/entry/index.php?enid=1034).

  • I can't update, error message says I don't have system permission. There is no admin account on this computer. It only has one user.

    This is a one-user Mac running snow leopard. I don't think I ever set up an admin account since I am the only user. Why can't I update Firefox?

    * Download a new copy of the Firefox program: http://www.mozilla.com/firefox/all.html
    * Trash the current Firefox application to do a clean (re)install.
    * Install the new version that you have downloaded.
    Your profile data is stored elsewhere in the [http://kb.mozillazine.org/Profile_folder_-_Firefox Firefox Profile Folder], so you won't lose your bookmarks and other personal data.

Maybe you are looking for