来自 CodeNameOne 的新 GUI 构建器引入了异常?
New GUI builder from CodeNameOne introduces exception?
我正在测试新的 GUI 生成器,只是通过单击 GUI 的新内容,我无法通过运行时异常:
Compiling 1 source file to
/home/peter/Projekty/NetBeans/CN1_TestNewBuilder/TestNewBuilder/build/tmp
Compiling 1 source file to
/home/peter/Projekty/NetBeans/CN1_TestNewBuilder/TestNewBuilder/build/classes
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
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)
at
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.run(Executor.java:56) at
java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311) at
java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756) at
java.awt.EventQueue.access0(EventQueue.java:97) at
java.awt.EventQueue.run(EventQueue.java:709) at
java.awt.EventQueue.run(EventQueue.java:703) at
java.security.AccessController.doPrivileged(Native Method) at
java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:726) at
java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
at
java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:82) Java
Result: 1 BUILD SUCCESSFUL (total time: 1 second)
我还没有添加一行我自己的代码。至少我什么都不知道:)
有人能帮帮我吗?
您似乎在创建项目后重命名或更改了主应用程序的包:com.mycompany.myapp.MyApplication
。
这与 GUI 生成器无关。我们建议不要这样做,因为软件包名称 很重要 并且可以向商店标识您的应用。如果您仍然想更改它们,则需要在所有地方更改它们...
我正在测试新的 GUI 生成器,只是通过单击 GUI 的新内容,我无法通过运行时异常:
Compiling 1 source file to /home/peter/Projekty/NetBeans/CN1_TestNewBuilder/TestNewBuilder/build/tmp Compiling 1 source file to /home/peter/Projekty/NetBeans/CN1_TestNewBuilder/TestNewBuilder/build/classes 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 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) at 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.run(Executor.java:56) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311) at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756) at java.awt.EventQueue.access0(EventQueue.java:97) at java.awt.EventQueue.run(EventQueue.java:709) at java.awt.EventQueue.run(EventQueue.java:703) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76) at java.awt.EventQueue.dispatchEvent(EventQueue.java:726) at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201) at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93) at java.awt.EventDispatchThread.run(EventDispatchThread.java:82) Java Result: 1 BUILD SUCCESSFUL (total time: 1 second)
我还没有添加一行我自己的代码。至少我什么都不知道:) 有人能帮帮我吗?
您似乎在创建项目后重命名或更改了主应用程序的包:com.mycompany.myapp.MyApplication
。
这与 GUI 生成器无关。我们建议不要这样做,因为软件包名称 很重要 并且可以向商店标识您的应用。如果您仍然想更改它们,则需要在所有地方更改它们...