我在运行代号为one的项目时突然遇到了一个问题,
在项目中找不到com.codename1.impl.javase.Simulator类,我多次清理和构建项目,也重新启动了netbeans,但问题仍然存在。
此外,我没有更改类路径或其他任何东西,其他项目工作正常,
任何人都可以帮忙,
运行结果:

编译属性:

运行属性:

项目属性:


构建输出:
ant -f E:\\Cross_Platform_Course\\NetBeansProjects\\Kaizen-Gate -Dnb.internal.action.name=build jar
No GUI Entries available
init:
deps-jar:
Created dir: E:\Cross_Platform_Course\NetBeansProjects\Kaizen-Gate\build
Updating property file: E:\Cross_Platform_Course\NetBeansProjects\Kaizen-Gate\build\built-jar.properties
Created dir: E:\Cross_Platform_Course\NetBeansProjects\Kaizen-Gate\build\classes
Compile is forcing compliance to the supported API's/features for maximum device compatibility. This allows smaller
code size and wider device support
Created dir: E:\Cross_Platform_Course\NetBeansProjects\Kaizen-Gate\build\tmp
Compiling 3 source files to E:\Cross_Platform_Course\NetBeansProjects\Kaizen-Gate\build\tmp
Created dir: E:\Cross_Platform_Course\NetBeansProjects\Kaizen-Gate\build\empty
Created dir: E:\Cross_Platform_Course\NetBeansProjects\Kaizen-Gate\build\generated-sources\ap-source-output
Compiling 3 source files to E:\Cross_Platform_Course\NetBeansProjects\Kaizen-Gate\build\classes
Copying 1 file to E:\Cross_Platform_Course\NetBeansProjects\Kaizen-Gate\build\classes
compile:
Created dir: E:\Cross_Platform_Course\NetBeansProjects\Kaizen-Gate\dist
Copying 1 file to E:\Cross_Platform_Course\NetBeansProjects\Kaizen-Gate\build
Not copying library E:\Cross_Platform_Course\NetBeansProjects\Kaizen-Gate\override , it's a directory.
Not copying library E:\Cross_Platform_Course\NetBeansProjects\Kaizen-Gate\lib\impl\cls , it's a directory.
Not copying library E:\Cross_Platform_Course\NetBeansProjects\Kaizen-Gate\lib\impl\stubs , it's a directory.
Not copying library E:\Cross_Platform_Course\NetBeansProjects\Kaizen-Gate\native\internal_tmp , it's a directory.
Copy libraries to E:\Cross_Platform_Course\NetBeansProjects\Kaizen-Gate\dist\lib.
Cannot fix dependencies for: E:\Cross_Platform_Course\NetBeansProjects\Kaizen-Gate\dist\lib\JavaSE.jar
Building jar: E:\Cross_Platform_Course\NetBeansProjects\Kaizen-Gate\dist\Kaizen-Gate.jar
To run this application from the command line without Ant, try:
java -jar "E:\Cross_Platform_Course\NetBeansProjects\Kaizen-Gate\dist\Kaizen-Gate.jar"
jar:
BUILD SUCCESSFUL (total time: 1 second)发布于 2016-11-17 11:05:43
这个类是在项目根目录下的JavaSE.jar中定义的。如果您更改或删除了该jar,或者更改了默认的类路径(如下截图所示),将会发生这种情况:

请注意,下面提到了JavaSE.jar。条目的存在和顺序很重要。

run部分应该如下所示,请注意应用程序的主类应该在arguments部分中

https://stackoverflow.com/questions/40631786
复制相似问题