problem following e(fx)clipse tutorial 1 step 9 [message #1308041] |
Mon, 21 April 2014 23:15 ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
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 message Go to previous message](theme/Solstice/images/up.png) ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
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 message Go to previous message](theme/Solstice/images/up.png) ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
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 message Go to previous message](theme/Solstice/images/up.png) ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
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] by Moderator 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 message Go to previous message](theme/Solstice/images/up.png) ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
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 #1314106 is a reply to message #1313666] |
Fri, 25 April 2014 07:01 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
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?
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03896 seconds