Exception in thread "Thread-1" NoClassDefFoundError with jar file when compiled with javac -cp "commons-lang3-3.10.jar"

huangapple 未分类评论46阅读模式
英文:

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.

https://i.stack.imgur.com/zcvOx.jpg

huangapple
  • 本文由 发表于 2020年4月8日 05:46:40
  • 转载请务必保留本文链接:https://java.coder-hub.com/61089914.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定