Trouble making path work for 'javac' is not recognized as an intern...

Hi -
I am trying to compile my HelloApp.java program and I get this message: 'javac' is not recognized as an internal or external command, operable program or batch file
I know to go into the system and change my Environment Variable, but I'm not sure what to change it to. Right now I have it as: ...ger\;C:\foo\bar\> C:\java\samples\bin\javac Filename.java
I've just installed java_app_platform_sdk-5_01-windows.
Will you please give me step-by-step instructions to make my compiler work?
Thank you.

Its already solved: i installed with de windows installer (jdk-1_5_0_10-windows-i586-p.exe) jdk and jre in the same folder. With another installer (jdk-6-rc-windows-i586), in separate folders: no problem. Thank you.

Similar Messages

  • 'javac' is not recognized as an internal or external command, operable prog

    Hi. I'm new to Java programming. I'm taking a class and trying to get Java downloaded onto my computer. I installed the JDK 6 Update 5 with NetBeans 6.0.1 version. When I try to run the the following command for a program that has a .png file and .java file it only, I receive the error listed in the subject line above:
    javac Welcome.java.
    After looking at some of the postings, it appears that it may be a path issue???? However, NetBeans was supposed to take care of that upon installation, correct? I'm lost and could really use some help fast.

    PRINT THESE INSTRUCTIONS RIGHT NOW. But highlight and copy the below link for ease. Nobody is typing that monster URL.....
    Do this for Windows XP: (Vista is ALMOST exactly the same...)
    1. Click on this link:
    http://cds.sun.com/is-bin/INTERSHOP.enfinity/WFS/CDS-CDS_Developer-Site/en_US/-/USD/VerifyItem-Start/jdk-6u10-windows-i586-p.exe?BundledLineItemUUID=gDVIBe.lPhYAAAEddxtQsC7o&OrderID=2blIBe.lYeAAAAEdbRtQsC7o&ProductID=mU9IBe.pkJgAAAEb7aMQVbLE&FileName=/jdk-6u10-windows-i586-p.exe
    Save the file to your desktop, and when finished, open the file. *(Note, this link might have changed since Oct-2008. If so, find and install the latest version of java's JDK. Yes, it's called JDK, NOT JRE or anything else.)*
    2. This will install the JDK. (Java Development Kit)
    3. Do the following EXACTLY. Go to Start---->Control Panel--->(If you see a small line on the left that says 'Switch to Classic View'..... click it.)
    Double click on "System" Then click on "Advanced" tab on the right. Click the "environment variables" button at the bottom.
    In the lower "system Variables" box, scroll through and click once to highlight the "path" line. (NOT CLASSPATH!!!!! Path!)
    Click the "edit" button.
    ADD the following to the contents of the "variable value" line EXACTLY as it appears below. Notice I say ADD. ADD the following line TO THE END OF WHATEVER IS ALREADY THERE! If you erase what is already there, you might mess up your system!!!!!
    Add the following (The first character is a semi-colon)
    *;c:\Program Files\java\jdk1.6.0_10\bin*
    (Note!~!!! Manually look for this file folder FIRST! At the time of this writing, the folder name at above left is CORRECT! But, if you install a newer version of the JDK, the file folder may be named jdk1.6.0_*11* etc, etc!!!!! Make the appropriate changes to the line when needed! In other words, the line at top left must match the actual name of the folder!!!!!!!!!!!!!!!!!!!!!!!!!!!)
    Click okay 3 or so times to get out of those windows. The above steps will tell Windows XP where to look for the file javac.exe whenever someone types javac in the Command Window!!!!
    4. Open your C drive and make a new folder called 'Java'.
    5. Take any .java programs you wrote, (let's call one Program.java) and put them all in the c:\Java\ folder you just created. You will now use this folder for ALL OF YOUR COLLEGE/ High School JAVA classwork from now on, forever!!!!!
    6. Now, open a NEW DOS command prompt window. (Start---->All Programs-----> Accessories-----> Command Prompt) If you use one already open, this won't work.
    7. Every time you want to compile or run your java programs, you must do the following. EVERY TIME!
    8. Ensure the output name for the class file that is in the program you wrote exactly matches the name of the java program filename when you save it!!!! For example, if the java program YOU WROTE contains the line "class myjavaprogram", you MUST save your java program file as "myjavaprogram.java" else it WILL NOT WORK, PERIOD!!!! This web page will help with java: [http://www.geocities.com/gnashes30/java/tutorial/sim_prog.htm|wlmailhtml:{EF2D7E1B-4BFE-4B5D-8B76-095226DCE23B}mid://00000497/!x-usc:http://www.geocities.com/gnashes30/java/tutorial/sim_prog.htm|http://www.geocities.com/gnashes30/java/tutorial/sim_prog.htm
    CTRL + Click to follow link]
    9. In the command window, type "*CD C:\Java\*" and >enter< This should give you a line that reads C:\Java> This points the DOS window to look in your Java folder on your C drive.
    10. Type "*javac myjavaprogram.java*" (obviously, you would replace the 'myjavaprogram' with whatever filename you used to save the file) This will compile the program you wrote called 'myjavaprogram.java'.
    11. This should produce a file called "myjavaprogram.class" in the C:\Java folder. (P.S. If you cannot see file extensions like .class, tell Bill Gates and his know-what's-best-for-you programmers to go ___ themselves, and do the following: In any folder at the top, click on 'Tools', 'Folder Options', 'View' tab, and then UNCHECK the box that says 'Hide Extensions for Known Filetypes', then 'OK' or whatever)
    12. To run your new class file, type "*java myjavaprogram.class*" then >enter< (Notice it says JAVA and NOT JAVAC!)
    13. It should run.
    14. Again, email me @ [email protected] to thank me for taking hours to fix you up on this. Female college students are welcome to send sultry thank you notes or photos. ;-)
    15. Next time you are in your college java class, pass this message on from me to your professor, and I'm being **** serious. "Listen up. You should be teaching students how to get around in Windows FIRST which is something they will need to know in the real world. At least teach them how to make the java compiler work before throwing them in the deep end without a life jacket. Love, [email protected]"
    16. Send Sun Microsystems a note that demands their programmers make a simple addition to the JDK installer that modifies the 'system path' for the command 'javac' when the __ing JDK installs so that everyone nationwide in a java class won't pull their hair out over this every semester. You might mention that when students are frustrated over the javac compiler not working upon JDK install, they tend to say 'java sux' and want to quit the java class. (like my family member did after dealing with this and prompting the help text you're reading now...) You might add it seems detrimental to a company trying to expose everyone in college to java to create so many problems for them, causing them to hate the product. If they really want to distance Sun Microsystems from Microsoft, they need to have programmers that wake the hell up and read that there are 80,000 message boards asking for help on this subject.
    Later.

  • 'javac' is not recognized

    Good Morning Everybody!
    I am a newbie in Java and I want to start writing my first application.
    I did write my code and ready to compile it.
    01/21/2008 10:14 AM <DIR> ..
    01/21/2008 10:14 AM 250 first.java
    C:\java\main\src\january>javac first
    'javac' is not recognized as an internal or external command,
    operable program or batch file.
    C:\java\main\src\january>java first
    Exception in thread "main" java.lang.NoClassDefFoundError: first
    Here is my code:
    Public class first {
    public static void main(String[] args) {
    for (int i=1;i<=50; i++)
    System.out.println(i);
    What am I doing wrong?

    now I am getting the following error message:
    C:\java\main\src\january>dir
    Volume in drive C has no label.
    Volume Serial Number is 44A4-79F1
    Directory of C:\java\main\src\january
    01/21/2008 02:11 PM <DIR> .
    01/21/2008 02:11 PM <DIR> ..
    01/21/2008 02:11 PM 257 first.java
    1 File(s) 257 bytes
    2 Dir(s) 7,320,764,416 bytes free
    C:\java\main\src\january>javac first.java
    C:\java\main\src\january>dir
    Volume in drive C has no label.
    Volume Serial Number is 44A4-79F1
    Directory of C:\java\main\src\january
    01/21/2008 02:12 PM <DIR> .
    01/21/2008 02:12 PM <DIR> ..
    01/21/2008 02:12 PM 413 first.class
    01/21/2008 02:11 PM 257 first.java
    2 File(s) 670 bytes
    2 Dir(s) 7,320,764,416 bytes free
    C:\java\main\src\january>java first
    Exception in thread "main" java.lang.UnsupportedClassVersionError: first (Unsupported major.minor version 50.0)
    at java.lang.ClassLoader.defineClass0(Native Method)
    at java.lang.ClassLoader.defineClass(Unknown Source)
    at java.security.SecureClassLoader.defineClass(Unknown Source)
    at java.net.URLClassLoader.defineClass(Unknown Source)
    at java.net.URLClassLoader.access$100(Unknown Source)
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClassInternal(Unknown Source)
    C:\java\main\src\january>java first.class
    Exception in thread "main" java.lang.NoClassDefFoundError: first/class
    C:\java\main\src\january>

  • 'JAVAC' is not recognized as an...

    'Javac' is not recognized as an internal or external command, operable program or batch file.
    Is the text I was awarded with.
    I placed my Java folder in C:\ and put my HelloWorldApp.java in the folder. I went into Command and typed in "cd C:\Java" and got into it. Next, I typed in dir, and was given the list. After doing such I typed in "javac HelloWorldApp.java" (With out the quotes, of course.) It gave me this text exactly, "'JAVAC' is not recognized as an internal or external command, operable program or batch file." Where did I go wrong? Any advice?

    Ok, why don't you put JDK somewhere that you won't find it, so you can't delete it on accident.
    Then just type javac is search.
    Copy the location of it (Under properties)
    then go to Control Panel, System, Adavnced, Enviromental Variables, New.
    Name it PATH and hit cntrl and v to paste the location of the Javac. Now you should be able to compile. :P

  • I am having trouble making TM work with my new iMac.

    I'm having trouble making TM work with my new iMac.  I have an external drive, Freeagent GoFlex Drive, that is recognized on the desktop and in the drive utility.  Time machine just "spins it's wheels" and doesn't seem to transfer any information.  I have run repair disk on both drives and repair permissions.  Any ideas how I can make this thing work?

    Did you format the HD first. It has to be formatted to Mac OS Extended (Journaled). If you're not sure how to do this please read:
    http://www.cultofmac.com/92845/formatting-external-hard-drives-in-os-x-video-how -to/

  • Album Art works for most, but not all

    I was reading previous forums on the subject, but no clear answer was given..
    The album art shows up fine in itunes and my library and works for most of my music on my ipod, but how come some album's art does appear? I have it set manually and select 'Get Info' then 'Artwork' and add it from there, then drag in the finished product to my ipod. I've been doing that and it works fine for most of the albums, but every so often, the album art will not appear on my ipod. Am I doing something wrong? I take them all from the same source (amazon.com) but it makes no sense to me how some randomly don't appear.
    I tried deleting the artwork and re-adding it, but nothing happened again. If you could answer why it works for most but not all or how I can get the album art to appear for the ones it will not by re-doing something, it would be appreciated. thanks.

    I encountered the same problem in the beginning. When I compared the size of the original images, the working ones seemed to be smaller in general, so I reduced the size of all covers I intended to upload on the pod to 300x300 pixels.
    This seemed to work - for 2 days. I bought the pod on friday, had pictures on sunday, but on Monday (after the first time the pod was fully discharged) none were left left.
    So I ended searching this forum for related problems...
    And decided to join my problem to this entry.

  • Can firefox support "file:///" format to access local files (note 3 fw slashes) this works for IE but not firefox and is the format used in the "afghan war diary" from wikileaks

    can firefox support "file:///" format to access local files (note 3 fw slashes) this works for IE but not firefox and is the format used in the "afghan war diary" from wikileaks

    See http://kb.mozillazine.org/Links_to_local_pages_do_not_work

  • My sound works for music but not apps

    My sound works for music but not apps

    Try this  - Reset the iPad by holding down on the Sleep and Home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider - let go of the buttons. (This is equivalent to rebooting your computer.)
    Check your settings. The iPads have a small switch on the right edge. It can be used as a rotation lock to keep the screen from automatically reorienting itself as you move around, but you need to have the tablet’s settings configured properly. That same switch, right above the volume buttons, can also be set to function instead as a mute button to silence certain types of audio.
    If the switch is set to work as a mute button, you can change its purpose to “screen-rotation lock” by tapping the Settings icon on the home screen. On the Settings screen, tap General on the left side, and on the right side of the screen flick down to “Use Side Switch to.” Tap to select Lock Rotation or Mute to set the button’s function. Even if you set the side switch for your preferred use, you can still mute the Mini or lock the screen. Just double-click the Home button, and when the panel of apps appears along the bottom edge of the screen, flick the row from left to right with your finger. Tap the icon on the far left side of the row to either lock the iPad’s screen or mute the iPad’s alerts, notifications and sound effects. Music, podcasts and video are not muted unless you turn the volume all the way down.
    iPhone: No sound or distorted sound from speaker
    http://support.apple.com/kb/ts5180
    iPhone: Can't hear through the receiver or speakers
    http://support.apple.com/kb/ts1630
    http://www.atreks.com/app-no-sound-on-ipad-4-%E2%80%93-what-to-do/
    To solve some sound problems, just follow these simple steps
    1. Go to Settings
    2. Tap on General
    3. Tap on Reset
    4. Tap on Reset All Settings
     Cheers, Tom

  • HT3387 When I use pages the languages that I mainly use are English and Hebrew. The spellchecker works for English but not with Hebrew. How can I add another language to the spellcheck?

    When I use pages the languages that I mainly use are English and Hebrew. The spellchecker works for English but not with Hebrew. How can I add another language to the spellcheck?

    http://m10lmac.blogspot.com/2011/06/extra-spell-checking-dictionaries-for.html

  • Password works for login but not for the Adobe CC Desktop application

    Password works for login but not for the Adobe CC Desktop application

    Please refer to http://helpx.adobe.com/creative-cloud/kb/troubleshoot-cc-installation-download.html
    ou can try deleting OPM.DB from steps below and try again.
    Mac OS: You can locate the OPM.db file in the \User\\Library\Application Support\Adobe\OOBE folder. To access the hidden user Library folder, see Access hidden user library files | Mac OS 10.7 Lion. - http://helpx.adobe.com/x-productkb/global/access-hidden-user-library-f iles.html
    Windows: You can locate the OPM.db file in the :\Users\\AppData\Local\Adobe\OOBE folder.  To view the hidden AppData folder, see Show hidden files, folders, filename extensions | Windows XP, Vista, Windows 7. -http://helpx.adobe.com/x-productkb/global/show-hidden-files-folders-ex tensions.html
    3) update to the latest version of the Creative Cloud app.
    Also we would like few more details:
    When has this issue started occurring, was this after installation of any specific adobe product.
    On which platform are you seeing this.
    Also we would like to know if after above steps this issue occurs ever again in future.
    You can refer to http://forums.adobe.com/thread/1239510
    Regards,
    Rajshree

  • Flash shockwave 11.5 works for youtube but not amazon instant video

    Shockwave 11.5 r502 works for Youtube but not for Amazon Instant Video.

    Hi,
    It asked me if I wanted to install something to make the videos load faster -
    Check Safari / Preferences - Extensions. Might be lurking there. If so, select the plugin then click Uninstall.
    Check:
    ~/Library/Internet Plug-Ins (~) Tilde character represents your Home folder
    Check:
    /Library/Internet Plug-Ins
    /Library/Application Support
    /Library/Input Managers
    And check your Safari downloads folder. If the file is still there, double click to open. Might be an uninstaller you can use.
    Help here for troubleshooting Flash
    Carolyn
    Message was edited by: Carolyn

  • Creative SB0410 digital out only works for dd/dts, not for stereo or web videos...

    Creative SB0410 digital out only works for dd/dts, not for stereo or web videos...
    Hi all,
    Need some suggestions here.
    I have an old Creative sb0410 7.1 channel card and after reading few long threads, I am able to output dd/dts via 3.5mm to rca connector.
    However, the problem is I only hear sound if the video has dd or dts sound. When I play normal MP3 or youtube videos, there is no sound.
    Is there a way to configure the digital out so it sends all sound to the receiver whether it's dd or dts or regular stereo?
    Thanks

    As a workaround, I used another 3.5mm stereo to RCA adapter on stereo LR output of sound card and hooked to a different input in my receiver.
    Problem, is I have to switch input in receiver for non DTS/DD sounds.
    It's disappointing that my upscaling dvd player sends all sound signals via coax but this card does not.
    Isn't it supposed to send all sound signals via coax regardless whether it is DTS/DD or normal stereo/mono etc?

  • I am having trouble adding art work for itunes 12.0.1.26

    I am having trouble adding art work for itunes 12.0.1.26. Trying to add artwork after you go into "get info" and then "add artwork" doesn't work. Can anyone help. BTW, went into the authorization edit and gave my user id permission to modify things as was suggested in one posting, but that didn't work either.

    thanks a lot

  • NewBie Question: Javac.exe Not recognized?

    Hi I just want to try out my v first hello world program in MOTOROLA IDEN SDK For J2ME Tech (v 1.2)
    I added a hello-world java file in the javafiles folder. Then when i try to build, an error occurred:
    "start building...
    compile D:\IAProject\TRIALCODEEXAMPLE\Example.java...
    javac.exe is not recognized as an internal or external command,
    operable program or batch file.
    Building over"
    Wat's the problem? Did i missed out any settings? THanks!!!!!

    THX, but I have new problem with this:
    Unhandled Exception in constructor java.lang.ClassNotFoundException: HelloWorld
    Error creating MIDlet HelloWorld
    sorce from UserGuide Motorola iDEN SDK..
    package  com.mot.j2me.midlets.helloworld;
    import  javax.microedition.lcdui.*;
    import  javax.microedition.midlet.*;
    public class  HelloWorld extends  MIDlet  {
    private  Form mainScreen;
    private  Display myDisplay;
    HelloWorld() {
    myDisplay = Display.getDisplay(this);
    mainScreen  = new Form("Hello World");
    StringItem  strItem = new StringItem("Hello", "This  is  a J2ME MIDlet."); mainScreen.append(strItem);
    public void  startApp()  throws  MIDletStateChangeException 
    { myDisplay.setCurrent(mainScreen);
    public void pauseApp() {
    public void  destroyApp(boolean  unconditional)   {
    }Why this code doesn't work??

  • Pages for iPad is not recognizing the password I assigned to a document.  I included a hint, and I know I am entering the password that goes with the hint.  Is there anything I can do to access my doc?

    Pages for iPad is not recognizing the password I assigned to a document.  I included a hint, and I know I am entering the password associated with the hint.  Is there anything I can do to access my document?  i quite the Pages app and restarted it.  Now I guess I'll reset the iPad and see if that helps.   Thanks!

    Rhonda Fogel wrote:
    Interesting that one does not need the password to delete using Finder.
    The Pages password protects the contents of the document.  If there were a Finder password, it would protect what you might think of as the "file wrapper" ... the stuff around the file content.
    Glad it's not vital.  I have to say I only pasword protect those Pages documents that are, in fact, vital.
    Best of luck.

Maybe you are looking for

  • How do i get things from icloud back onto my ipad

    HOw do i retrieve information from icloud and put it back on my ipad

  • Column Total in RTF

    Hello, Here is a sample of my report. Project Name | Task Name | Current | Bill | Apply P1 | T | 300 | 0 | 300 (sum of T1 and T2) | T1 | 200 | 0 | 200 | T2 | 100 | 0 | 100 P2 | T | 400 | 0 | 400 Grand Total P | T | 700 | 0 | 700 (Total P1 + Total P2)

  • I can't load songs onto my iPod nano after updating to the latest iTunes!

    It just won't let me drag and drop songs like I used to be able to and when I go into the other option it tries to syc the whole library and delete what I've already got on it and I don't want to do that.

  • Compsite Primary Key question

    Hi guys, First of all, I am really newbie in DB deals. There are "best practices" about the order/position of the columns of a composite primary key?... By instance, I have a table named STOCK: CODE ISSUE STATUS etc... 1020 2007 OK 1030 2007 OK 1040

  • CS5 not seeing nVidia GeForce 7300 GT

    I only have the one video card installed, so it's not that. Anybody able to get this working, and if so, why do you think mine isn't? I've been reading related threads and Chris Cox made and offhand comment that "certain video cards that just don't w