Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » e(fx)clipse » Problems building e4 application(Problems building e4 application)
Problems building e4 application [message #1705345] Fri, 14 August 2015 01:36 Go to next message
Greg Babcock is currently offline Greg BabcockFriend
Messages: 41
Registered: October 2012
Member
I have had a very good experience building my first e(fx)clipse e4 application, but I am having problems deploying it (The same problems I have deploying the template application).

The first problem is that maven would not resolve the extra classpath element "javafx:javafx.mvn:2.2.0-SNAPSHOT". When I removed this element maven was able to successfully package the product. My suspicion from reading blogs is that this was a workaround for javafx 2 and is not required for java 8. Is this correct?

The second problem is that ANT is throwing an exception when iscc attempts to create an executable. From the error message and the stack trace it looks like the problem is that it can't find the .ico file. Since iscc is looking for the icon in a temp directory that it created, it must copy the file there in an earlier step from the maven target. The template has the same problem, and it does not provide a .ico file, so this would tell me that one is not required. As you can see I am very confused.

[fx:deploy] java.io.IOException: Exec failed with code 2 command [[C:\Program Files (x86)\Inno Setup 5\iscc.exe,
/oD:\Trader\com.tas.spc.releng\deploy\bundles,
C:\Users\babcock\AppData\Local\Temp\fxbundler3912358433828408761\images\win-exe.image\com.tas.spc.product.iss] in
C:\Users\babcock\AppData\Local\Temp\fxbundler3912358433828408761\images\win-exe.image
[fx:deploy] at com.oracle.tools.packager.IOUtils.exec(IOUtils.java:165)
[fx:deploy] at com.oracle.tools.packager.IOUtils.exec(IOUtils.java:138).

How can I launch the application from the command line, as a workaround. I was not able to figure out how using Google.

Thank you,

GB
Re: Problems building e4 application [message #1705359 is a reply to message #1705345] Fri, 14 August 2015 06:59 Go to previous messageGo to next message
Dirk Fauth is currently offline Dirk FauthFriend
Messages: 2903
Registered: July 2012
Senior Member
I explained how to start an e4 fx application from the command line and a way to build a deployable at the bottom of my blog post about SWT to JavaFX migration: https://blog.codecentric.de/en/2015/02/swt-javafx-migration-eclipse-rcp-cookbook/
Re: Problems building e4 application [message #1705361 is a reply to message #1705345] Fri, 14 August 2015 07:05 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
On 14.08.15 03:36, Greg Babcock wrote:
> I have had a very good experience building my first e(fx)clipse e4
> application, but I am having problems deploying it (The same problems I
> have deploying the template application).
> The first problem is that maven would not resolve the extra classpath
> element "javafx:javafx.mvn:2.2.0-SNAPSHOT". When I removed this
> element maven was able to successfully package the product. My
> suspicion from reading blogs is that this was a workaround for javafx 2
> and is not required for java 8. Is this correct?

yes but to me it does not do any harm. I filed
https://bugs.eclipse.org/bugs/show_bug.cgi?id=474944 to remove it.

>
> The second problem is that ANT is throwing an exception when iscc
> attempts to create an executable. From the error message and the stack
> trace it looks like the problem is that it can't find the .ico file.
> Since iscc is looking for the icon in a temp directory that it created,
> it must copy the file there in an earlier step from the maven target.
> The template has the same problem, and it does not provide a .ico file,
> so this would tell me that one is not required. As you can see I am
> very confused.
>
> [fx:deploy] java.io.IOException: Exec failed with code 2 command
> [[C:\Program Files (x86)\Inno Setup 5\iscc.exe,
> /oD:\Trader\com.tas.spc.releng\deploy\bundles,
> C:\Users\babcock\AppData\Local\Temp\fxbundler3912358433828408761\images\win-exe.image\com.tas.spc.product.iss]
> in
> C:\Users\babcock\AppData\Local\Temp\fxbundler3912358433828408761\images\win-exe.image
>
> [fx:deploy] at com.oracle.tools.packager.IOUtils.exec(IOUtils.java:165)
> [fx:deploy] at
> com.oracle.tools.packager.IOUtils.exec(IOUtils.java:138).

I'll try to reproduce that. Can you give me you version JDK used to run
ant and inno-setup?

> How can I launch the application from the command line, as a
> workaround. I was not able to figure out how using Google.
> Thank you,
>

java -jar \
plugins/org.eclipse.equinox.launcher_1.3.100.v20150511-1540.jar

Maybe you also need:

java -jar \
plugins/org.eclipse.equinox.launcher_1.3.100.v20150511-1540.jar \
-config configuration

Tom
Re: Problems building e4 application [message #1705386 is a reply to message #1705361] Fri, 14 August 2015 13:17 Go to previous message
Greg Babcock is currently offline Greg BabcockFriend
Messages: 41
Registered: October 2012
Member
Thank you Dick and Tom

A your responses and a little sleep has clarified the process for me. Unfortunately my Googleing didn't turn up Dick's tutorial, it would have been very helpful. I now understand that I can get an executable launcher the old way, and that the ant task is just for creating an installer.

Tom, I agree that if maven can resolve the extra files (which I couldn't get it to do) that it doesn't cause. It did add to my confusion of the process because I was not sure what it was for, and if it caused my downstream problem.

While you are updating the project to remove the javafx.mvn reference I think a readme file in the releng directory explaining the process would be a big time saver for newbies.

I am running ant using jdk 1.8.0_45 on Windows. My inno setup is the default setup created by the inno installer. I did not know that I needed inno until my first pass ant run failed.

I still have a problem with resolving the Application.e4xmi file, but I think that has to do with renaming the application file and nothing to do with e(fx)clipse.
Previous Topic:Contributing Nodes from external plugins. Extension Points vs. Application Model
Next Topic:How does one get setScale and setFitToHeight to work together in JavaFX/e(fx)clipse?
Goto Forum:
  


Current Time: Sun Jan 26 13:25:21 GMT 2025

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

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

Back to the top