Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Unable to find a javac compiler

2909064Jul 31 2015 — edited Aug 6 2015

this is the error I have

Unable to find a javac compiler;
com.sun.tools.javac.Main is not on the classpath.
Perhaps JAVA_HOME does not point to the JDK.

I have tried to use both these concepts
To generate build instructions and export the project:
Generate ant build.xml only (door one)
Generate ant build.xml and run (door TWO)
yes I only use EXE when I select door one
and none with door two

I have Inno SetUP in my Path
C:\Program Files\Inno Setup 5;C:\ProgramData\Oracle\Java\javapath;C:\Program Files\Java\jdk1.8.0_45\bin;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;C:\Program Files\Dell\DW WLAN Card

I read this but Eclipse seems to have a different options

• Right Click build.xml ---> Build path ---> configure buildpath ---> select libraries tab
• click "Add library" ---> double click on [jre system library ] ---> environments ---> installed jres ---> Add ---> standard vm
• click on directory ---> Browse upto jdk [C:\Program Files\Java\jdk1.7.0_01]
• finish
• change the selection jre to jdk ---> click ok

This post has been answered by 2909064 on Aug 6 2015
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 3 2015
Added on Jul 31 2015
4 comments
2,015 views