Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Library Help(trouble with jars in a library)
Library Help [message #669299] Mon, 09 May 2011 19:47 Go to next message
chris magrane is currently offline chris magrane
Messages: 1
Registered: May 2011
Junior Member
Hi,

I'm currently developing a project using an extrenal library made up of jars. I have try several methods to add the jars to the project library and they all show up in the libraries folder for the project, but when I view a certain class inside a jar tells me that that source is not contained in the jar. And since the source is not found when I attempt to run the application I gives me a no class def found error. I'm wondering if there is a specific way to import libraries that will get me cast this issue.

Summary
-Source not found, no class def found error because of it
-is there a certain way to import libraries

Any help will be really appreciated.
Re: Library Help [message #669423 is a reply to message #669299] Tue, 10 May 2011 09:42 Go to previous messageGo to next message
frank b is currently offline frank b
Messages: 39
Registered: July 2009
Member
Hi Chris,

the fact that you do not provide source is not linked to "no class def
found exception". If you have this exception, it is probably because
you have not properly add the jar to yout class path or because the lib
you added has dependencies (you need to add other libraries). Check
dependencies.

You can add lib by right clicking the jar -> Build Path -> add to buil
path. You can manage with source by right clicking project -> build Path
-> Configure build path, then selected libraries Tab and configure
source attachement path of your libraries

hope this help,
frank
> Hi,
>
> I'm currently developing a project using an extrenal library
> made up of jars. I have try several methods to add the jars
> to the project library and they all show up in the libraries
> folder for the project, but when I view a certain class
> inside a jar tells me that that source is not contained in
> the jar. And since the source is not found when I attempt
> to run the application I gives me a no class def found
> error. I'm wondering if there is a specific way to import
> libraries that will get me cast this issue.
>
> Summary
> -Source not found, no class def found error because of it
> -is there a certain way to import libraries
>
> Any help will be really appreciated.
Re: Library Help [message #669467 is a reply to message #669299] Tue, 10 May 2011 12:47 Go to previous message
Russell Bateman is currently offline Russell Bateman
Messages: 3225
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

On 2011.05.09 13:47, chris magrane wrote:
> Hi,
>
> I'm currently developing a project using an extrenal library
> made up of jars. I have try several methods to add the jars
> to the project library and they all show up in the libraries
> folder for the project, but when I view a certain class
> inside a jar tells me that that source is not contained in
> the jar. And since the source is not found when I attempt
> to run the application I gives me a no class def found
> error. I'm wondering if there is a specific way to import
> libraries that will get me cast this issue.
>
> Summary
> -Source not found, no class def found error because of it
> -is there a certain way to import libraries
>
> Any help will be really appreciated.

Some of this might interest you:
http://www.javahotchocolate.com/tutorials/jars.html
Previous Topic:Visual Editor for Eclipse Java EE IDE for Web Developers
Next Topic:Creating a coolbar using a view
Goto Forum:
  


Current Time: Sat Oct 25 05:44:19 GMT 2014

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

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