Would anyone know how to solve that problem? It looks like when I exported my project as a jar file it did not include the classes contained in the external jars that I had to my build path… However when I create a jar file for my project and run my program (using java -jar my_program.jar) it throws the following Exception:Įxception in thread “main” : javax/mail/AddressĬaused by: : Īt $1.run(URLClassLoader.java:217)Īt (Native Method)Īt (URLClassLoader.java:205)Īt (ClassLoader.java:323)Īt $AppClassLoader.loadClass(Launcher.java:294)Īt (ClassLoader.java:268)Īt (ClassLoader.java:336) When I run the program under eclipse it does run properly. In a program i wrote I’m using some non standard java libraries (to send an e-mail), so I had to add external jars to my build path under eclipse.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |