Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Ok, I give up: Using 3rd party jars
Ok, I give up: Using 3rd party jars [message #436670] Wed, 14 September 2005 12:08 Go to next message
Eclipse UserFriend
Originally posted by: kevin.cs.washington.edu

I'm having problems exporting my RCP application, despite following some
tips I found in the archives.

Setup:
1) Used Mail-App RCP template. The project name is "force".
2) Added some .java files and added some external .jar files (imported
into /lib, added to classpath on overview->runtime tab, correct
libraries exposed).
3) I notice there is no .product file.
4) I add a .product file based on Eclipse Application (1) (It works and
exports fine).

5) I run the exported eclipse.exe.
6) My custom splash screen pops up.
7) I get a prompt that tells me to look inside another file for an error.
8) I find this error in a .log file:

!SESSION 2005-09-14 06:51:39.406
-----------------------------------------------
eclipse.buildId=unknown
java.version=1.5.0_04
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
Command-line arguments: -os win32 -ws win32 -arch x86

!ENTRY org.eclipse.osgi 2005-09-14 06:51:40.609
!MESSAGE An error occurred while automatically activating bundle force (1).
!STACK 0
org.osgi.framework.BundleException: The activator force.ForcePlugin for
bundle force is invalid
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.load BundleActivator(AbstractBundle.java:151)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tart(BundleContextImpl.java:965)
at
org.eclipse.osgi.framework.internal.core.BundleHost.startWor ker(BundleHost.java:321)
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.star t(AbstractBundle.java:266)
at
org.eclipse.core.runtime.adaptor.EclipseClassLoader.findLoca lClass(EclipseClassLoader.java:116)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findLo calClass(BundleLoader.java:337)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:389)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:350)
at
org.eclipse.osgi.framework.adaptor.core.AbstractClassLoader. loadClass(AbstractClassLoader.java:78)
at java.lang.ClassLoader.loadClass(Unknown Source)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.loadCl ass(BundleLoader.java:275)
at
org.eclipse.osgi.framework.internal.core.BundleHost.loadClas s(BundleHost.java:227)
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.load Class(AbstractBundle.java:1259)
at
org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExtension(ConfigurationElement.java:152)
at
org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExtension(ConfigurationElement.java:142)
at
org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExtension(ConfigurationElement.java:129)
at
org.eclipse.core.internal.registry.ConfigurationElementHandl e.createExecutableExtension(ConfigurationElementHandle.java: 48)
at
org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.java:222)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:376)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:163)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.core.launcher.Main.invokeFramework(Main.java:334 )
at org.eclipse.core.launcher.Main.basicRun(Main.java:278)
at org.eclipse.core.launcher.Main.run(Main.java:973)
at org.eclipse.core.launcher.Main.main(Main.java:948)
Caused by: java.lang.ClassNotFoundException: force.ForcePlugin
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:403)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:350)
at
org.eclipse.osgi.framework.adaptor.core.AbstractClassLoader. loadClass(AbstractClassLoader.java:78)
at java.lang.ClassLoader.loadClass(Unknown Source)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.loadCl ass(BundleLoader.java:275)
at
org.eclipse.osgi.framework.internal.core.BundleHost.loadClas s(BundleHost.java:227)
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.load BundleActivator(AbstractBundle.java:144)
... 27 more
Root exception:
java.lang.ClassNotFoundException: force.ForcePlugin
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:403)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:350)
at
org.eclipse.osgi.framework.adaptor.core.AbstractClassLoader. loadClass(AbstractClassLoader.java:78)
at java.lang.ClassLoader.loadClass(Unknown Source)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.loadCl ass(BundleLoader.java:275)
at
org.eclipse.osgi.framework.internal.core.BundleHost.loadClas s(BundleHost.java:227)
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.load BundleActivator(AbstractBundle.java:144)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tart(BundleContextImpl.java:965)
at
org.eclipse.osgi.framework.internal.core.BundleHost.startWor ker(BundleHost.java:321)
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.star t(AbstractBundle.java:266)
at
org.eclipse.core.runtime.adaptor.EclipseClassLoader.findLoca lClass(EclipseClassLoader.java:116)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findLo calClass(BundleLoader.java:337)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:389)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:350)
at
org.eclipse.osgi.framework.adaptor.core.AbstractClassLoader. loadClass(AbstractClassLoader.java:78)
at java.lang.ClassLoader.loadClass(Unknown Source)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.loadCl ass(BundleLoader.java:275)
at
org.eclipse.osgi.framework.internal.core.BundleHost.loadClas s(BundleHost.java:227)
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.load Class(AbstractBundle.java:1259)
at
org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExtension(ConfigurationElement.java:152)
at
org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExtension(ConfigurationElement.java:142)
at
org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExtension(ConfigurationElement.java:129)
at
org.eclipse.core.internal.registry.ConfigurationElementHandl e.createExecutableExtension(ConfigurationElementHandle.java: 48)
at
org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.java:222)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:376)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:163)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.core.launcher.Main.invokeFramework(Main.java:334 )
at org.eclipse.core.launcher.Main.basicRun(Main.java:278)
at org.eclipse.core.launcher.Main.run(Main.java:973)
at org.eclipse.core.launcher.Main.main(Main.java:948)

!ENTRY org.eclipse.osgi 2005-09-14 06:51:40.625
!MESSAGE Application error
!STACK 1
org.eclipse.core.runtime.CoreException[1]:
java.lang.ClassNotFoundException: force.Application
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:403)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:350)
at
org.eclipse.osgi.framework.adaptor.core.AbstractClassLoader. loadClass(AbstractClassLoader.java:78)
at java.lang.ClassLoader.loadClass(Unknown Source)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.loadCl ass(BundleLoader.java:275)
at
org.eclipse.osgi.framework.internal.core.BundleHost.loadClas s(BundleHost.java:227)
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.load Class(AbstractBundle.java:1259)
at
org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExtension(ConfigurationElement.java:152)
at
org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExtension(ConfigurationElement.java:142)
at
org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExtension(ConfigurationElement.java:129)
at
org.eclipse.core.internal.registry.ConfigurationElementHandl e.createExecutableExtension(ConfigurationElementHandle.java: 48)
at
org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.java:222)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:376)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:163)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.core.launcher.Main.invokeFramework(Main.java:334 )
at org.eclipse.core.launcher.Main.basicRun(Main.java:278)
at org.eclipse.core.launcher.Main.run(Main.java:973)
at org.eclipse.core.launcher.Main.main(Main.java:948)
Re: Ok, I give up: Using 3rd party jars [message #436677 is a reply to message #436670] Wed, 14 September 2005 17:58 Go to previous message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

Kevin Chiu wrote:
> I'm having problems exporting my RCP application, despite following some
> tips I found in the archives.
>
> Setup:
> 1) Used Mail-App RCP template. The project name is "force".
> 2) Added some .java files and added some external .jar files (imported
> into /lib, added to classpath on overview->runtime tab, correct
> libraries exposed).
> 3) I notice there is no .product file.
> 4) I add a .product file based on Eclipse Application (1) (It works and
> exports fine).
>
> 5) I run the exported eclipse.exe.
> 6) My custom splash screen pops up.
> 7) I get a prompt that tells me to look inside another file for an error.
> 8) I find this error in a .log file:
>


For some reason, the plugin exported with 3rd party jars has the jars
(assuming you've added them to the Build>binary build section), but
since it's deployed as a directory plugin the class files aren't there.

You have 2 choices:

1. Create a separate plugin with your third party jars by using the
create new plugin from jars wizard ... then depend on it.

2. If you create a new plugin with the 3rd party libraries as jars, or
add them as jars to your plugin, a workaround I found was

2a. go to the binary build section and include the folder bin
2b. add bin to the manifest classpath

then it works.

Later,
PW


Re: Ok, I give up: Using 3rd party jars [message #436680 is a reply to message #436677] Wed, 14 September 2005 17:34 Go to previous message
Eclipse UserFriend
Originally posted by: kevin.cs.washington.edu

Paul Webster wrote:
> Kevin Chiu wrote:
>
>> I'm having problems exporting my RCP application, despite following
>> some tips I found in the archives.
>>
>> Setup:
>> 1) Used Mail-App RCP template. The project name is "force".
>> 2) Added some .java files and added some external .jar files (imported
>> into /lib, added to classpath on overview->runtime tab, correct
>> libraries exposed).
>> 3) I notice there is no .product file.
>> 4) I add a .product file based on Eclipse Application (1) (It works
>> and exports fine).
>>
>> 5) I run the exported eclipse.exe.
>> 6) My custom splash screen pops up.
>> 7) I get a prompt that tells me to look inside another file for an error.
>> 8) I find this error in a .log file:
>>
>
>
> For some reason, the plugin exported with 3rd party jars has the jars
> (assuming you've added them to the Build>binary build section), but
> since it's deployed as a directory plugin the class files aren't there.
>
> You have 2 choices:
>
> 1. Create a separate plugin with your third party jars by using the
> create new plugin from jars wizard ... then depend on it.
>
> 2. If you create a new plugin with the 3rd party libraries as jars, or
> add them as jars to your plugin, a workaround I found was
>
> 2a. go to the binary build section and include the folder bin
> 2b. add bin to the manifest classpath
>
> then it works.
>
> Later,
> PW

I did number 1 and it worked. Thanks!
Previous Topic:How do i programmaticaly inserts the command buttons on the menu ?
Next Topic:Perspective tab
Goto Forum:
  


Current Time: Thu Dec 05 17:18:55 GMT 2024

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

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

Back to the top