Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » e(fx)clipse » Failed to build the e(fx)clipse Tutorial 5.(java.lang.NoSuchMethodError in FXMLCompileTask)
Failed to build the e(fx)clipse Tutorial 5. [message #1227230] Fri, 03 January 2014 18:02 Go to next message
Stefan Hennig is currently offline Stefan Hennig
Messages: 4
Registered: January 2013
Junior Member
Hi!

I was trying to get the "Efxclipse/Tutorials/Tutorial5" tutorial working. I followed the instructions, with one exception: I am using Java 7 instead of Java 8.

When it comes to step 13, the following error occurs after executing the Ant task:

Buildfile: /Users/stefan/Projekte/RoboFX/MyMobileProject/robovm-build/robovm-ant.xml
setup-staging-area:
   [delete] Deleting directory /Users/stefan/Projekte/RoboFX/MyMobileProject/robovm-build/externalLibs
   [delete] Deleting directory /Users/stefan/Projekte/RoboFX/MyMobileProject/robovm-build/project
   [delete] Deleting directory /Users/stefan/Projekte/RoboFX/MyMobileProject/robovm-build/projectRefs
    [mkdir] Created dir: /Users/stefan/Projekte/RoboFX/MyMobileProject/robovm-build/externalLibs
     [copy] Copying 1 file to /Users/stefan/Projekte/RoboFX/MyMobileProject/robovm-build/externalLibs
     [copy] Copying 1 file to /Users/stefan/Projekte/RoboFX/MyMobileProject/robovm-build/externalLibs
    [mkdir] Created dir: /Users/stefan/Projekte/RoboFX/MyMobileProject/robovm-build/project
     [copy] Copying 5 files to /Users/stefan/Projekte/RoboFX/MyMobileProject/robovm-build/project
    [mkdir] Created dir: /Users/stefan/Projekte/RoboFX/MyMobileProject/robovm-build/projectRefs
     [copy] Copying 2 files to /Users/stefan/Projekte/RoboFX/MyMobileProject/robovm-build/project/src
do-compile:
   [delete] Deleting directory /Users/stefan/Projekte/RoboFX/MyMobileProject/robovm-build/build
    [mkdir] Created dir: /Users/stefan/Projekte/RoboFX/MyMobileProject/robovm-build/build/src
    [mkdir] Created dir: /Users/stefan/Projekte/RoboFX/MyMobileProject/robovm-build/build/libs
    [mkdir] Created dir: /Users/stefan/Projekte/RoboFX/MyMobileProject/robovm-build/build/classes
     [copy] Copying 2 files to /Users/stefan/Projekte/RoboFX/MyMobileProject/robovm-build/build/libs
     [copy] Copying 7 files to /Users/stefan/Projekte/RoboFX/MyMobileProject/robovm-build/build/src
    [javac] Compiling 4 source files to /Users/stefan/Projekte/RoboFX/MyMobileProject/robovm-build/build/classes
[fxml-compiler] Compiling /Users/stefan/Projekte/RoboFX/MyMobileProject/robovm-build/build/src/application/Sample.fxml

BUILD FAILED
/Users/stefan/Projekte/RoboFX/MyMobileProject/robovm-build/robovm-ant.xml:83: java.lang.NoSuchMethodError: java.lang.reflect.Type.getTypeName()Ljava/lang/String;

Total time: 6 seconds

Unfortunately, I cannot have a look into the FXMLCompileTask, so any help is kindly appreciated. Thanks!!!

Cheers,
Stefan
Re: Failed to build the e(fx)clipse Tutorial 5. [message #1227396 is a reply to message #1227230] Sat, 04 January 2014 06:08 Go to previous messageGo to next message
Stefan Hennig is currently offline Stefan Hennig
Messages: 4
Registered: January 2013
Junior Member
I was able to get the tutorial working by using Java JDK 8.

Thanks, Tom, for this hint (via twitter).

Cheers,
Stefan
Re: Failed to build the e(fx)clipse Tutorial 5. [message #1228113 is a reply to message #1227396] Mon, 06 January 2014 07:43 Go to previous message
Thomas Schindl is currently offline Thomas Schindl
Messages: 5285
Registered: July 2009
Senior Member
Thanks for the follow up - I've updated the wiki to state that both
JDK7u45 and JDK8beta are needed.

Tom

On 04.01.14 12:08, Stefan Hennig wrote:
> I was able to get the tutorial working by using Java JDK 8.
> Thanks, Tom, for this hint (via twitter).
>
> Cheers,
> Stefan
Previous Topic:FX Projects Types
Next Topic:Curious message running E4/JavaFX/CentOS
Goto Forum:
  


Current Time: Sat Aug 23 01:43:05 EDT 2014

Powered by FUDForum. Page generated in 0.01696 seconds