- Feb 7, 2001
- 1,637
- 0
- 0
I tried java -classpath "./smack.jar" -jar MyJarFile.jar and it doesn't work...
I get this error:
# > java -classpath "/path/to/smack.jar" -jar "Jabber Client.jar"
Exception in thread "main" java.lang.NoClassDefFoundError: org/jivesoftware/smack/filter/PacketFilter
at ConnectionFactory.create(ConnectionFactory.java:61)
at Client.<init>(Client.java:233)
at Client.main(Client.java:43)
What am I doing wrong? If I choose Project -> Run As Java Application in Eclipse it works fine... so I build the .jar file, and now I want to run it outside of Eclipse.
I get this error:
# > java -classpath "/path/to/smack.jar" -jar "Jabber Client.jar"
Exception in thread "main" java.lang.NoClassDefFoundError: org/jivesoftware/smack/filter/PacketFilter
at ConnectionFactory.create(ConnectionFactory.java:61)
at Client.<init>(Client.java:233)
at Client.main(Client.java:43)
What am I doing wrong? If I choose Project -> Run As Java Application in Eclipse it works fine... so I build the .jar file, and now I want to run it outside of Eclipse.