英文:
Exception in thread "Thread-1" NoClassDefFoundError with jar file when compiled with javac -cp "commons-lang3-3.10.jar"
问题
我在尝试运行一个多命令窗口服务器应用程序时遇到了错误。我使用-cp参数同时编译客户端和服务器,并且使用了"commons-lang3-3.10.jar"文件,但我仍然遇到了这个异常。我在这里附上了一个错误截图的链接。程序起初会运行并等待接受客户端连接...,但当我打开第二个命令窗口并运行我的ChatClient时,就会出现这个错误。我目前正在使用一个Ubuntu虚拟机。
链接:https://i.stack.imgur.com/zcvOx.jpg
英文:
I'm receiving an error while trying to run a multi-command window server application. I'm compiling both the Client and Server with the -cp "commons-lang3-3.10.jar" file, but I continue to run into this Exception. I've attached a link to an image of the error. The program runs at first and waits to accept a client connection..., but then when I open a second command window and run my ChatClient, I get the error. I'm currently using an Ubuntu virtual machine.
专注分享java语言的经验与见解,让所有开发者获益!
评论