Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » Import existing jar file(Nebula widget)
icon5.gif  Import existing jar file [message #903885] Mon, 27 August 2012 02:37 Go to next message
arek a is currently offline arek a
Messages: 6
Registered: August 2012
Junior Member
Hi,
im tring to import to my project nebula calendar combo.
I have a e4 app.
1)I tried import a calendarCombo component to my app 'no class found'
2)Adding existing jar file to Referenced Libraries 'no class found'
3)i create a plugin from existing jar file and add dependencies to my e4 project
and i got new error and couldn't run my app
"java.lang.RuntimeException: No application id has been found"

When i try to import to 'normal' java project this component works fine.

pls help ! Smile
Re: Import existing jar file [message #903891 is a reply to message #903885] Mon, 27 August 2012 03:45 Go to previous messageGo to next message
Alberto Amaro is currently offline Alberto Amaro
Messages: 7
Registered: August 2012
Junior Member
Hi.
I'm new in E4 and I've found the same problem when I've tried to add the JDom2 library to my project, I get the "NoClassDefFoundError" message related with JDom classes during the runtime process, but the compilation process is ok.

I've verified the usual solutions: the .classpath file, the Configure Build Path options, etc... With all of them I've never had problems in other classical Eclipse Projects, but I don't know what's wrong in this case.

Any help will be appreciated

Alberto
Re: Import existing jar file [message #903901 is a reply to message #903891] Mon, 27 August 2012 04:09 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas Schindl
Messages: 5261
Registered: July 2009
Senior Member
This is not an e4 problem how to deal with external libraries! You NEVER
EVER adjust the Build-Path of PDE controlled packages, but need to
adjust your MANIFEST.MF.

Tom

Am 27.08.12 09:45, schrieb Alberto Amaro:
> Hi.
> I'm new in E4 and I've found the same problem when I've tried to add the
> JDom2 library to my project, I get the "NoClassDefFoundError" message
> related with JDom classes during the runtime process, but the
> compilation process is ok.
>
> I've verified the usual solutions: the .classpath file, the Configure
> Build Path options, etc... With all of them I've never had problems in
> other classical Eclipse Projects, but I don't know what's wrong in this
> case.
>
> Any help will be appreciated
>
> Alberto
Re: Import existing jar file [message #903909 is a reply to message #903891] Mon, 27 August 2012 04:33 Go to previous messageGo to next message
Thomas Kölling is currently offline Thomas Kölling
Messages: 45
Registered: December 2011
Location: Munich
Member
In that Nebula case, i've added the library from their update site, from there you get osgi compatible bundles. Make sure you have added the nebula libraries to your product (you can manage this with "add required plugins" in the run configuration).
Re: Import existing jar file [message #903952 is a reply to message #903901] Mon, 27 August 2012 08:27 Go to previous message
Alberto Amaro is currently offline Alberto Amaro
Messages: 7
Registered: August 2012
Junior Member
Thomas, thanks for your answer.

I've created a new "Plugin from Existing Jar Archives" and added to it the JAR files (in my case JDom and Xerces libraries). Then I have included this new plugin-dependency in my project.

I think this is the correct solution. At least, it runs correctly.

albert
Previous Topic:Please help, e4 and org.eclipse.help
Next Topic:Zest integration
Goto Forum:
  


Current Time: Fri Aug 01 06:09:37 EDT 2014

Powered by FUDForum. Page generated in 0.01512 seconds