Results 1 to 3 of 3
  1. #1
    koxy is offline Member
    Join Date
    Mar 2010
    Rep Power

    Default class not enabled error ?????

    I get these error while running a sample of ANTS active network tool kit...i had included rt.jar file in classpath still it gives error class not found for sun packages...and what is class not enabled iin these error signifies eg :-" sun.reflect.ConstructorAccessorImpl class is not enabled."??

    complete error:-

    java.lang.NoClassDefFoundError: sun/reflect/ConstructorAccessorImpl
    at sun.misc.Unsafe.defineClass(Native Method)
    at sun.reflect.ClassDefiner.defineClass(ClassDefiner. java:45)
    at sun.reflect.MethodAccessorGenerator$
    at Method)
    at sun.reflect.MethodAccessorGenerator.generate(Metho
    at sun.reflect.MethodAccessorGenerator.generateConstr uctor(
    at sun.reflect.NativeConstructorAccessorImpl.newInsta nce(
    at sun.reflect.DelegatingConstructorAccessorImpl.newI nstance(
    at java.lang.reflect.Constructor.newInstance(Construc
    at java.lang.Class.newInstance0(
    at java.lang.Class.newInstance(
    at ants.core.Capsule.create(
    at ants.core.Capsule.dequeueCapsule(
    at ants.core.ProtocolBooster.dispatch(ProtocolBooster .java:260)
    at ants.core.ProtocolBooster.msgLoop(ProtocolBooster. java:163)
    at ants.core.ProtocolBooster.access$0(ProtocolBooster .java:154)
    at ants.core.ProtocolBooster$ va:142)
    at edu.utah.janos.nodeos.pj_Thread$
    Caused by: java.lang.ClassNotFoundException: Access to the sun.reflect.ConstructorAccessorImpl class is not enabled.
    at edu.utah.janos.nodeos.FlowClassLoader.loadClass(Fl
    at edu.utah.janos.nodeos.FlowClassLoader.loadClass(Fl

  2. #2
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Madgaon, Goa, India
    Rep Power


    Insufficient information. At the very least, post your line of code where the exception originates. That's
    Java Code:
    at edu.utah.janos.nodeos.FlowClassLoader.loadClass(Fl
    Better still if you can create a SSCCE* that's short enough to post here but still causes the error.
    * SSCCE : Java Glossary

    Last edited by DarrylBurke; 04-02-2010 at 08:54 AM.

  3. #3
    tenderuser is offline Member
    Join Date
    Aug 2009
    Rep Power


    i don't know which editor you use. sometime , i occour this problem always because my eclipse's seting is wrong , the jdk is just jre1.4 . and the reflect function is only included in jdk1.5 later. wish that will help you , good luck

Similar Threads

  1. How to set enabled my JButton...?
    By mlibot in forum New To Java
    Replies: 3
    Last Post: 10-13-2009, 12:24 PM
  2. how to enabled, disabled radio buttons
    By mlibot in forum NetBeans
    Replies: 9
    Last Post: 09-25-2009, 08:45 AM
  3. No Class Def Found Error:
    By fithous in forum Java Applets
    Replies: 0
    Last Post: 04-02-2009, 06:30 PM
  4. Class Expected error
    By Radman23 in forum New To Java
    Replies: 11
    Last Post: 01-14-2009, 05:12 AM
  5. Error in class
    By ai_2007 in forum Advanced Java
    Replies: 1
    Last Post: 07-09-2007, 05:06 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts