Jump to content

Exception

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
8 replies to this topic

#1
tomitzel

tomitzel

    Learning Programmer

  • Members
  • PipPipPip
  • 44 posts
Hi,
I have the following exception:
Exception in thread "main" java.lang.NoClassDefFoundError: javax/mail/MessagingException

The mail jar is included in the project, I've also tried the project on another computer and it works!

Can somebody tell me what other reason might be, the code is good since it works on another computer.
I have installed the latest versions of jre & jdk, identicall as the other computer.
Thanks.

#2
Skel

Skel

    Learning Programmer

  • Members
  • PipPipPip
  • 33 posts
Java: Exception in thread main java.lang.NoClassDefFoundError - Tech-Recipes.com

#3
tomitzel

tomitzel

    Learning Programmer

  • Members
  • PipPipPip
  • 44 posts
pushd app\WEB-INF
java -cp "classes/;lib/*" net.sf.Minimal
popd

this is how i start the program. in the lib folder there is the mail.jar
I'm using Eclipse Europe Fall

#4
tomitzel

tomitzel

    Learning Programmer

  • Members
  • PipPipPip
  • 44 posts
As you can see in the other post I've include the classpath ( -cp ).
I don't think thats the problem, since the same project runs on another computer, with the exact sintax.

#5
morefood2001

morefood2001

    Speaks fluent binary

  • Members
  • PipPipPipPipPipPipPipPip
  • 1,720 posts
Without the code in front of me (or a really simplified version) I'm not entirely sure what the problem is. I do that eclipse requires you to import libraries from a menu (I forget where because its been a long time). Also, I'd try when you export in eclipse to a jar file, make sure you are exporting all the source code and libraries. Also click next twice and set the main class. Hopefully one of the above tips will help you figure out your issue.

#6
tomitzel

tomitzel

    Learning Programmer

  • Members
  • PipPipPip
  • 44 posts
I'm working with AXIS2 and the error comes from a class that I don't have acces to the source code ...
The project I'm running from the cmd console, not from Eclipse.
I'm thinking to reinstall my OS, since on other computer it works, just that its my office computer and it will be alot of work to reinstall everything

#7
tomitzel

tomitzel

    Learning Programmer

  • Members
  • PipPipPip
  • 44 posts
I don't understand what u mean Leska ... :confused:

#8
tomitzel

tomitzel

    Learning Programmer

  • Members
  • PipPipPip
  • 44 posts
I'm using the latest version mail-1.4.1.jar directly

#9
tomitzel

tomitzel

    Learning Programmer

  • Members
  • PipPipPip
  • 44 posts
I've reinstalled everything and it works now, lol
Thanks everybody for the support!