Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » Using the same Eclipse application on Linux/Windows/Mac...
Using the same Eclipse application on Linux/Windows/Mac... [message #479453] Tue, 11 August 2009 07:33 Go to next message
Mickael Istria is currently offline Mickael IstriaFriend
Messages: 865
Registered: July 2009
Location: Grenoble, France
Senior Member

[This question is coming from RCP and Platform newsgroup, and as PW suggested, I ask it here right not]

Hello,

I have seen and used several Galileo-based RCP applications, built using DeltaPack, which are packaged with launchers for several platforms (Linux, win, osx), and I can successfully use their application in command line using "java -jar org.eclipse.equinox.launcher_*.jar -application [app]" .
For a RCP build purpose, I would like to have a single Galileo base with DeltaPack that I could use to call org.eclipse.ant.core.antRunner application on any platform. This is the same thing as what I am able to do with my previous RCP examples. However, I always get a NoClassDefFound (org/eclipse/swt/SWTError while loading AbstractUIPlugin) when trying to call this antRunner on any system except Linux. As far as I remember, the same trick was working with Ganymede.

How can I get the expected behaviour of a multi-platform Eclipse to invoke antRunner? I imagine it is related to p2 and/or target platform definition, but I may be totally wrong ;)

Thanks in advance
Mickael


PS: I tried with forcing -os win32 -ws win32 -arch x86, but nothing changed

PPS: the trace under windows clearly shows that the Equinox launcher unsuccessfully tries to activate linux/gtk bundles.
Re: Using the same Eclipse application on Linux/Windows/Mac... [message #479930 is a reply to message #479453] Thu, 13 August 2009 08:05 Go to previous messageGo to next message
Mickael Istria is currently offline Mickael IstriaFriend
Messages: 865
Registered: July 2009
Location: Grenoble, France
Senior Member

I also tried with a fresh (never used p2 on it) linux SDK platform + Delta Pack on Windows, and got the same error when starting with command line... (NoClassDefFoundError org/eclipse/ui/SWTError).

Can anyone give me some clues to get Eclipse launcher able to start on any OS ?


Mickael Istria a écrit :
> [This question is coming from RCP and Platform newsgroup, and as PW
> suggested, I ask it here right not]
>
> Hello,
>
> I have seen and used several Galileo-based RCP applications, built using
> DeltaPack, which are packaged with launchers for several platforms
> (Linux, win, osx), and I can successfully use their application in
> command line using "java -jar org.eclipse.equinox.launcher_*.jar
> -application [app]" .
> For a RCP build purpose, I would like to have a single Galileo base with
> DeltaPack that I could use to call org.eclipse.ant.core.antRunner
> application on any platform. This is the same thing as what I am able to
> do with my previous RCP examples. However, I always get a
> NoClassDefFound (org/eclipse/swt/SWTError while loading
> AbstractUIPlugin) when trying to call this antRunner on any system
> except Linux. As far as I remember, the same trick was working with
> Ganymede.
>
> How can I get the expected behaviour of a multi-platform Eclipse to
> invoke antRunner? I imagine it is related to p2 and/or target platform
> definition, but I may be totally wrong ;)
>
> Thanks in advance
> Mickael
>
> PS: I tried with forcing -os win32 -ws win32 -arch x86, but nothing changed
>
> PPS: the trace under windows clearly shows that the Equinox launcher
> unsuccessfully tries to activate linux/gtk bundles.
Re: Using the same Eclipse application on Linux/Windows/Mac... [message #484348 is a reply to message #479930] Mon, 07 September 2009 07:20 Go to previous message
Mickael Istria is currently offline Mickael IstriaFriend
Messages: 865
Registered: July 2009
Location: Grenoble, France
Senior Member

Hi all,

I could find how to get it working without error on several platforms (win32 & linux).
When starting the application (in this case antRunner), Equinox loads all plugins that are listed in the osgi.bundles property of config.ini. This property is actually set when starting by reading the configuration/org.eclipse.equinox.simpleconfigurator/bundles .info file. However, even with DeltaPack installed in plugins/ or in dropins/, the bundles for other platforms are not added to this list, so that we cannot get the same eclipse working on several platform.
The workaround is, once DeltaPack is installed, to manually add the desired target bundles to the bundles.info.

This is what I added to my bundles.info to get it working on Windows:
# Win32 x86 bundles
org.eclipse.core.filesystem.win32.x86,1.1.0.v20080604-1400,p lugins/org.eclipse.core.filesystem.windows.x86_1.1.0.v200806 04-1400.jar,4,false
org.eclipse.core.net.win32.x86,1.0.0.I20080909,plugins/org.e clipse.core.net.win32.x86_1.0.0.I20080909.jar,4,false
org.eclipse.equinox.launcher.win32.win32.x86,1.0.200.v200905 19,plugins/org.eclipse.equinox.launcher.win32.x86_1.0.200.v2 00905&ç/,4,false
org.eclipse.swt.win32.win32.x86,3.5.0.v3550b,plugins/org.ecl ipse.swt.win32.win32.x86_3.5.0.v3550b.jar,4,false
org.eclipse.update.core.win32,3.2.100.v20080107,plugins/org. eclipse.update.core.win32_3.2.100.v20080107.jar,4,false
# TODO add here macosx and other build platforms bundles

Wouldn't it be better to find a way to install the DeltaPack that would also add its included bundles into the bundles.info ? Then installing DeltaPack would make the Eclipse platform really multi-platform, and then builds could be run on any platform with the same Eclipse base?

Regards,
Mickael

Mickael Istria a écrit :
> I also tried with a fresh (never used p2 on it) linux SDK platform +
> Delta Pack on Windows, and got the same error when starting with command
> line... (NoClassDefFoundError org/eclipse/ui/SWTError).
>
> Can anyone give me some clues to get Eclipse launcher able to start on
> any OS ?
>
>
> Mickael Istria a écrit :
>> [This question is coming from RCP and Platform newsgroup, and as PW
>> suggested, I ask it here right not]
>>
>> Hello,
>>
>> I have seen and used several Galileo-based RCP applications, built
>> using DeltaPack, which are packaged with launchers for several
>> platforms (Linux, win, osx), and I can successfully use their
>> application in command line using "java -jar
>> org.eclipse.equinox.launcher_*.jar -application [app]" .
>> For a RCP build purpose, I would like to have a single Galileo base
>> with DeltaPack that I could use to call org.eclipse.ant.core.antRunner
>> application on any platform. This is the same thing as what I am able
>> to do with my previous RCP examples. However, I always get a
>> NoClassDefFound (org/eclipse/swt/SWTError while loading
>> AbstractUIPlugin) when trying to call this antRunner on any system
>> except Linux. As far as I remember, the same trick was working with
>> Ganymede.
>>
>> How can I get the expected behaviour of a multi-platform Eclipse to
>> invoke antRunner? I imagine it is related to p2 and/or target platform
>> definition, but I may be totally wrong ;)
>>
>> Thanks in advance
>> Mickael
>>
>> PS: I tried with forcing -os win32 -ws win32 -arch x86, but nothing
>> changed
>>
>> PPS: the trace under windows clearly shows that the Equinox launcher
>> unsuccessfully tries to activate linux/gtk bundles.
Previous Topic:Adding product to Update Site with Ganymede
Next Topic:Webinar: Equinox p2 and RCP
Goto Forum:
  


Current Time: Thu Mar 28 10:23:38 GMT 2024

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

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

Back to the top