Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » e(fx)clipse » Why JRE and not ANT JDK settings?
Why JRE and not ANT JDK settings? [message #1707734] Tue, 08 September 2015 23:46 Go to next message
Paul Roubekas is currently offline Paul RoubekasFriend
Messages: 207
Registered: March 2012
Location: Chattanooga, TN USA
Senior Member
Eclipse for RCP and RAP Developers
Version: Mars Release (4.5.0)
Build id: 20150621-1200

While updating this e(fx)clipse tutorial I am getting stuck. The current draft of the updated tutorial is here. The
"Generate ant build.xml and run" step produces the error seen in the embedded screen capture.

index.php/fa/23185/0/

I had to add a JAVA_HOME environment variable to my OS and set it to the JDK. Then I set the JDK in the eclipse.ini file too. But I am still having issues with ant.

What do I check next?


Oxygen 3a
Windows 10
Re: Why JRE and not ANT JDK settings? [message #1707754 is a reply to message #1707734] Wed, 09 September 2015 07:13 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
The ant-launch is using the projects JRE System Library of the project
which is in your case only a JRE. The best solution is to teach Eclipse
about the JDK and remove the JRE.

Tom

On 09.09.15 01:46, Paul Roubekas wrote:
> Eclipse for RCP and RAP Developers
> Version: Mars Release (4.5.0)
> Build id: 20150621-1200
>
> While updating https://wiki.eclipse.org/Efxclipse/Tutorials/Tutorial1 e(fx)clipse tutorial I am getting stuck. The current draft of the updated tutorial is https://wiki.eclipse.org/Efxclipse/Tutorials/Tutorial01v4.5.0. The
> "Generate ant build.xml and run" step produces the error seen in the embedded screen capture.
>
>
>
> I had to add a JAVA_HOME environment variable to my OS and set it to the JDK. Then I set the JDK in the eclipse.ini file too. But I am still having issues with ant.
>
> What do I check next?
>
Re: Why JRE and not ANT JDK settings? [message #1707855 is a reply to message #1707754] Wed, 09 September 2015 18:32 Go to previous messageGo to next message
Paul Roubekas is currently offline Paul RoubekasFriend
Messages: 207
Registered: March 2012
Location: Chattanooga, TN USA
Senior Member
Sorry, but I don't understand the answer.

Quote:
The ant-launch is using the projects JRE System Library of the project
which is in your case only a JRE


In my case the preference for ANT points to a JDK \...\jdk1.8.0_25\lib\tools.jar
Preferences -> Ant -> Runtime -> Global Entries. So why is the Java FX build using the JRE for the project and not using the preferences for ANT, when doing a build, as shown? What am I missing here?

index.php/fa/23207/0/

Why do I need to change anything with the JRE when the preferences for ANT point to the correct JDK?


Oxygen 3a
Windows 10
Re: Why JRE and not ANT JDK settings? [message #1707872 is a reply to message #1707855] Thu, 10 September 2015 06:51 Go to previous messageGo to next message
Dirk Fauth is currently offline Dirk FauthFriend
Messages: 2902
Registered: July 2012
Senior Member
It means, you are looking in the global preferences, not in the project properties. And you should configure a JDK to the Installed JREs and connect the appropriate Execution Environment.
Re: Why JRE and not ANT JDK settings? [message #1707930 is a reply to message #1707872] Thu, 10 September 2015 15:21 Go to previous messageGo to next message
Paul Roubekas is currently offline Paul RoubekasFriend
Messages: 207
Registered: March 2012
Location: Chattanooga, TN USA
Senior Member
I have now added this section to this tutorial for the benefit of others.

Oxygen 3a
Windows 10
Re: Why JRE and not ANT JDK settings? [message #1708137 is a reply to message #1707930] Mon, 14 September 2015 07:58 Go to previous message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
Paul,

This is wonderful work! - I hope this will save many others a lot of time.

I often regret that I have not enough time to keep the documentation at
a level that really helps the beginners!

Tom

On 10.09.15 17:21, Paul Roubekas wrote:
> I have now added
> https://wiki.eclipse.org/Efxclipse/Tutorials/AddingE%28fx%29clipse_to_eclipse#Configure_eclipse_to_use_a_JDK_not_a_JREsection
> to
> https://wiki.eclipse.org/Efxclipse/Tutorials#Tutorial:_Adding_e.28fx.29clipse_to_eclipse
> for the benefit of others.
Previous Topic:Will there be an updated version of the JavaFX e(fx)clipse bundle structure published soon?
Next Topic:update of Target Platform to 2.1.0 fails
Goto Forum:
  


Current Time: Fri Apr 26 02:23:00 GMT 2024

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

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

Back to the top