13 Replies Latest reply: Sep 3, 2010 5:35 PM by 843804 RSS

    Javac.exe

    843804
      I'll make this brief.I have a Windows XP Home operating system and I
      downloaded the jre1.5.0_05 SDK.I wrote a simple "Hello World" program
      and tried compiling it.
      I got the standard 'javac' is not recognized as an internal or external command, operable program or batch file error,so I thought I'd find the proper file path
      to Javac.exe.
      The thing is believe it or not,Javac.exe appears to be nowhere on my computer.It's not listed in my java bin.I tried doing a search on my computer
      and no javac.exe was to be found..
      Should I just try installing java again?
      Thank you
        • 1. Re: Javac.exe
          843804
          Hi,
          you have to download JDK, not JRE.
          http://java.sun.com/j2se/1.5.0/download.jsp

          After installing JDK, you have to set CLASSPATH as expressed here:
          http://java.sun.com/j2se/1.5.0/docs/tooldocs/windows/classpath.html

          L.P.
          • 2. Re: Javac.exe
            843804
            That's exactly what the problem was,so I re-installed the whole bundle
            and successfully compiled and ran a little program.
            Thank you.
            • 3. Re: Javac.exe
              843804
              So what about dukes?
              • 4. Re: Javac.exe
                843804
                is there any way i can download or get javac.exe to work without installing jdk? i haven't been able to do it.
                • 5. Re: Javac.exe
                  843804
                  is there any way i can download or get javac.exe to
                  work without installing jdk? i haven't been able to
                  do it.
                  You should not do that either.
                  • 6. Re: Javac.exe
                    843804
                    is there no way to work around this? i really need to install jdk...
                    • 7. Re: Javac.exe
                      843804
                      You must install the JDK to make javac.exe work.

                      L.P.
                      • 8. Re: Javac.exe
                        843804
                        I cannot find javac.exe in my bin folder on my pc and i am very certain that I installed the sdk version. i really need it badly. can anyone help?
                        • 9. Re: Javac.exe
                          843804
                          You can get a Java Integrated Development Editor (IDE). It should come with its own compiler. I like JCreator; Eclipse is also popular. You can use these programs to compile with the SDK. See www.jcreator.com
                          • 10. Re: Javac.exe
                            843804
                            Hi
                            Can anyone please tell me how to set the classpath. I don't know anything about. I have installed the JDK but it is still saying the same thing

                            'javac' is not recognised as an internal or external command, operable program or batch file

                            Please let me know how to fix this things from scratch. My program is in my F: drive and I want to run it. I will be grateful to you for this favour.

                            Regards,
                            - Ali
                            • 11. Re: Javac.exe
                              843804
                              You don't want classpath, you want path.

                              Check [step 4 of the installation notes|http://java.sun.com/javase/6/webnotes/install/jdk/install-windows.html].
                              • 12. Re: Javac.exe
                                843804
                                i found javac.exe but when i click it it just opens a command prompt thingy loads some things and literally closes in 2 seconds then when i try to work it says javac is not a recognized as an internal or external command, operable program or batch file error so please help
                                • 13. Re: Javac.exe
                                  843804
                                  Try typing "javac" from a command prompt (Start--Run--"cmd"). It should display the same usage information that you saw flash across the screen before, but the command prompt will stay open.