[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform.rcp] Re: delta pack exports broken on linux + mac

You can only specify vms by location, the launcher in general has no way of identifying the vendor for a given vm before starting it.
http://wiki.eclipse.org/Equinox_Launcher#Finding_a_VM.2C_Using_JNI_Invocation_or_Executing_Java


-Andrew
Brian Chase wrote:
I have the solution to the Linux error, it's the GNU libcj causing the error and everything works fine on Sun's jvm. Now the problem is how does one address this issue on the end user's workstations in a friendly manner? The error message is not straightforward and a user may give up and delete the RCP app.

Is there any way in the launch settings to force using a specific JVM vendor?

Brian


Brian Chase wrote:
Ok I understand now, the swt fragments were missing from the product configuration tab. This solved the problem on the Mac export however the Linux export still has the same error.

Brian

Brian Chase wrote:
Andrew,
I am not sure if those fragemts are there. In my linux exported app there is org.eclipse.swt_3.3.1.v3346.jar In my windows export app there is an additional jar, org.eclipse.swt.win32.win32.x86_3.3.2.v3347a.jar and I suppose this would be the swt fragment? Are these part of the delta pack and if not how do I add them and could I be missing anything else important?


Thanks
Brian


"Andrew Niefer" <aniefer@xxxxxxxxxx> wrote in message news:fj446l$md4$2@xxxxxxxxxxxxxxxxxxxx
Are the org.eclipse.swt.carbon.macosx and org.eclipse.swt.gtk.linux.x86 fragments included in your product on those repective platforms?

-Andrew

Brian Chase wrote:
Hello,
I am using Eclipse 3.3.1 with the delta pack 3.3.1 on a win32 development box. I am having problems running both the linux and mac exports of my RCP application however the win32 export works just fine. Both the linux and mac application's error logs complain about missing classes however the .jar files are available in the plugins directory.


For example on linux the error log contains numerous class not found exceptions. I have found all of these classes in the plugins/org.eclipse.equinox.app_1.0.1.R33xxx.jar For some reason the RCP application is not finding this jar in the classpath? I am using the default config.ini file

!MESSAGE An error occurred while automatically activating bundle org.eclipse.equinox.app (21).
!STACK 0
org.osgi.framework.BundleException: Exception in org.eclipse.equinox.internal.app.Activator.start() of bundle org.eclipse.equinox.app.
...
Caused by: java.lang.NoClassDefFoundError: org.eclipse.equinox.internal.app.AppPersistence
at java.lang.Class.initializeClass(libgcj.so.70)
at org.eclipse.equinox.internal.app.Activator.start(Activator.java:51)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl$2.run(BundleContextImpl.java:999)


at java.security.AccessController.doPrivileged(libgcj.so.70)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:993)


...29 more
Caused by: java.lang.ClassNotFoundException: org.eclipse.equinox.internal.app.EclipseScheduledApplication
at org.eclipse.osgi.framework.internal.core.BundleLoader.findClassInternal(BundleLoader.java:434)


at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:369)

at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:357)

at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:83)

at java.lang.ClassLoader.loadClass(libgcj.so.70)
at java.lang.Class.forName(libgcj.so.70)
at java.lang.Class.initializeClass(libgcj.so.70)
...33 more
Root exception:
java.lang.NoClassDefFoundError: org.eclipse.equinox.internal.app.AppPersistence



On mac I am getting a different error but the same issue of no class defined:


!MESSAGE An error occurred while automatically activating bundle org.eclipse.ui.workbench (40).
!STACK 0
org.osgi.framework.BundleException: The activator org.eclipse.ui.internal.WorkbenchPlugin for bundle org.eclipse.ui.workbench is invalid
...
Caused by: java.lang.NoClassDefFoundError: org/eclipse/swt/SWTError
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Class.java:2328)
at java.lang.Class.getConstructor0(Class.java:2640)
at java.lang.Class.newInstance0(Class.java:321)
at java.lang.Class.newInstance(Class.java:303)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadBundleActivator(AbstractBundle.java:136)


        ... 64 more
Root exception:
java.lang.NoClassDefFoundError: org/eclipse/swt/SWTError


Am I missing a step in the export process to make this work?
Thanks in advance
Brian