Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Unable to find a javac compiler(Deployment of JavaFX desktop application)
Unable to find a javac compiler [message #1703478] Fri, 31 July 2015 23:18 Go to next message
Dwight Norris is currently offline Dwight NorrisFriend
Messages: 16
Registered: January 2015
Junior Member
It should not be this difficult to deploy an application
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

I will make a deal just tell me how to FIX it and I will share a JavaFX app that preforms CRUD + Searches a CSV file with complete error checking. I am loosing faith in JavaFX too many sites that just have code for a snip of this or that no complete application except code.makery.com


  • Attachment: build.xml
    (Size: 3.74KB, Downloaded 305 times)
Re: Unable to find a javac compiler [message #1703921 is a reply to message #1703478] Wed, 05 August 2015 20:17 Go to previous messageGo to next message
Dwight Norris is currently offline Dwight NorrisFriend
Messages: 16
Registered: January 2015
Junior Member
Well after a few tries I have placed the Image file in a folder named Photos and can now generate a JAR file

src
appCSFFile
Photo
merlin.jpg
CSVMain.java

What I can not do is create an EXE file
I have Inno Setup 5.0 installed and 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

Does any one have an idea of why I can not generate an EXE file this is the ERROR message

Bundler EXE Installer skipped because of a configuration problem: Main application jar is missing
Re: Unable to find a javac compiler [message #1704933 is a reply to message #1703921] Mon, 10 August 2015 20:50 Go to previous message
Dwight Norris is currently offline Dwight NorrisFriend
Messages: 16
Registered: January 2015
Junior Member
Here are the step by step instructions to build an EXE file with Eclipse Luna for a JavaFX Project

Right Click Project Name in Eclipse

Select Build Path

Configure Build Path

Click Libraries Tab

Click Add JAR

Select your project then navigate to build -> dist -> libs

You should have a ProjectName.jar file in the libs folder

If not create a jar file by opening build.fxfuild

Set Package Format to NONE

Click Generate ant build.xml and run

then set Package Format back to EXE

You Console View will tell you where the EXE file was saved Example

C:\Users\User Name\workspace\Project Name\build\deploy\bundles
Previous Topic:Hierarhical organization of projects
Next Topic:Problem with .rf file graphic editor
Goto Forum:
  


Current Time: Tue Apr 16 23:29:33 GMT 2024

Powered by FUDForum. Page generated in 7.96414 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top