[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.technology.equinox] Re: Using the same Eclipse application on Linux/Windows/Mac...
|
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,plugins/org.eclipse.core.filesystem.windows.x86_1.1.0.v20080604-1400.jar,4,false
org.eclipse.core.net.win32.x86,1.0.0.I20080909,plugins/org.eclipse.core.net.win32.x86_1.0.0.I20080909.jar,4,false
org.eclipse.equinox.launcher.win32.win32.x86,1.0.200.v20090519,plugins/org.eclipse.equinox.launcher.win32.x86_1.0.200.v200905&ç/,4,false
org.eclipse.swt.win32.win32.x86,3.5.0.v3550b,plugins/org.eclipse.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.