java.lang.ClassNotFoundException, although the class exists -
i got java.lang.classnotfoundexception
:
exception in thread "main" java.lang.noclassdeffounderror: consts/sortofpages @ java.lang.class.getdeclaredmethods0(native method) @ java.lang.class.privategetdeclaredmethods(unknown source) @ java.lang.class.getmethod0(unknown source) @ java.lang.class.getmethod(unknown source) @ sun.launcher.launcherhelper.getmainmethod(unknown source) @ sun.launcher.launcherhelper.checkandloadmain(unknown source) caused by: java.lang.classnotfoundexception: consts.sortofpages @ java.net.urlclassloader$1.run(unknown source) @ java.net.urlclassloader$1.run(unknown source) @ java.security.accesscontroller.doprivileged(native method) @ java.net.urlclassloader.findclass(unknown source) @ java.lang.classloader.loadclass(unknown source) @ sun.misc.launcher$appclassloader.loadclass(unknown source) @ java.lang.classloader.loadclass(unknown source) ... 6 more
and class of sortofpages:
package consts; public enum sortofpages { popup("new - "), silent("silent - "); public string description; private sortofpages(string description) { this.description = description; } public string getdescription() { return description; } }
in import of main class:
import consts.sortofpages;
but when search const/sortofpages, find it, , exists.
i try clean, , build again - , same.
how can solve it?
Comments
Post a Comment