Results 1 to 6 of 6
  1. #1
    Anianna is offline Member
    Join Date
    Mar 2014
    Posts
    3
    Rep Power
    0

    Default Missing Javac.exe

    I downloaded JDK 8 from the Oracle site and several IDEs to try including Eclipse, Netbeans, and jGrasp (which I have used before and enjoy for simple code). I did this first on a computer running Windows XP and the JDK would not install properly, so nothing would run. So on a computer running Windows 7, I installed the JDK 8 and jGrasp. I checked to make sure the jdk1.8.0 folder was in the proper place and proceeded to work a quick HelloWorld on jGrasp, but I get a wedge2 error saying that it can't find the javac.exe. I added the path to the jdk folder in my system and got the same error, so I checked the jdk folder and I don't see a javac.exe file. I ran a search for javac and no files were found.

    It's been a while since I coded, but I don't recall it being this difficult to get started and I'm feeling like a complete noob. What am I doing wrong?

  2. #2
    gimbal2 is offline Just a guy
    Join Date
    Jun 2013
    Location
    Netherlands
    Posts
    4,365
    Rep Power
    6

    Default Re: Missing Javac.exe

    You need to add the BIN folder of the JDK to the path.

    If there is no javac.exe then you actually have a Java runtime and not a development kit.

    NOTE: Java 8 is just under a week old, it might just be that some IDEs are not updated yet to actually support it.
    Last edited by gimbal2; 03-26-2014 at 06:29 PM.
    "Syntactic sugar causes cancer of the semicolon." -- Alan Perlis

  3. #3
    Anianna is offline Member
    Join Date
    Mar 2014
    Posts
    3
    Rep Power
    0

    Default Re: Missing Javac.exe

    I downloaded the JDK 8 directly from the Oracle website and installed it with all default settings (admin files was not checked as a default - did I need to check that?). The folder jdk1.8.0 exists in Program Files\Java, but I see no javac.exe in the jdk 1.8.0 folder. I added, specifically, C:\Program Files\Java\jdk1.8.0\bin to my system. Is there another file I needed to download with JDK 8? How can it not have the javac.exe in the JDK 8 download?

  4. #4
    KevinWorkman's Avatar
    KevinWorkman is offline Crazy Cat Lady
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    4,041
    Rep Power
    10

    Default Re: Missing Javac.exe

    Can you show us a screenshot of your directory structure, including the bin folder?

    What is your path?

    When you say you added the bin directory to your system, what exactly do you mean?
    How to Ask Questions the Smart Way
    Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!

  5. #5
    Anianna is offline Member
    Join Date
    Mar 2014
    Posts
    3
    Rep Power
    0

    Default Re: Missing Javac.exe

    Regarding the screenshot, are you asking for an image showing the inside of my jdk1.8.0 folder showing that the bin folder is there or you want to see in the bin folder?

    The default path the IDE saves the code to is the documents folder. Perhaps I was using the term "path" incorrectly in my OP. It really has been a long time and I might as well be completely new to this.

    I added the bin to my system via:

    Start\Control Panel\System\Advanced System Settings\Environment Variables

  6. #6
    KevinWorkman's Avatar
    KevinWorkman is offline Crazy Cat Lady
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    4,041
    Rep Power
    10

    Default Re: Missing Javac.exe

    Your PATH is the place that your operating system looks for programs. When you type "javac", it looks in the directores on your PATH for something called javac. That's why you need the bin directory on your PATH. After you add it, you also have to restart your command line (at least on Windows).

    Your PATH is defined where you mentioned, but you have to make sure you're adding it correctly. What is the full text of your PATH? The path your IDE saves code to is irrelevant here, we just need to know your system PATH variable.

    I'm asking for screenshots to make sure we're talking about the same thing. You say that javac isn't in your JDK's bin folder, which seems strange. You're either looking in the wrong place, downloaded the wrong thing, or Java 8 has changed significantly, which sounds the least likely.

    So your problem could be two things: what's actually in your bin folder? And what's on your path? I asked for screenshots because it's easier to be more specific and accurate than just describing what you think is the case.
    How to Ask Questions the Smart Way
    Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!

Similar Threads

  1. What am I missing?
    By jean28 in forum New To Java
    Replies: 4
    Last Post: 10-28-2012, 06:31 PM
  2. org.j3d is missing...
    By LinuxDev@Flanders in forum Java Gaming
    Replies: 3
    Last Post: 07-23-2012, 01:31 PM
  3. What am I missing here?
    By PuppetJacks in forum New To Java
    Replies: 4
    Last Post: 07-01-2012, 12:16 PM
  4. Missing javac.exe
    By selfcontrol in forum New To Java
    Replies: 13
    Last Post: 03-14-2012, 02:56 PM
  5. What am I missing here..?
    By andrew_smiley in forum New To Java
    Replies: 5
    Last Post: 02-22-2012, 02:47 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •