Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » scout » Create a productive version with a runnable SWT-App
Create a productive version with a runnable SWT-App [message #1090657] Tue, 20 August 2013 13:07 Go to next message
marco giudici is currently offline marco giudiciFriend
Messages: 152
Registered: February 2013
Location: Italy
Senior Member
Hi all,
is it possible create a productive version with SWT-App, that contains a JRE, so that it isn't necessary Java on the PC where the SWT-App has to be installed?
And what are the steps to follow?

Thanks in advance for any suggestions and help
Re: Create a productive version with a runnable SWT-App [message #1091342 is a reply to message #1090657] Wed, 21 August 2013 11:25 Go to previous messageGo to next message
Jeremie Bresson is currently offline Jeremie BressonFriend
Messages: 790
Registered: October 2011
Senior Member
Hi,

Yes it is possible. It is like for any RCP application.

See this tutorial from Lars Vogel: Eclipse Products and Deployment

Here how it looks like in my case:
application folder
|
|   {app}.exe
|   {app}.ini
|   
+---configuration
|       config.ini
|       
+---jre1.6.0_35
|   |   
|   \--- ...
|                   
\---plugins
    |   
    \--- ...


If you want to control the JRE that is used, you can add a parameter in the {app}.ini file:
-vm
jre1.6.0_35\bin\client\jvm.dll

Re: Create a productive version with a runnable SWT-App [message #1091366 is a reply to message #1091342] Wed, 21 August 2013 12:02 Go to previous messageGo to next message
marco giudici is currently offline marco giudiciFriend
Messages: 152
Registered: February 2013
Location: Italy
Senior Member
Thank you very much for your suggestion ... Now I study this tutorial
Re: Create a productive version with a runnable SWT-App [message #1091400 is a reply to message #1091366] Wed, 21 August 2013 12:57 Go to previous messageGo to next message
Jeremie Bresson is currently offline Jeremie BressonFriend
Messages: 790
Registered: October 2011
Senior Member
I forgot to mention:
The interesting part for you is section: 2.4. Including the required JRE into the export.

Let me know if it works for you.

Some inputs:
If you export a product from eclipse, it is as simple as a checkbox click in the product file editor.
With a maven + tycho build, we had to do it manually because the flag is ignored.
Re: Create a productive version with a runnable SWT-App [message #1095707 is a reply to message #1091400] Tue, 27 August 2013 12:16 Go to previous messageGo to next message
marco giudici is currently offline marco giudiciFriend
Messages: 152
Registered: February 2013
Location: Italy
Senior Member
Hi all,
I managed following the tutorial to create the SWT application with JRE included.
Now my problem is that I have a machine with Win64 but I have to create an application that is also valid for Win32. I checked the tutorial but I don't think that it shows nothing about.

Someone can suggest to me what are the steps to achieve this?

Thanks in advace for any help and explanation
Re: Create a productive version with a runnable SWT-App [message #1102043 is a reply to message #1095707] Thu, 05 September 2013 09:23 Go to previous messageGo to next message
marco giudici is currently offline marco giudiciFriend
Messages: 152
Registered: February 2013
Location: Italy
Senior Member
Hi all,
I resolved the problem linked with a valid application for Win32, I find the correct Delta-Pack and now I able to export my application.

I make a test with the new export, in which I have included JRE (for this I followed the suggestions in the tutorial)index.php/fa/16111/0/,
but on this machine when run my application give me the following error

index.php/fa/16110/0/

On this machine hasn't installed any version of Java and is Win32.

My finally scope is create an export of my application that can run also if Java isn't installed on the destination machine.

I think I forgot something in some step, but I cannot figure out what.
Anyone has any suggestions to direct me on the right path to solve this problem?
  • Attachment: errore.jpg
    (Size: 26.80KB, Downloaded 143 times)
  • Attachment: launching.jpg
    (Size: 74.32KB, Downloaded 142 times)
Re: Create a productive version with a runnable SWT-App [message #1102064 is a reply to message #1102043] Thu, 05 September 2013 09:57 Go to previous messageGo to next message
Judith Gull is currently offline Judith GullFriend
Messages: 54
Registered: February 2010
Member
Maybe the exported JRE can not be found in the exported application. Can you check that the vm path in {app}.ini points to the correct location?

-vm
jre1.6.0_35\bin\client\jvm.dll
Re: Create a productive version with a runnable SWT-App [message #1102086 is a reply to message #1102064] Thu, 05 September 2013 10:40 Go to previous messageGo to next message
marco giudici is currently offline marco giudiciFriend
Messages: 152
Registered: February 2013
Location: Italy
Senior Member
Hi,
I checked the export and contains only the following three folder:
- Configuration
- P2
- plugins
in addition to files .exe and .ini of my application and the file artifacts.xml

Should also exists the JRE folder, correct or not?

In my [app].ini are present only the following rows
-startup
plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.200.v20120913-144807
-vmargs
-Xms64m
-Xmx512m
-XX:MaxPermSize=256m


It's necessary add the row suggested by Judith, but is it necessary put them in a specific position or not?
Re: Create a productive version with a runnable SWT-App [message #1103431 is a reply to message #1102086] Fri, 06 September 2013 19:41 Go to previous messageGo to next message
Jeremie Bresson is currently offline Jeremie BressonFriend
Messages: 790
Registered: October 2011
Senior Member
marco giudici wrote on Thu, 05 September 2013 12:40

Should also exists the JRE folder, correct or not?


Yes, if you build from Eclipse/PDE you should have the JRE in a folder.


marco giudici wrote on Thu, 05 September 2013 12:40

It's necessary add the row suggested by Judith, but is it necessary put them in a specific position or not?


if your JRE is a "jre/" folder (near to yourapp.exe) it should be found automatically.
Specifing the path to a JRE helps the eclipse launcher to find it.

See: FAQ How do I run Eclipse? The same mechanism apply to your application.



Related topic:
* Bundle JRE along with your Product using Tycho.
* Including a JRE in a Tycho build

(From what I understood you do not use maven and tycho. Anyway it is usefull information).
Re: Create a productive version with a runnable SWT-App [message #1105162 is a reply to message #1103431] Mon, 09 September 2013 12:50 Go to previous message
marco giudici is currently offline marco giudiciFriend
Messages: 152
Registered: February 2013
Location: Italy
Senior Member
Hi Jeremie,
thanks for your suggestions. I start with the first link that you suggest and I find immediately the first problem.
In this FAQ is reported the follow structure of the eclipse folder:
eclipse/
      features/			''the directory containing Eclipse features''
      plugins/			''the directory containing Eclipse plugins''
      eclipse.exe		''platform executable''
      eclipse.ini
      eclipsec.exe              ''(windows only) console executable''
      epl-v10.html		''the EPL license''
       jre/			''the JRE to run Eclipse with''
      notice.html	
      readme	


I check my structure and I discovered that is missing the JRE folder under the root folder "eclipse", for the moment the search of this folder didn't give result on my machine.
I think that this is the source of my problem?
Previous Topic:Scout Context Diagram
Next Topic:RadioButtonGroup with LookupCall
Goto Forum:
  


Current Time: Sun Nov 23 20:14:27 GMT 2014

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

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