| How to export a standalone application [message #1712455] |
Sun, 25 October 2015 03:41  |
Eclipse User |
|
|
|
For a private scout project, I created a standalone application by following the steps explained in the following post: https://wiki.eclipse.org/Scout/HowTo/3.9/Create_a_Standalone_Client_with_DB_Access
This works nicely. Now that development is more or less complete, I would like to export my project into a single executable that I can launch from outside eclipse. I have never used the "Export Scout Project" feature before (in our projects at work, artefacts are created using a maven/tycho build) and I cannot get it to work. I do not know if the reason for it not working is due to the standalone feature or if there some other issue.
I am using Eclipse Mars and Scout Mars (have not yet upgraded to SR1). I have both a development and production product, both work when started from within eclipse.

When I start the export process, I am guided through these steps:


When I now click on the browse button, I get a popup showing my SWT project, but it does not list any of the two products that are present in that project:

Is there an additional step that I need to take to make those products visible?
Is this the right approach to export my standalone application? What I want is an exe containing both server and client code as well as jetty to run the server when the client is launched. Can I use the same plugins in the production product as I am using in the development product (at the moment they are the same) or do I need to add others (or remove some)?
Any hints are welcome.
Attachment: Products.png
(Size: 12.49KB, Downloaded 847 times)
Attachment: Step1.png
(Size: 28.60KB, Downloaded 903 times)
Attachment: Step2.png
(Size: 22.82KB, Downloaded 853 times)
Attachment: Step3.png
(Size: 22.74KB, Downloaded 832 times)
|
|
|
|
|
|
|
|
|
| Re: How to export a standalone application [message #1713589 is a reply to message #1713442] |
Thu, 05 November 2015 05:58  |
Eclipse User |
|
|
|
Jannik Malken wrote on Wed, 04 November 2015 09:53Ok, that was exactly what I had done yesterday already. The difference was that I did it with the explorer outside of Eclipse. It was a simple refresh problem, so Eclipse didn't recognize the changes.
If you ask me, this belongs to the wrong default settings in Eclipse. Check this:
http://stackoverflow.com/questions/6626703/eclipse-source-out-of-sync-with-file-system
Jannik Malken wrote on Wed, 04 November 2015 09:53Just had another weird problem. It's is sometimes hard to persuade Eclipse to stay in sync. The config.ini were all correctly set in the products 'Configuration' tab and I was able to start them via the products 'Overview' tab. However, by starting with the Scout Object Explorer it always chose the wrong config.ini. After more than one time clicking "Synchronize this configuration with the product's defining plug-in" everything worked correctly.
Yes, this is a problem of Eclipse PDE...
(and an other reason why we are moving away from OSGi)
I work exactly like you.
|
|
|
Powered by
FUDForum. Page generated in 0.04569 seconds