我正在测试新的GUI构建器,只是通过点击新的东西到GUI,我不能通过运行时异常:
编译1个源文件到/home/peter/Projekty/NetBeans/CN1_TestNewBuilder TestNewBuilder/构建/tmp编译1个源文件到/home/peter/Projekty/NetBeans/CN1_TestNewBuilder TestNewBuilder/构建/类编译:run: java.lang.ClassNotFoundException:com.mycompany.myapp.MyApplication在java.net.URLClassLoader.findClass (URLClassLoader.java: 381)java.lang.ClassLoader.loadClass (ClassLoader.java: 424)sun.misc.Launcher AppClassLoader.loadClass美元(Launcher.java: 331)java.lang.ClassLoader.loadClass (ClassLoader.java: 357)java.lang.ClassLoader.findSystemClass (ClassLoader.java: 1004)com.codename1.impl.javase.ClassPathLoader.findClass (ClassPathLoader.java: 100)在com.codename1.impl.javase.ClassPathLoader.loadClass (ClassPathLoader.java: 50). lang . class。forName0(本机方法)atjava.lang.Class.forName (Class.java: 264)com.codename1.impl.javase.Executor 1.美元(Executor.java: 56)运行java.awt.event.InvocationEvent.dispatch (InvocationEvent.java: 311)java.awt.EventQueue.dispatchEventImpl (EventQueue.java: 756)java.awt.EventQueue.access (EventQueue.java: 97) 500美元java.awt.EventQueue 3.美元(EventQueue.java: 709)运行java.awt.EventQueue 3.美元(EventQueue.java: 703)运行java.security.AccessController。特权(本地方法)在java.security.ProtectionDomain JavaSecurityAccessImpl.doIntersectionPrivilege美元(ProtectionDomain.java: 76)在java.awt.EventQueue.dispatchEvent(EventQueue.java:726java.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)Java . at Java .awt. eventdispatchthread .run(EventDispatchThread.java:82结果:1 BUILD success(总时间:1秒)
我还没有添加任何我自己的代码。至少我什么都不知道:)有人来帮我吗?
似乎您在项目创建后重命名或更改了主应用程序的包:com.mycompany.myapp.MyApplication
.
这与GUI生成器无关。我们建议不要这样做,因为包名很重要,并在商店中识别你的应用程序。如果你仍然想改变它们,你需要改变它们的任何地方…