marco giudici Messages: 54 Registered: February 2013
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?
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.
marco giudici Messages: 54 Registered: February 2013
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?
marco giudici Messages: 54 Registered: February 2013
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),
but on this machine when run my application give me the following error
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?
marco giudici Messages: 54 Registered: February 2013
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
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.
marco giudici Messages: 54 Registered: February 2013
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:
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?