Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-04-2008, 06:15 PM
Member
 
Join Date: Jun 2008
Posts: 8
bizmut is on a distinguished road
java.lang.NoClassDefFoundError
Hi,

I need help about this stupid error "java.lang.NoClassDefFoundError" that keeps annoying me.

Well, I have packed 6 .class files into javasci.jar file and add it to my Eclipse project as externel jar. Now, when I import this file (import javasci." and call one of its functions, Eclipse does not report me any error, but when I run my program/application tomcat throws me an "java.lang.NoClassDefFoundError" error saying that "java.lang.NoClassDefFoundError: javasci/SciString" like it cannot find a diffinition for the called function.

What can be the problem? Anyone?

Thanks!!!

Bye, Igor S
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 06-14-2008, 03:14 AM
danielstoner's Avatar
Senior Member
 
Join Date: Apr 2008
Location: Canada
Posts: 191
danielstoner is on a distinguished road
Tomcat needs to know where your classes are at runtime. Did you deploy the application?
__________________
Daniel @ [
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
]
Language is froth on the surface of thought
Bookmark Post in Technorati
Reply With Quote
  #3 (permalink)  
Old 06-14-2008, 02:30 PM
Member
 
Join Date: Jun 2008
Posts: 8
bizmut is on a distinguished road
Yes I did, but still... :-(

Any idea what might be the problem? I imported javasci.jar as an external jar into Java Build Path, but I do not know where I must import or put javasci.dll file. Is this file nessecery? Maybe you're right, maybe something is wrong with tomcat itself. When you said that I need to "deploy" application, what did you mean?

Thanks for reply!
Bookmark Post in Technorati
Reply With Quote
  #4 (permalink)  
Old 06-15-2008, 01:54 AM
Member
 
Join Date: Jun 2008
Posts: 8
bizmut is on a distinguished road
I've done it! Yeah!!!!!! Yes, problem was in deploying, so you helped a lot. Thanks... Igor
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
java.lang.NoClassDefFoundError: com.ibm.ws.orb.GlobalORBFactory hawkeye Enterprise JavaBeans 1 06-16-2008 11:56 AM
java.lang.NoClassDefFoundError J_a_y New To Java 2 08-07-2007 12:51 PM
java.lang.NoClassDefFoundError fred Advanced Java 3 08-01-2007 06:00 PM
java.lang.NoClassDefFoundError Exception when I invoke to a class outside projectEJB Daniel Enterprise JavaBeans 1 07-06-2007 07:08 AM
java.lang.NoClassDefFoundError: javax/activation/DataSource bbq Advanced Java 1 07-05-2007 05:26 AM


All times are GMT +3. The time now is 02:32 AM.


VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org