Results 1 to 4 of 4
  1. #1
    bizmut is offline Member
    Join Date
    Jun 2008
    Posts
    8
    Rep Power
    0

    Unhappy 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

  2. #2
    danielstoner's Avatar
    danielstoner is offline Senior Member
    Join Date
    Apr 2008
    Location
    Canada
    Posts
    191
    Rep Power
    13

    Default

    Tomcat needs to know where your classes are at runtime. Did you deploy the application?
    Daniel @ [www.littletutorials.com]
    Language is froth on the surface of thought

  3. #3
    bizmut is offline Member
    Join Date
    Jun 2008
    Posts
    8
    Rep Power
    0

    Default

    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!

  4. #4
    bizmut is offline Member
    Join Date
    Jun 2008
    Posts
    8
    Rep Power
    0

    Default

    I've done it! Yeah!!!!!! Yes, problem was in deploying, so you helped a lot. Thanks... Igor

Similar Threads

  1. Replies: 2
    Last Post: 01-20-2014, 07:45 AM
  2. Replies: 2
    Last Post: 07-21-2012, 01:15 AM
  3. java.lang.NoClassDefFoundError: com.ibm.ws.orb.GlobalORBFactory
    By hawkeye in forum Enterprise JavaBeans (EJB)
    Replies: 1
    Last Post: 06-16-2008, 10:56 AM
  4. java.lang.NoClassDefFoundError
    By J_a_y in forum New To Java
    Replies: 2
    Last Post: 08-07-2007, 11:51 AM
  5. java.lang.NoClassDefFoundError
    By fred in forum Advanced Java
    Replies: 3
    Last Post: 08-01-2007, 05:00 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •