error class not found exception

14 views
Skip to first unread message

Rohit Manhas

unread,
Aug 6, 2018, 7:58:58 AM8/6/18
to CodenameOne Discussions


class not found exception is i know this error not showing in my class.could you please help me and guide what i am do.

PFA



EXCEPTION


java.lang.ClassNotFoundException: /
    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:99)
    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756)
    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:80)
    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)


If you are experiencing an issue please mention the full platform your issue applies to:
IDE: NetBeans/Eclipse/IDEA
Desktop OS
Simulator
Device
codenameone eception.PNG

Dave Dyer

unread,
Aug 6, 2018, 12:20:32 PM8/6/18
to CodenameOne Discussions
You have to have an explicit reference to the class somewhere, or else it will
not be included in the class tree.   Something like:
Class[]classesUsedByForname= {  Foo.class,Bar.class};

Shai Almog

unread,
Aug 7, 2018, 12:33:48 AM8/7/18
to CodenameOne Discussions
This is caused when you rename or refactor the main class of the project. Once you create a project you shouldn't change the package name or class name of the main class.
Both are crucial so you should get them right!
They identify your app in the store, I talk about them in the new book in the free chapters: https://uber.cn1.co/
Reply all
Reply to author
Forward
0 new messages