Compiled OK but NoClassDefFoundError when running

前端 未结 1 804
忘掉有多难
忘掉有多难 2021-01-20 18:02

I\'m trying to send an email using JavaMail API. I have jdk 1.5 installed in my home directory from self-extracting binary. I\'m on Ubintu 9.10

I compile the program

1条回答
  •  感情败类
    2021-01-20 18:42

    That class should come from your mail.jar. I'm not sure your classpath is being parsed properly. The tilde (~) is a shell function and needs expanding before being sent to the Java process. Have you tried removing the ~ and replacing with /home/{whatever} ? I suspect that's the issue.

    0 讨论(0)
提交回复
热议问题