Can't find class xxx or something it requires
我是java初学者
我写一个java的类比如 xxx.java
在jdk命令行编译说找不到一些包(应该用什么参数可以在编译时加入包路径?),
然后在IBM java 中编译总算通过。将类导出。
然后在命令行运行。
java xxx sonnet.xml(sonnet.xml 是一个输入参数)
总是说:
Can't find class xxx or something it requires
检查autoexec.bat发现参数CLASSPATH中包含当前路径".",实在头大,
我也是太菜,请各位指点一二。
马上各分。
我写一个java的类比如 xxx.java
在jdk命令行编译说找不到一些包(应该用什么参数可以在编译时加入包路径?),
然后在IBM java 中编译总算通过。将类导出。
然后在命令行运行。
java xxx sonnet.xml(sonnet.xml 是一个输入参数)
总是说:
Can't find class xxx or something it requires
检查autoexec.bat发现参数CLASSPATH中包含当前路径".",实在头大,
我也是太菜,请各位指点一二。
马上各分。
...全文
相关推荐
解决 Can not find the main class. Program will exit. 难题
在IT领域,尤其是在Java编程中,遇到“Can not find the main class. Program will exit.”这一错误信息是非常常见的问题。
win7 解决导出jar包提示 can not find the main class
#### 错误原因分析当我们在尝试运行一个JAR文件时出现“can not find the main-class”的错误提示,通常有以下几种可能的原因:1.
Could not find the main class
"解决 MyEclipse 8.5 中的 “Could not find the main class” 问题""Could not find the main class" 是一个常见的错误提示,出现于
WIN7下运行Jar文件提示Could not find the main class
在Windows 7系统下运行Java应用包(JAR文件)时遇到“Could not find the main-class”错误,是常见的问题之一。
tomcat报错:Wrapper cannot find servlet class ...问题解决
如果找不到对应的类,就会抛出“Wrapper cannot find servlet class”异常。错误信息中提到的“xxx”就是你定义的Servlet类名。问题分析:1.


Java SE
