I can't find "javac"

I am having a hard time fixing this problem. I downloaded JDK 1.6.0_22 and I am using Windows Vista Home Premium edition and when I try to run the "javac HelloWorlApp.java" I get the error: 'javac' is not recognized as an internal or external command, operable program or batch file
I went back and read the directions and also the troubleshooting page with a similar example and created this path:
To set the PATH permanently, add the full path of the jdk1.6.0_<version>\bin directory to the PATH variable. Typically this full path looks something like C:\Program Files\Java\jdk1.6.0_<version>\bin. Set the PATH as follows on Microsoft Windows:
1.Click Start > Control Panel > System on Windows XP or Start > Settings > Control Panel > System on Windows 2000.
2.Click Advanced > Environment Variables.
3.Add the location of bin folder of JDK installation for PATH in User Variables and System Variables. A typical value for PATH is:
C:\Program Files\Java\jdk1.6.0_<version>\bin
I still can't find/run the "javac" command but the computer cannot find it.
Any advice? Thanks...
Richard.

Hi guys, thanks for the information. I removed the files I added to the bin folder and put them back in my documents. I followed the instructions here:
http://download.oracle.com/javase/tutorial/getStarted/cupojava/win32.html#win32-2b
and I can't run "javac" from the java directory. It gives me the same error. I copied what I get from the command screen here:
*"Microsoft Windows [Version 6.0.6002]*
*Copyright (c) 2006 Microsoft Corporation. All rights reserved.*
*C:\Users\Nadia>cd..*
*C:\Users>cd..*
*C:\>cd program files*
*C:\Program Files>cd java*
*C:\Program Files\Java>dir*
*Volume in drive C is OS*
*Volume Serial Number is A034-B5F1*
*Directory of C:\Program Files\Java*
*11/29/2010 12:52 PM <DIR> .*
*11/29/2010 12:52 PM <DIR> ..*
*11/26/2010 06:20 PM <DIR> jdk1.6.0_22*
*08/21/2007 03:24 AM <DIR> jre1.6.0*
*11/04/2010 09:48 PM <DIR> jre6*
*0 File(s) 0 bytes*
*5 Dir(s) 54,392,987,648 bytes free*
*C:\Program Files\Java>dir*
*Volume in drive C is OS*
*Volume Serial Number is A034-B5F1*
*Directory of C:\Program Files\Java*
*11/29/2010 11:03 PM <DIR> .*
*11/29/2010 11:03 PM <DIR> ..*
*11/26/2010 06:20 PM <DIR> jdk1.6.0_22*
*08/21/2007 03:24 AM <DIR> jre1.6.0*
*11/04/2010 09:48 PM <DIR> jre6*
*11/29/2010 11:02 PM 122 whoareyou.java*
*1 File(s) 122 bytes*
*5 Dir(s) 54,392,750,080 bytes free*
*C:\Program Files\Java>javac whoareyou.java*
*'javac' is not recognized as an internal or external command,*
*operable program or batch file."*
After this I went to the troubleshooting section and tried to update the PATH in the Variable Environment.
Kate, you asked what I put in step three, here it is:
In the variable environment I found two boxes: the user variables and the system variables. I clicked "NEW" in the user section and a box came up with two fields:
1- variable name: javac
2- variable value: C:\Program Files\Java\jdk1.6.0_22\bin then I repeated the same steps in the System variable.
Any ideas or recommendations?
Thanks again for all the help!!
Richard.
Edited by: Rinnamorato on Nov 29, 2010 9:22 PM

Similar Messages

  • Can't find Javac.exe

    I'm new to Java (presently taking a class). I'm very confused and not getting too far. I'm running Win XP and have downloaded the latest version of Java J2SE1.4.0_01 (actually because of repeated problems, I've uninstalled and installed it a few times).
    I can't find javac.exe anywhere on my c drive. I read a past forum posting describing the same problem which suggests downloading the latest version of SDK1.4. Isn't this what I have been downloading? Where can I find this download? If it isn't what I've been downloading, why do I need both and how would I have known this? I understand how to set the path once I get javac.exe but I'm becoming frustrated trying to obtain this file and move forward with my study of java. Thanks for the help.

    If you need only to run a java application then you just need a JRE (Java Runtime Enviorment ). It contains everything that you wanted to run it.
    But, if you want to develop some java application , then you needs something more... you need to have to compile those source files first... For this what you want is a SDK (Software development Kit)... Both is free.. You can download the 1.4sdk from http://java.sun.com/Download6
    After downloading and installing it, set the path corectly to include the bin directory of the installed folder..
    Hope it helped
    appu

  • Can't find javac after the installation

    I am a beginner and just start learning Java. I successfully downloaded and installed j2sdk-1_4_0-win.exe to my hard drive. However, when I tried to compile, I always got the message "Bad command". Based on some suggestions in the tutorial, I checked out my folder and did not find javac. So, my questions is: Does the application j2sdk-1_4_0-win.exe include javac? If it is included, how come I could never find it in the folder? If not, is there any supplementary application I need to download except j2sdk-1_4_0-win.exe?

    I am a beginner and just start learning Java. I
    successfully downloaded and installed
    j2sdk-1_4_0-win.exe to my hard drive. However, when I
    tried to compile, I always got the message "Bad
    command". Based on some suggestions in the tutorial, I
    checked out my folder and did not find javac. So, my
    questions is: Does the application
    j2sdk-1_4_0-win.exe include javac? If it is included,
    how come I could never find it in the folder? If not,
    is there any supplementary application I need to
    download except j2sdk-1_4_0-win.exe?You installed the correct thing - but did you set the PATH correctly?
    See: http://java.sun.com/j2se/1.4/install-windows.html
    There should be c:\j2sdk1.4.0\bin\javac.exe. If it's not there, I don't understand how this could happen. Try uninstalling Java and reinstalling it in that case.
    Monika.

  • Can't find javac on suns site

    i'm currently reading an e-book SAMS Teach Yourself Programming with Java? in 24 Hours, FOURTH EDITION
    By Rogers Cadenhead
    In the book he's typing his java into a word processor and compiling it with a prog called javac and running it with java that i can't seem to find on java.sun.com
    i installed the java se jdk and jdk + netbeans from http://java.sun.com/javase/downloads/index.jsp but the files aren't in there and netbeans is a bit too advanced for me to use right now.
    can someone lead me in the right direction on where to get these simple java prog compilation and running tools?
    thanks

    argalorn wrote:
    i'm currently reading an e-book SAMS Teach Yourself Programming with Java? in 24 HoursThat's your first major problem right there. Any book that makes such a ludicrous claim in its title is unlikely to be a reliable source of information
    In the book he's typing his java into a word processorI doubt it, but if he really is, that's a big mistake.
    i installed the java se jdk and jdk + netbeans from http://java.sun.com/javase/downloads/index.jsp but the files aren't in there
    Yes, they are.
    can someone lead me in the right direction on where to get these simple java prog compilation and running tools?If you follow the directions here precisely, it will work: [http://java.sun.com/docs/books/tutorial/getStarted/cupojava/index.html]

  • Can't  find javac and javadoc

    Hi, I believe I set the JAVA_HOME and path variable correct, but when I type command line command "javac" and "javadoc", they are not recognized. But the command "java" is recognized.
    Anybody would let me know how to sort it out? Thanks

    try these at the command prompt.
    PATH=%PATH%;<specify the java directory>/bin;.;
    set CLASSPATH=%CLASSPATH%;<specify the java directory>/lib;.;
    if u r using unix flavours you can change the syntax accordingly.
    this should sort it out. also, if java is working, so should javac. paste the error message what u are getting. that might help solving the problem fast.

  • Just downloaded and Installed, can't find javac.exe

    I think the subject pretty much says it. I've downloaded and installed java. Trying to follow the tutorial, but I cant find a "javac.exe" file on my computer?
    What did i do wrong?

    Dont be impressed of the download-time. Forte is very nice, but you need much RAM and a good processor. I use 300Mhz and 128Ram, in this case it was definately to slow. now I use JCreator 2.0... it�s free and has not such nice functions like Forte, but it opens in 3 seconds, while Forte always needed about 1 min !

  • Can't find javac.exe file

    After trying to install the J2EE sdk 3 times I'm at a lost. My C:\j2sdkee1.3.1\bin\ directory does not contain the javac.exe or java.exe files. I'm 100% sure I installed the sdk and NOT the JRE. For one reason or another the installations never give me those 2 files.
    I made sure I've downloaded the whole installation file: j2sdkee-1_3_1-win.exe (16.9 MB).
    The one odd thing is that when I search my computer, there are javac.exe and java.exe files in the "/jvm/bin" directory of dreamweaver application. I'n not sure if that has an effect on the installation.
    Can anyone help me?

    Note the following statement:
    This release relies on the Java 2 SDK, Standard Edition ("J2SETM"). The following table lists the required version of the J2SE for each operating system that is supported with this release of the J2EE SDK.
    on this page:
    http://java.sun.com/j2ee/sdk_1.3/
    (you need the j2se download...)

  • Can't Find Javac

    Hi, I've just installed JDK1.6.0 for Windows and when I try to compile my .java file it says that javac is not recognized as an internal or external command, operable program or batch file. I currently have JDK1.6.0 installed in "C:\Program Files\Java\jdk1.6.0". Could anyone point me in the right direction to get the .java file to actually compile with javac? If you could give me the exact directory that would be great.

    maybe you dont set the path for java ...
    the director is : C:\Program Files\Java\jdk1.6.0\bin\javac.exe
    try to set path ...
    and open CMD and write "set path" and press enter ...

  • Dll on Tomcat 6 got UnsatisfiedLinkError ... Can't find dependent libraries

    I created a dll file and it ran with no errors on the command line. But when i deployed it together with the java class file over to Tomcat 6.0\lib and ran it with a web application, Tomcat's log file reported:
    Exception in thread "Thread-12" java.lang.UnsatisfiedLinkError: C:\Program Files\Apache Software Foundation\Tomcat 6.0\lib\Binless.dll: Can't find dependent libraries
         at java.lang.ClassLoader$NativeLibrary.load(Native Method)
         at java.lang.ClassLoader.loadLibrary0(Unknown Source)
         at java.lang.ClassLoader.loadLibrary(Unknown Source)
         at java.lang.Runtime.loadLibrary0(Unknown Source)
         at java.lang.System.loadLibrary(Unknown Source)
         at jni.server.Binless.<clinit>(Unknown Source)
         at org.brainml.analysisserver.queue.ProcessItemThread.run(ProcessItemThread.java:57)
    Here is what I did:
    Step 1: Compile and manifest
    "%MSVCDir%\bin\cl.exe" /I"%JAVA_HOME%\include" /I"%JAVA_HOME%\include\win32" /MD /LD /FeBinless.dll ../info/binless/jni_binless.c ../jni_shared/jni_gen_c.c ../jni_entropy/jni_entropy_c.c ../../entropy/entropy_nsb_c.cpp /link libxml2.lib libgsl.a libgslcblas.a >> binless-out.txt
    mt.exe -manifest Binless.dll.manifest -outputresource:Binless.dll;2
    The operating system is Windows XP and has the following environment variables:
    PATH=%JAVA_HOME%\bin;%LIBXMLDir%\bin;%ICONVDir%\bin;%GNUWINDir%\bin;%WINSDKDir%\bin;%MSVCDir%\bin;%MSVCDir%\..\Common7\IDE;%ZLIBDir%\bin;%systemroot%\system32;%systemroot%;%systemroot%\system32\wbem
    INCLUDE=%WINSDKDir%\include;%GNUWINDir%\include;%MSVCDir%\include;%MSVCDir%\PlatformSDK\include;%JAVA_HOME%\include;%JAVA_HOME%\include\win32;%LIBXMLDir%\include;%ICONVDir%\include;%ZLIBDir%\include
    LIB=%WINSDKDir%\lib;%GNUWINDir%\lib;%MSVCDir%\lib;%MSVCDir%\PlatformSDK\lib;%LIBXMLDir%\lib;%ICONVDir%\lib;%ZLIBDir%\lib
    where:
    GNUWINDir=c:\project\lib\GnuWin32
    ZLIBDir=c:\project\lib\zlib
    ICONVDir=c:\project\lib\iconv
    LIBXMLDir=c:\project\lib\libxml2
    WINSDKDir=C:\Program Files\Microsoft SDKs\Windows\v6.0A
    MSVCDir=C:\Program Files\Microsoft Visual Studio 9.0\VC
    Step 2: Compile the Java jni code
    javac -d ..\classes ..\server\Binless.java
    Step 3: Ran the code
    java -classpath ..\classes jni.test.test_binless
    Successful with no errors.
    Step 4: Copied Binless.dll and Binless.class in a jar file (Binless.dll NOT in the jar file) to Tomcat 6.0\lib, and then ran a web application that called the Binless class.
    Got UnsatisfiedLinkError (see above) in Tomcat's log file.
    Am I missing something? Any help is greatly appreciated. Thank you.

    Problem:- Hi i was trying to gererate a dll through make file using CL command using visual studio 2005 on windows 2008 (64 bit) machine. Although i was able to generate DLL file but while using this DLL file by JNI it was throwing can't find dependent libraries.
    1. I used Dependency walker to check for dependent dll's(error on msvcr80.dll and etc).
    2. On visual studio 2005 there are certain things: Visit link http://msdn.microsoft.com/en-us/library/ms235342(v=vs.80).aspx
    Solution:- I have added mt.exe -manifest ../../generated/MyLibrary.dll.manifest - outputresource:"../../generated/MyLibrary.dll;2" just after CL command ends. it runs successfully....
    cheers
    Abi...

  • Java.lang.UnsatisfiedLinkError: D:\...*dll: Can't find dependent libraries

    Hello,
    Every time I try run my application I get this:
    Exception in thread "main" java.lang.UnsatisfiedLinkError: D:\Java_przyklady\Met
    ody_macierzyste\HelloNative.dll: Can't find dependent libraries
    at java.lang.ClassLoader$NativeLibrary.load(Native Method)
    at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1560)
    at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1485)
    at java.lang.Runtime.loadLibrary0(Runtime.java:788)
    at java.lang.System.loadLibrary(System.java:834)
    at HelloNative.<clinit>(HelloNative.java:12)
    at HelloNativeTest.main(HelloNativeTest.java:10)
    This application is example which was provided with book- Core Java 2
    Here is exactly what I have:
    HelloNative.java
    class HelloNative
       public static native void greeting();
       static
          System.loadLibrary("HelloNative");
    }HelloNativeTest.java
    class HelloNativeTest
       public static void main(String[] args)
           HelloNative.greeting();
    }Here is my HelloNative.c
    #include "HelloNative.h"
    #include <stdio.h>
    JNIEXPORT void JNICALL Java_HelloNative_greeting(JNIEnv* env,
       jclass cl)
       printf("Hello world!\n");
    }and HelloNative.h
    /* DO NOT EDIT THIS FILE - it is machine generated */
    #include <jni.h>
    /* Header for class HelloNative */
    #ifndef _Included_HelloNative
    #define _Included_HelloNative
    #ifdef __cplusplus
    extern "C" {
    #endif
    * Class:     HelloNative
    * Method:    greeting
    * Signature: ()V
    JNIEXPORT void JNICALL Java_HelloNative_greeting
      (JNIEnv *, jclass);
    #ifdef __cplusplus
    #endif
    #endifI did:
    javac HelloNative.java (I got HelloNative.class)
    javah HelloNative (I got HelloNative.h)
    gcc -c -D__int64="long long" -Ic:\j2sdk1.4.2\include\ -Ic:\j2sdk1.4.2\include\win32 HelloNative.c (I got HelloNative.o)
    dllwrap --add-stdcall-alias -o HelloNative.dll HelloNative.obut here I got:
    dllwrap: no export definition file provided
    Creating one, but that may not by what you wantand
    HelloNative.dll
    May by I made mistake used dllwrap, what this feedback means for me?
    So, when I did everything what I wrote abow I got:
    HelloNative.class
    HelloNative.h
    HelloNative.o
    HelloNative.dll
    and I run
    HelloNativeTest.class and I got above Error
    I use j2sdk1.4.2 and Windows XP
    Could anybody tell me what I did wrong???
    I will be appreciate

    The "Native Methods" forum is for JNI questions.
    See this thread...
    http://forum.java.sun.com/thread.jspa?forumID=52&threadID=534964

  • Error: can't find libjava.so

    First the facts:
    1. I can use my java and javac tool from anywhere on the tree.
    2. My compilation works without a problem also the running of java classes.
    3. Every time I try to install a program from a copmany called Navini for Solaris.
    #./install.bin
    Preparing to install . . .
    Extracting the JRE from the installer archive. . .
    Unpacking the JRE . . .
    Extracting the installation resources from the installer archive . . .
    Configuring the installer for this system's environment. . .
    Launching installer. . .
    Error: can't find libjava.so.
    This is the error I get. I tried puting the APPHOME, and JREHOME variables to what they be. I look for the link dependencies and all are correct.
    Any help will be appreciated.
    Thanks,
    Georgios

    Hello Georgios,
    I would suggest that you repost on one of the <b>Java Forums</b>.
    EDIT: Using <b>'Error: can't find libjava.so' +Solaris</b> for a google search found the following website that may give a hint.<br />
    http://www.macromedia.com/cfusion/knowledgebase/index.cfm?id =tn_18347
    Michael

  • Where can I find/download the package that contains: OracleConnectionPoolD

    Hi,
    I have classes12.zip and can make successful database connections using Oracle's JDBC driver.
    However, when I tried to run a connection pooling example - from a text book (called "PooledExample.java") - I got the following error messages...
    C:\testdart\testdart\source>javac PooledExample.java
    PooledExample.java:5: package oracle.jdbc.driver does not exist
    import oracle.jdbc.driver.*;
    ^
    PooledExample.java:7: package oracle.jdbc.pool does not exist
    import oracle.jdbc.pool.*;
    ^
    PooledExample.java:15: cannot resolve symbol
    symbol : class OracleConnectionPoolDataSource
    location: class PooledExample
    OracleConnectionPoolDataSource poolDataSrc =
    ^
    PooledExample.java:16: cannot resolve symbol
    symbol : class OracleConnectionPoolDataSource
    location: class PooledExample
    new OracleConnectionPoolDataSource();
    ^
    4 errors
    Where can I find/download the package that contains these classes (I'm assuming that there missing)? Is it possible that JDBC 2.0 works for Oracle9i only? (I'm using Oracle8i)
    I looked on Oracle's website but its not clear where to download this API
    Thanks!!!

    They should be in classes12.zip (oracle.jdbc.driver definitely is). It sounds like you don't have classes12.zip in your classpath when you are compiling. Normally you don't use the Oracle classes directly so you only need classes12.zip when running your application but in your case you are directly referring to them in your Java source code so you need them when you compile.
    Col

  • Can't find jdbc-odbc bridge driver

    Hi
    I've installed sdk 2.0 (v1.4.1) and am getting the runtime error:
    "Exception in thread main java.lang.NoClassDefFoundError <prog name>/class" from the java prompt.
    I suspect it is the jdbc-odbc bridge driver that is the problem. It should have downloaded with the SD 2.0 installation, but I can't find it on my NT PC.
    Any ideas?

    I suspect you are using,java <program_name>.class to execute your program.
    Then it will try to find the promram 'class' in the package '<program_name>'.
    You need to use, java <program_name>, thats all.
    For eaxample if you have Prg1.java, then use,
    'javac Prg1.java' to compile it and 'java Prg1' to run it.
    Sudha

  • Can't find libjava.so.

    I have Redhat 7.2, I've installed jdk1.3.3_01. When I try to compile I get the error can't find libjava.so. My .bash_profile file reads as follows
    # .bash_profile
    # Get the aliases and functions
    if [ -f ~/.bashrc ]; then
    . ~/.bashrc
    fi
    # User specific environment and startup programs
    PATH=/sbin:/usr/sbin:/usr/local/jdk1.3.1_01/bin/javac:/usr/java/jre1.3.1_03/lib/i386/libjava.so;
    CLASSPATH=/usr/local/jdk1.3.1_01/bin/javac:/usr/java/jre1.3.1_03/lib/i386/libjava.so:/usr/local/jdk1.3.1_01/:/usr/local/jdk1.3.1_01/jre/lib/rt.jar
    BASH_ENV=$HOME/.bashrc
    USERNAME="root"
    export USERNAME BASH_ENV PATH CLASSPATH
    what I'm I doing wrong

    Here is my .bash_profile as root
    # .bash_profile
    # Get the aliases and functions
    if [ -f ~/.bashrc ]; then
         . ~/.bashrc
    fi
    # User specific environment and startup programs
    PATH=/sbin:/usr/sbin:/usr/local/jdk1.3.1_01/bin:/usr/local/jdk1.3.1_01/jre/lib/i386/;
    CLASSPATH=/usr/local/jdk1.3.1_01/jre/lib/rt.jar:/usr/local/jdk1.3.1_01/jre/lib/i386/
    LD_LIBRARY_PATH=/usr/java/jre1.3.1_03/lib/i386
    export PATH
    export CLASSPATH
    export LD_LIBRARY_PATH
    unset USERNAME
    set JAVA_HOME: /usr/local/jdk1.3.1_01/bin
    export JAVA_HOME
    which javac returned /usr/bin/javac
    which libjava.so returned /usr/bin/libjava.so
    env | grep "^PATH=" returned PATH=/bin:/usr/bin:/usr/X11R6/bin:/usr/local/bin:/home/stacey/bin:/usr/local/jdk1.3.1_01/bin:/usr/local/jdk1.3.1_01/jre/lib/i386/libjava.so
    env | grep "^LD_LIBRARY_PATH" returned nothing

  • Tomcat + FedoraCore5 can't find JDBC Library

    Hi,
    I installed Fedora Core 5 + Tomcat5 and installed my old webapps. I added the oracle JDBC driver to the WEB-INF/lib directory but still the servlet can't find the jar file (???). It is a JAR file, not a ZIP file.
    Tomcat 5.5.9 didn't have this problem.
    Anybody who knows of a solution ?
    Thanks
    Coen

    I suspect you are using,java <program_name>.class to execute your program.
    Then it will try to find the promram 'class' in the package '<program_name>'.
    You need to use, java <program_name>, thats all.
    For eaxample if you have Prg1.java, then use,
    'javac Prg1.java' to compile it and 'java Prg1' to run it.
    Sudha

Maybe you are looking for

  • Java Stored Procedure in EXECUTE IMMEDIATE

    Hi, I need advice for the following. I'm on Oracle 11g R2. I'm testing application in Oracle 11gR1 and R2 and Oracle Express. Purpose is to generate XML reports. I have PLSQL Stored Procedure which does that, but since there is bug in Oracle11gR2 rel

  • Problem Facing in IW21 for SAP PM.

    When i am trying T code IW21 in that, i am  not getting the field PERSON RESPONSIBLE in SPRO, can any one tell me the path.

  • Credit Card processing - Urgent

    Hi all , Can please some one let me know whether the following are feasible in credit card processing 1. masking cards all but the last 4 digits 2. Reporting expiring cards 3. validate card number before proceeding to open items for selection.( autho

  • Php/mysql ajax toggle div

    Hi, I have recently started using ajax in my pages, and I am very impressed! But my skills have not yet developed and I am using a code snippet off the internet to do what I want. I have a hidden div tag called photo to which I want to load images in

  • IPhone 6 plus not possible to add recipient to messages

    I have an iPhone 6 Plus. A big display that I thought would add great possibilities to the iPhone. But among other issues there is one annoying issue that sticks out: when I try to forward a picture from another message, or try to send a picture from