Skip to main content



      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
Eclipse UserFriend
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
Eclipse UserFriend
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
Eclipse UserFriend
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
Eclipse UserFriend
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
Eclipse UserFriend
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: Tue Jul 15 17:08:21 EDT 2025

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

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

Back to the top