Skip to main content



      Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Error launching an exported product
Error launching an exported product [message #460226] Mon, 18 December 2006 06:00 Go to next message
Eclipse UserFriend
Originally posted by: tom.witrack.net

Hi there,
I'm experiencing a problem when exporting a RCP product through eclipse.
Could you take a look and tell me where I'm wrong please.

First, here is the arborescence of my project :
http://img83.imageshack.us/my.php?image=eclipse1yy6.png

For my project I've some libraries (external jars) , I need to select
them in the "Properties" of the projet in the section "Libraries" using
the "Add external Jar" button.
With that configuration, I could launch the project and all works fine.

To export my project, I saw that the export wizard can't find my
libraries (when they are selected in "properties" of the project). So, I
delete them from here and I add the libraries in the "plugin.xml / Build
/ Extra classpath entries" section.
At this time, I can't launch the project anymore but the export "works fine"


Then, this is what I'm doing to export my product :

Open the plug-in editor and switch to the Build page and add all the
files need.
Then I create a new Product file.
In the Overview tab I select the "Product ID", the "Application" and set
a name to my product
In the configuration and add my first element "net.witrack.manager" and
the click on "Add required plugins" to add others RCP plugin needed.

At this point, all the configuration is done.
But the "Launch the product" don't work, cause of the required libraries
missing in the "properties" of the project.
So lets try the export...
I export on a directory... no errors
In my directory I've some files, I launch the application and got this
error in the log file :

------------------------------
!SESSION 2006-12-18 11:42:17.546
-----------------------------------------------
eclipse.buildId=unknown
java.version=1.5.0_06
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.core.runtime 2006-12-18 11:42:18.484
!MESSAGE Product net.witrack.manager.managerID42 could not be found.

!ENTRY org.eclipse.osgi 2006-12-18 11:42:18.484
!MESSAGE Application error
!STACK 1
java.lang.RuntimeException: No application id has been found.
at
org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.java:204)
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)
------------------------------


Please enlighten me.
Thanks.
Re: Error launching an exported product [message #460240 is a reply to message #460226] Mon, 18 December 2006 09:24 Go to previous messageGo to next message
Eclipse UserFriend
Tom - Witrack wrote:
> With that configuration, I could launch the project and all works fine.
>
> To export my project, I saw that the export wizard can't find my
> libraries (when they are selected in "properties" of the project). So, I
> delete them from here and I add the libraries in the "plugin.xml / Build
> / Extra classpath entries" section.
> At this time, I can't launch the project anymore but the export "works
> fine"

This is the correct direction, but until you can launch it from within
eclipse, there's a good chance it won't work properly.

Check out
http://wiki.eclipse.org/index.php/Plug-in_Development_Enviro nment for a
list of steps.

You can probably fix this using the project context menu>PDE
Tools>Update Classpath

Later,
PW
Re: Error launching an exported product [message #460255 is a reply to message #460240] Mon, 18 December 2006 10:30 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: tom.witrack.net

Paul Webster a écrit :
> Tom - Witrack wrote:
>> With that configuration, I could launch the project and all works fine.
>>
>> To export my project, I saw that the export wizard can't find my
>> libraries (when they are selected in "properties" of the project). So,
>> I delete them from here and I add the libraries in the "plugin.xml /
>> Build / Extra classpath entries" section.
>> At this time, I can't launch the project anymore but the export "works
>> fine"
>
> This is the correct direction, but until you can launch it from within
> eclipse, there's a good chance it won't work properly.
>
> Check out
> http://wiki.eclipse.org/index.php/Plug-in_Development_Enviro nment for a
> list of steps.
>
> You can probably fix this using the project context menu>PDE
> Tools>Update Classpath
>
> Later,
> PW

thanks for the fast reply
i've done all of that and now the launch and export works good without
the libraries trick in the config files

but I've the same error as before
"java.lang.RuntimeException: No application id has been found."

thanks for helping
Re: Error launching an exported product [message #460257 is a reply to message #460255] Mon, 18 December 2006 10:36 Go to previous messageGo to next message
Eclipse UserFriend
Tom - Witrack wrote:
>
> thanks for the fast reply
> i've done all of that and now the launch and export works good without
> the libraries trick in the config files
>
> but I've the same error as before
> "java.lang.RuntimeException: No application id has been found."
>
> thanks for helping


Is your application in the same plugin as your product? Does the
deployed plugin jar that contains your application have both the
plugin.xml and your activator class in it?

Later,
PW
Re: Error launching an exported product [message #460263 is a reply to message #460257] Mon, 18 December 2006 11:13 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: tom.witrack.net

Paul Webster a écrit :
> Tom - Witrack wrote:
>>
>> thanks for the fast reply
>> i've done all of that and now the launch and export works good without
>> the libraries trick in the config files
>>
>> but I've the same error as before
>> "java.lang.RuntimeException: No application id has been found."
>>
>> thanks for helping
>
>
> Is your application in the same plugin as your product? Does the
> deployed plugin jar that contains your application have both the
> plugin.xml and your activator class in it?
>
> Later,
> PW
I forgot to tell you it's a standalone application
All my external Jars are used in this application and for the moment i
don't use any plugin (except platform plugins)
in my jar file "net.witrack.manager2_1.0.0.jar" (created in the "plugin"
path during the export wizard), there is no "plugin.xml" file
Re: Error launching an exported product [message #460270 is a reply to message #460263] Mon, 18 December 2006 13:27 Go to previous message
Eclipse UserFriend
Originally posted by: tom.witrack.net

Tom - Witrack a écrit :
> Paul Webster a écrit :
>> Tom - Witrack wrote:
>>>
>>> thanks for the fast reply
>>> i've done all of that and now the launch and export works good
>>> without the libraries trick in the config files
>>>
>>> but I've the same error as before
>>> "java.lang.RuntimeException: No application id has been found."
>>>
>>> thanks for helping
>>
>>
>> Is your application in the same plugin as your product? Does the
>> deployed plugin jar that contains your application have both the
>> plugin.xml and your activator class in it?
>>
>> Later,
>> PW
> I forgot to tell you it's a standalone application
> All my external Jars are used in this application and for the moment i
> don't use any plugin (except platform plugins)
> in my jar file "net.witrack.manager2_1.0.0.jar" (created in the "plugin"
> path during the export wizard), there is no "plugin.xml" file
i've checked the "plugin.xml" file in the "build" tab and not it works

thank you very much for helping me!
Previous Topic:Deploying JNLP: my app has plugins that needs to be unpacked
Next Topic:Universal intro wierdness
Goto Forum:
  


Current Time: Tue Apr 15 05:42:35 EDT 2025

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

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

Back to the top