CodeNameOne的新GUI构建器引入了异常吗?

时间:2016-09-07 15:49:51

标签: java exception codenameone gui-builder

我正在测试新的GUI构建器,只需点击GUI的新内容,我无法通过运行时异常:

  

将1个源文件编译为   /家庭/彼得/ Projekty /的NetBeans / CN1_TestNewBuilder / TestNewBuilder /编译/ tmp目录   将1个源文件编译为   /家庭/彼得/ Projekty /的NetBeans / CN1_TestNewBuilder / TestNewBuilder /编译/班   compile:run:java.lang.ClassNotFoundException:   com.mycompany.myapp.MyApplication at   java.net.URLClassLoader.findClass(URLClassLoader.java:381)at   java.lang.ClassLoader.loadClass(ClassLoader.java:424)at   sun.misc.Launcher $ AppClassLoader.loadClass(Launcher.java:331)at at   java.lang.ClassLoader.loadClass(ClassLoader.java:357)at   java.lang.ClassLoader.findSystemClass(ClassLoader.java:1004)at   com.codename1.impl.javase.ClassPathLoader.findClass(ClassPathLoader.java:100)     在   com.codename1.impl.javase.ClassPathLoader.loadClass(ClassPathLoader.java:50)     at java.lang.Class.forName0(Native Method)at   java.lang.Class.forName(Class.java:264)at   com.codename1.impl.javase.Executor $ 1.run(Executor.java:56)at at   java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)at   java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756)at at   java.awt.EventQueue.access $ 500(EventQueue.java:97)at   java.awt.EventQueue $ 3.run(EventQueue.java:709)at   java.awt.EventQueue $ 3.run(EventQueue.java:703)at   java.security.AccessController.doPrivileged(Native Method)at   java.security.ProtectionDomain $ JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76)     在java.awt.EventQueue.dispatchEvent(EventQueue.java:726)at   java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)     在   java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)     在   java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)     在   java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)     在   java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)     at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)Java   结果:1建立成功(总时间:1秒)

我还没有添加一行我自己的代码。至少我什么都不知道:) 有人会帮助我吗?

1 个答案:

答案 0 :(得分:1)

在项目创建后,您似乎重命名或更改了主应用程序的包:com.mycompany.myapp.MyApplication

这与GUI构建器无关。我们建议不要这样做,因为包名称重要并向商店标识您的应用。如果你还想改变它们,你需要在任何地方改变它们......