Menu

DromblerFX & Eclipse - How to execute sample app?

Dirk
2015-02-27
2015-04-11
  • Dirk

    Dirk - 2015-02-27

    Hi,

    I am actually using Netbeans for development. I am playing around with Eclipse and I am wondering what do I have to do to run the Drombler Sample application from Eclipse. The packaging type drombler-fx-application e.g. is not recognized, main-class is not found etc..

    During maven build I get

    ...
    [WARNING] Ignoring project type drombler-fx-application - supportedProjectTypes = [jar, bundle]

    ...
    [INFO] --- exec-maven-plugin:1.2.1:exec (default-cli) ---
    Fehler: main class true could not be found or loaded
    ...

    My Eclipse run configuration looks like

    Goals: org.codehaus.mojo:exec-maven-plugin:1.2.1:exec

    Parameter:

    exec.args = -ea -Djavafx.verbose=true -Dbinary.css=false -Djava.util.logging.config.file=${project.build.directory}/deployment/standalone/conf/logging.properties -jar ${project.build.directory}/deployment/standalone/bin/foo.jar --userdir ${project.build.directory}/userdir

    exec.executable = java

    exec.classpathScope = runtime

    exec.mainClass = org.drombler.fx.startup.main.Main

    Any help appreciated.
    Thank you.

    Dirk

     
  • Puce

    Puce - 2015-02-28

    Hi Dirk,

    I'm also working with NetBeans normally. To test this I've installed Eclipse Luna on my Linux machine. Unfortunately it crashes all the time. I will have to check it later on a Windows machine.

    -Puce

     
  • Dirk

    Dirk - 2015-03-26

    Hi Puce,

    I have not given it a try since your last post. Did you have any success?

    Dirk

     
  • Puce

    Puce - 2015-03-26

    Hi Dirk,

    I tried it on Windows as well, but I couldn't get it to work yet.

    I will try to find some time to give it another try. I don't really see a reason why it shouldn't work. I'll also try to sepcify this directly in the POM.

    I'm not sure if I'll find time this week though.

    -Puce

     
  • Puce

    Puce - 2015-03-26

    With the execution id "default-cli" it should be possible to specify a configuration for the command line which is supported also for Maven 3.0.x:

    http://stackoverflow.com/questions/3779369/run-a-single-maven-plugin-execution

     
  • Puce

    Puce - 2015-04-11

    First tries running Drombler FX applications from Eclipse using the "default-cli" execution id were successful. I will add the necessary configuration to the archetype.

    See issue [#72].

     
  • Puce

    Puce - 2015-04-11

    Unfortunately, I couldn't get the debug configuration inside Eclipse to work yet. Suggestions are welcome.

    See issue [#73].

     

Log in to post a comment.

MongoDB Logo MongoDB