JavaC  is not a recognized command

I just recently installed the Java 2 sdk Version 1.3.1_09 on my computer (Running WINXP). The Javasoft program is found in C:\Program Files\JavaSoft\JRE\1.3.1_09. I see a bin and lib subfolder. So I assume my installation went through without any problems...
When I run the JavaC HellowWorld.java (for example) from my C:\Java prompt line in DOS, I get:
'JAVAC' is not recognized as an internal or external command, operable program or batch file.
How do I get this tweaked and ready to work???

I just recently installed the Java 2 sdk Version
1.3.1_09 on my computer (Running WINXP). The Javasoft
program is found in C:\Program
Files\JavaSoft\JRE\1.3.1_09. I see a bin and lib
subfolder. So I assume my installation went through
without any problems... If you installed J2SDK, then you should have a directory like c:\j2sdk1.3.1_09\bin and inside it should be javac.exe. The JRE is just the Java runtime so the JRE bin directory does not have javac.exe. You can use the Windows search function to find javac.exe. Perhaps you downloaded the JRE instead of the J2SDK.

Similar Messages

  • HT201413 "telnet" is not a recognized command in Windows 7.....?????

    I'm trying to troubleshoot why home sharing isn't working on my network, and these steps call for using telnet command to test for proper open ports. I get a message from windows 7 that telnet is not a command. What gives??

    Windows 7 may need telnet installed, as mentioned in http://technet.microsoft.com/en-us/library/cc771275(v=ws.10).aspx
    I think 11222 is actually support.apple.com/kb/TS4123. Is that what you see?
    I'm guessing you have one of the programs listed there and updating it may resolve.
    Tricky bit is some software is bundled with other software - like RealPlayer Plus bundles Speedbit.
    I hope that helps.

  • '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

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

  • Javac not a recognizable command on my computer after i installed JDK SE6

    I am trying to compile my java code so that i can execude it but my computer is telling me that this is not a recognizable command even after ive installed JDK SE6. any ideas?

    You need to update your Java registry variable.
    Go to start> control panel> system> advanced> environment variables>
    Now find the variable called "Path". Click "edit", and after everything else already there, put a semicolon if there isn't one, and the following:
    C:\Program Files\Java\jdk1.6.0_03\bin
    The _03 is for update 3, if you have a newer one, put 04 or whatever it is now.
    DO NOT DELETE WHAT IS ALREADY IN THE EDIT BOX!
    If you delete all of the other things, it will really mess your computer up. This is a vary sensitive process, so be careful.

  • My javac dose not work

    my javac dose not work
    how do i fix it?
    'javac' is not recognized as an internal or external command,
    operable program or batch file

    Original reply #4:
    arian wrote:
    click the my computer icon with the right button of mouse, select properties, under advanced tab click Environment Variables, in the system variables section edit Path parameter, add to it the folder where the jdk is installed. after you click apply, open the cmd from scratch and try it. if you've added it correctly, the command will be recognized.
    ArianArian, please stop advertising your homepage here.

  • Hard Drive not being recognized on my Graphite Clamshell

    I have a challenge for anyone. I have a ibook 366(clamshell) that is not recognizing the hd. It was working wonderfully one night I shut it down and the next day I get the flashing question mark. I've tried all of the normal stuff: zap pram, reset nvram tried to use command and s but it didn't go to the programmers screen and all the such. I can boot from a cd but none of the utilities see the hd. I have taken the hd out and connected it to a usb to ide cable that allows me to use it as an external drive and it is recognized without any problem on all of the other macs I connect it to and even on a pc (I know I said the bad word.)Does anyone have any clue what could be the issue. Every thing else seems to work fine. Just the hd is not being recognized. I even put in a different hd. I even formatted the drive using one of my macs that I only have 9.2.2 on and installed a os on it and it still didn't work. The hard drive worked fine and the os with all of its components seemed to be fine. I know it's an older system but it's something that I can let the kids play on and not be concerned with losing any of my files.
    I appreciate any help
    iBook 366 Graphite    

    Duane, Thanks for your reply. Is there any way to test this? I am going to try to see if any of the utility disks can recognize the hd. I've tried DW 4.0, the Utility Disks on OS 9, X. I've even tried FWB and a few other tools.

  • Ipad not being recognized on my Mac laptop

    My Ipad Mini, (just purchased today) is not being recognized on my Mac computer under Devices in the Finder.  We also bought a IPod Shuffle and it is recognized.  I followed another person's advice from this forum and reloaded the Ipad, but it is still not recognized.  I want to move some Epub books to my Ipad, but cannot do this since it's not recognized.  I downloaded the Bluefire Reader as was suggested in the forum, but, again, the Ipad is not recognized on my laptop in order to move the books.

    It won't appear in Finder, it's not designed to mount as a drive, content is synced via your Mac's iTunes. If it's not being recognised in your Mac's iTunes then there is some troubleshooting on this page : http://support.apple.com/kb/TS1591
    You should be able to copy books to that app by connecting the iPad to your Mac and selecting it on the left-hand sidebar of your Mac's iTunes (if you have iTunes 11 then option-command-S should get the sidebar to appear), and then on the right-hand side of the iTunes screen selecting the Apps tab and scrolling down it to the file sharing section : http://support.apple.com/kb/ht4094
    If you've already directly downloaded some apps or other content onto the iPad then you may also find this page useful for syncing to a new computer : https://discussions.apple.com/docs/DOC-3141

  • Acomdata 500gb External FW Drive NOT BEING RECOGNIZED!!!

    I have been running an Acomdata 500gb FW External Hard Drive for my data intensive applications such as FCP and it has been working flawlessly for about the last year...
    Yesterday I powered up the Mac and turned on the drive along with my external USB drive and the Acomdata drive turns on, lights up, and makes noise like it's working, but it is not being recognized at all by the Mac. I tried unplugging it, switching out the FW cord, changing the FW slot it was being plugged into, and everything else of that nature that I could think of. Of course the USB drive that has non-important work related stuff works just fine :/
    So I'm wondering, does anyone think the drive has officially crapped out? It turns on and works so I can't tell. I'm PRAYING this is not the case, but I didn't know if there were any possible FW configuration settings that could have been changed or something like that. Any ideas?

    Did you recently update to 10.4.10? Is there another computer that you can plug the external into to see if it's recognized? Have you tried plugging another FW peripheral into your main computer to see if it recognizes it?
    Some people have had good results from the following:
    1. Downloading and installing the combo updater of the system software update they've just applied via "Software Update...". In your case the update you need is at:
    10.4.10 combo updater
    2. Another trick is to restart each by zapping the parameter RAM:
    Zapping the P-RAM:
    After the startup tone, hold down <commandd><option><r> until 3 additional startup tones are heard, then release the 4 keys.
    3. A 3rd tip would be to do Open Firmware resets on each:
    After the startup tone, hold down <command><option><o><f> until the text screen is visible. When text can be entered, type the following commands, followed by the <return> key (there are no space characters in each command):
    reset-nvram
    set-defaults
    reset-all (the Mac will boot up after this command is entered).
    Also, see if anything in this Apple KB article helps:
    http://docs.info.apple.com/article.html?artnum=88338
    Please post back with results,
    Miriam

  • Javac path not found

    Hi,
    When I  changed the message mapping ( GMT ) and activating the change list,  XI int.builder throwing error with javac path not found. Any help on this is greatly appreciated.
    Thanks,
    Daniel.LA

    Hi,
    Make sure that u installed Java (with the required version) and the corresponding class path is set in the system.
    One of the ways to set the class path by right clicking my computer>properties->Select Advanced->Click Environment Variables->Select path from System Variables>Click Edit-->and add the "bin" folder of java to it.
    Now test it by running command java in command editor. It should work fine.
    Hope this helps.
    -Prasad Babu.

  • Javac: file not found

    I recently downloaded NetBeans 1.6 Java SE and i'm trying to learn programming. I set my path variable to C:\Program Files\Java\jdk1.6.0_03\bin as it said somewere on Javas website. In NetBeans 1.6 this is the code i typed
    class HelloWorld {
    public static void main (String args[]) {
    System.out.println("Hello World!");
    I saved it as HelloWorld.java
    When i went in to command promt to try it i type: javac HelloWorld.java
    and i get this error messege: javac: file not found: HelloWorld.java
    What did i do wrong?

    codyman7023 wrote:
    flounder wrote:
    Is that the same as any of the suggestions provided above?what?Not sure what your problem is here but I am at the point of giving up on you.
    Numerous people made suggestions in this thread. You responded asking if X was okay when X does not look like ANY of the suggestions given to you.
    So no. X is no good and I have no idea why you think resorting to random guessing is going to solve your problem. Why don't you tell us which reply you are attempting to use to solve your request so that we can make suggestions to you on how to fix the broken guesswork you posted in your previous reply?

  • DBConsole - ps: Not a recognized flag

    Hello Folks,
    I'm installing the Enterprise Manager (DBConsole) on an AIX 5.3 L, using the Oracle 10gR1 (10.1.0.5). After install the DBConsole successfully, when I issue the command -> emctl start dbconsole, I'm getting the error message:
    cov6100:hprndv $ emctl start dbconsole
    Oracle Enterprise Manager 10g Database Control Release 10.1.0.5.0
    Copyright (c) 1996, 2005 Oracle Corporation. All rights reserved.
    http://cov6100.columbus.visteon.com:1158/em/console/aboutApplication
    ps: Not a recognized flag: x
    Usage: ps [-ANPaedfklmMZ] [-n namelist] [-F Format] [-o specifier[=header],...]
    [-p proclist][-G|-g grouplist] [-t termlist] [-U|-u userlist] [-c classlist] [ -T pid] [ -L pidlist]
    Usage: ps [aceglnsuvwxU] [t tty] [processnumber]
    could someone help me to fix that, please?

    I have the same problem. EM never starts and the logs are useless...
    anyone find a solution?
    Oracle Enterprise Manager 10g Database Control Release 10.2.0.1.0
    Copyright (c) 1996, 2005 Oracle Corporation. All rights reserved.
    http://housora1z1:5500/em/console/aboutApplication
    ps: unknown output format: -o cmd
    ps: illegal option -- cols
    usage: ps [ -aAdeflcjLPyZ ] [ -o format ] [ -t termlist ]
    [ -u userlist ] [ -U userlist ] [ -G grouplist ]
    [ -p proclist ] [ -g pgrplist ] [ -s sidlist ] [ -z zonelist ]
    'format' is one or more of:
    user ruser group rgroup uid ruid gid rgid pid ppid pgid sid taskid ctid
    pri opri pcpu pmem vsz rss osz nice class time etime stime zone zoneid
    f s c lwp nlwp psr tty addr wchan fname comm args projid project pset
    Starting Oracle Enterprise Manager 10g Database Control

  • Javac is not working in Win NT

    HI
    What are the necessary settings has to be made to complie the a java program in Window NT.
    javac <javaprg.java> is not compiling the java program.
    It gives the error "there is not file exist with extension .java "
    Please reply
    Thanks

    hey,
    ->first check whether the file has been saved as a .java file.
    ->right click my computer > Properties > environment
    there click on the path variable in the system variables box. here you give the path of the jdk bin directory (ex. d:\jdk1.3\bin).
    ->then go to command prompt and go to the directory where you have stored the .java file. type javac at the command prompt and check whether it lists all the options. if it does then you are ready.
    ->then complile your program with "javac <filename>.java" at the command prompt.
    that should do.
    Cheers,
    Win!

Maybe you are looking for

  • Creation of New Item Category

    Hi All Can anyone give an example of when a new item category creation will be required in practical ? Anil

  • How Actual hours for a Particular Activity is getting Calculated in CJ20N?

    Hi Experts,          i have a small issue in PS module.In Cj20n after creation of project, under the activity the actual hours are differing from those of CATS hours.How or from where the actual hours are getting populated.The value is getting stored

  • The Java File ... Could Not Be Launched

    I have X.jar files that whenever I launch java opens (as I can see in the dock) and then immidately quits. A few seconds later I get a popup: "The Java JAR file "Whatever.jar" could not be launched. Check the console for possible error messages." Typ

  • Move data from 1:1 to M:M

    I have 2 table. one is s_org_ext and another one is s_org_ext_x. Relationship between the two table has 1:1 Table 1: Column: Row_id,Name. Table 2: Column: Row_id,BI_Application,Par_Row_id(Foreign key of Table 1). My UI layer displayed recors as follo

  • Discoverer and Jinitiator

    The issue I am experiancing is due to the SSLVerifyClient being set to required within OHS. If this value is set to none or optional that Discover Plus works fine. Requirement at out site require that SSLVerifyClient be set to required. When this is