Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » e(fx)clipse » problem following e(fx)clipse tutorial 1 step 9(error during the tryout)
problem following e(fx)clipse tutorial 1 step 9 [message #1308041] Mon, 21 April 2014 23:15 Go to next message
David W is currently offline David WFriend
Messages: 16
Registered: March 2013
Junior Member
Hi

I use Eclipse 4.3.2 downloaded from http://efxclipse.bestsolution.at/install.html . I also use Java 7

Java(TM) SE Runtime Environment (build 1.7.0_55-b13)
Java HotSpot(TM) 64-Bit Server VM (build 24.55-b03, mixed mode)

When I follow the tutorial 1, on step 9, highlight the MyApplication.java and click "run", I get this following error. I am using Redhat 5.8 and it seems this is NOT supported in this version of RedHat?

prism ES2 Error - nInitialize: glXChooseFBConfig failed
Exception in thread "main" java.lang.RuntimeException: java.lang.UnsatisfiedLinkError: /usr/java/jdk1.7.0_55/jre/lib/amd64/libglass.so: libgio-2.0.so.0: cannot open shared object file: No such file or directory
at com.sun.javafx.tk.quantum.QuantumToolkit.startup(QuantumToolkit.java:284)
at com.sun.javafx.application.PlatformImpl.startup(PlatformImpl.java:127)
at com.sun.javafx.application.LauncherImpl.launchApplication1(LauncherImpl.java:163)
at com.sun.javafx.application.LauncherImpl.access$000(LauncherImpl.java:47)
at com.sun.javafx.application.LauncherImpl$1.run(LauncherImpl.java:115)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.UnsatisfiedLinkError: /usr/java/jdk1.7.0_55/jre/lib/amd64/libglass.so: libgio-2.0.so.0: cannot open shared object file: No such file or directory
Re: problem following e(fx)clipse tutorial 1 step 9 [message #1308598 is a reply to message #1308041] Tue, 22 April 2014 06:42 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
This does look like a JavaFX problem and nothing we can fix for you. Try
asking at the Oracle JavaFX forum or file a bug report.

Tom

On 22.04.14 01:15, David W wrote:
> Hi
>
> I use Eclipse 4.3.2 downloaded from
> http://efxclipse.bestsolution.at/install.html . I also use Java 7
> Java(TM) SE Runtime Environment (build 1.7.0_55-b13)
> Java HotSpot(TM) 64-Bit Server VM (build 24.55-b03, mixed mode)
>
> When I follow the tutorial 1, on step 9, highlight the
> MyApplication.java and click "run", I get this following error. I am
> using Redhat 5.8 and it seems this is NOT supported in this version of
> RedHat?
> prism ES2 Error - nInitialize: glXChooseFBConfig failed
> Exception in thread "main" java.lang.RuntimeException:
> java.lang.UnsatisfiedLinkError:
> /usr/java/jdk1.7.0_55/jre/lib/amd64/libglass.so: libgio-2.0.so.0: cannot
> open shared object file: No such file or directory
> at
> com.sun.javafx.tk.quantum.QuantumToolkit.startup(QuantumToolkit.java:284)
> at
> com.sun.javafx.application.PlatformImpl.startup(PlatformImpl.java:127)
> at
> com.sun.javafx.application.LauncherImpl.launchApplication1(LauncherImpl.java:163)
>
> at
> com.sun.javafx.application.LauncherImpl.access$000(LauncherImpl.java:47)
> at
> com.sun.javafx.application.LauncherImpl$1.run(LauncherImpl.java:115)
> at java.lang.Thread.run(Thread.java:745)
> Caused by: java.lang.UnsatisfiedLinkError:
> /usr/java/jdk1.7.0_55/jre/lib/amd64/libglass.so: libgio-2.0.so.0: cannot
> open shared object file: No such file or directory
>
Re: problem following e(fx)clipse tutorial 1 step 9 [message #1309809 is a reply to message #1308598] Tue, 22 April 2014 22:55 Go to previous messageGo to next message
David W is currently offline David WFriend
Messages: 16
Registered: March 2013
Junior Member
Hi Tom

Thanks, what I found is that JavaFX 2 (from Java 7) does NOT support Redhat 5. Therefore, I just installed the windows version of Java 7 and the Eclipse Kepler . I tried the tutorial again and this time, it goes further. However, when I tried step 11 to build the jar file, Eclipse gives some error like

BUILD FAILED
C:\JavaProj\JavaFX\build\build.xml:53: 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.
It is currently set to "C:\Program Files\Java\jre7"
Re: problem following e(fx)clipse tutorial 1 step 9 [message #1309828 is a reply to message #1309809] Tue, 22 April 2014 23:06 Go to previous messageGo to next message
David W is currently offline David WFriend
Messages: 16
Registered: March 2013
Junior Member
Ok, I got it. Here is the trick

Go to computer properties, advanced system settings, advanced, environment variables
Add a system variable called "JAVA_HOME" set its folder to the JDK location in my case "C:\Program Files\Java\jdk1.7.0_55"

However, I got a new problem, that is the following error
BUILD FAILED
C:\JavaProj\JavaFX\build\build.xml:87: Problem: failed to create task or type javafx:com.sun.javafx.tools.ant:resources
Cause: The name is undefined.
Action: Check the spelling.
Action: Check that any custom tasks/types have been declared.
Action: Check that any <presetdef>/<macrodef> declarations have taken place.
No types or tasks have been defined in this namespace yet

and I checked more, I found the cause is
Could not load definitions from resource com/sun/javafx/tools/ant/antlib.xml. It could not be found.

[Updated on: Tue, 22 April 2014 23:15]

Report message to a moderator

Re: problem following e(fx)clipse tutorial 1 step 9 [message #1310415 is a reply to message #1309828] Wed, 23 April 2014 07:05 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
It looks like it can not find the additional task-defs. I think the
problem is still that it tries to run the build with the JRE instead of
the JDK.

You are better of registering your JDK inside Eclipse you find them in
your preferences Java > Installed JREs and afterwards set the JDK on
your project instead of the JRE it is currently associated with.

Tom

On 23.04.14 01:06, David W wrote:
> Ok, I got it. Here is the trick
>
> Go to computer properties, advanced system settings, advanced,
> environment variables
> Add a system variable called "JAVA_HOME" set its folder to the JDK
> location in my case "C:\Program Files\Java\jdk1.7.0_55"
>
> However, I got a newer problem, that is the following error
> BUILD FAILED
> C:\JavaProj\JavaFX\build\build.xml:87: Problem: failed to create task or
> type javafx:com.sun.javafx.tools.ant:resources
> Cause: The name is undefined.
> Action: Check the spelling.
> Action: Check that any custom tasks/types have been declared.
> Action: Check that any <presetdef>/<macrodef> declarations have taken
> place.
> No types or tasks have been defined in this namespace yet
>
Re: problem following e(fx)clipse tutorial 1 step 9 [message #1313666 is a reply to message #1310415] Fri, 25 April 2014 01:09 Go to previous messageGo to next message
David W is currently offline David WFriend
Messages: 16
Registered: March 2013
Junior Member
Hi Tom

I tried it. but still getting

init-fx-tasks:
[taskdef] Could not load definitions from resource com/sun/javafx/tools/ant/antlib.xml. It could not be found.

Strange, is there anything else?
Re: problem following e(fx)clipse tutorial 1 step 9 [message #1314106 is a reply to message #1313666] Fri, 25 April 2014 07:01 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
Hi,

Can you give me your exact env? So that I can try to reproduce.

Tom

On 25.04.14 03:09, David W wrote:
> Hi Tom
>
> I tried it. but still getting
> init-fx-tasks:
> [taskdef] Could not load definitions from resource
> com/sun/javafx/tools/ant/antlib.xml. It could not be found.
>
> Strange, is there anything else?
Re: problem following e(fx)clipse tutorial 1 step 9 [message #1506200 is a reply to message #1314106] Wed, 10 December 2014 17:09 Go to previous messageGo to next message
Csaba Csörgő is currently offline Csaba CsörgőFriend
Messages: 1
Registered: December 2014
Junior Member
Hi!

I have similar problem. What is the correct solution of this problem?
Re: problem following e(fx)clipse tutorial 1 step 9 [message #1507825 is a reply to message #1506200] Fri, 12 December 2014 00:05 Go to previous message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
So you have oraclejdk8 installed? What jvm is used to launch the build? Screenshots would help
Previous Topic:Table column and composition relation binding
Next Topic:Problem with the "ambitious" installation
Goto Forum:
  


Current Time: Wed Feb 05 13:00:39 GMT 2025

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

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

Back to the top