|Re: Running and exporting Tutorial 3 (Java8) problems [message #1090210 is a reply to message #1090166]
||Mon, 19 August 2013 21:40
| Thomas Schindl
Registered: July 2009
On 19.08.13 22:02, Yarden Livnat wrote:|
>> just in case you are don't know you can always launch the generated app
>> on the command line using
>> java -jar plugins/org.eclipse.equinox.launcher_$VERSION.jar
> This one does works on both build 97 and build 102.
>> On 19.08.13 20:11, Tom Schindl wrote:
>> > On 19.08.13 19:47, Yarden Livnat wrote:
>> >> As a side question, Is it possible to tell
>> >> Eclipse to use the config file you generated at the start or add the
>> >> special flags to it's config?
>> > > Not sure what you mean Equinox will always use the config.ini
>> > no matter how you launch, unless you tell it otherwise.
> You've indicated before that I can not use the Run/Debug (and in
> particualr from the .product.product panel) and that I have to use the
> popup menu on .product.product.lauanch . I was wondering if this can be
> changed. I also noticed that adding -clearPersistedState in the
> .product.product launching panel was not reflected in the
> .procduct.product.launch file and I had to manually add it to that file.
Unfortunately you can not IIRC - the reason is that PDE is simply too
smart - or it thinks it is smart and e.g. sets -XstartOnFirstThread on
OS-X which is simply wrong when the application is a Swing or JavaFX one.
I also think the -clearPersisted state should not be put into the
..product because then the application built on your build-server and
distributed to your clients will also have this flag which you probably
don't want, right?
So there's no other possibility to editing the .launch-File. I'm always
checking in the .lauch-Files to our VCS because often for dev-time we
set extra flags and e.g. clearPersistedState is such one. We often also
have Mock-Bundles running while doing UI-Development so that we e.g.
don't have to login, fetch data from an in memory list, ... .
>> >> Using the pom and build I was indeed able to run an application from
>> >> inside Eclipse and export it as an DMG on the mac. However the
>> >> application will not run. if I run it using 'open' in a terminal I
>> >> LSOpenURLsWithRole() failed with error -10810 for the file
>> >> /Applications/CNome.app
>> >> I googled this error code and it seems to only say "unknown error".
>> >> Though several people reported similar issues, I have not found a
>> >> working solution. It seems to be related to running Java on a mac. I'm
>> >> using OSX 10.8.4
>> > > What version of Java? Java8uxxx or Java7uxxx? I'm on OS-X 10.8.4
>> as well
>> > so I should be able to reproduce it.
>> > > Tom
> hmm... I was working with Java8 build 97. However, I've just installed
> build 102 and now I can launch the app with no problems. Magic :)
> Many thanks Tom!
Glad it works.
Powered by FUDForum
. Page generated in 0.03056 seconds