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

    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$1.run(MethodAc cessorGenerator.java:381)
    at java.security.AccessController.doPrivileged(Native Method)
    at sun.reflect.MethodAccessorGenerator.generate(Metho dAccessorGenerator.java:377)
    at sun.reflect.MethodAccessorGenerator.generateConstr uctor(MethodAccessorGenerator.java:76)
    at sun.reflect.NativeConstructorAccessorImpl.newInsta nce(NativeConstructorAccessorImpl.java:30)
    at sun.reflect.DelegatingConstructorAccessorImpl.newI nstance(DelegatingConstructorAccessorImpl.java:27)
    at java.lang.reflect.Constructor.newInstance(Construc tor.java:513)
    at java.lang.Class.newInstance0(Class.java:355)
    at java.lang.Class.newInstance(Class.java:308)
    at ants.core.Capsule.create(Capsule.java:690)
    at ants.core.Capsule.dequeueCapsule(Capsule.java:633)
    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$1.run(ProtocolBooster.ja va:142)
    at edu.utah.janos.nodeos.pj_Thread$ThreadWrapper.run( pj_Thread.java:83)
    Caused by: java.lang.ClassNotFoundException: Access to the sun.reflect.ConstructorAccessorImpl class is not enabled.
    at edu.utah.janos.nodeos.FlowClassLoader.loadClass(Fl owClassLoader.java:388)
    at edu.utah.janos.nodeos.FlowClassLoader.loadClass(Fl owClassLoader.java:267)

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

    Default

    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 owClassLoader.java:388)
    Better still if you can create a SSCCE* that's short enough to post here but still causes the error.
    * SSCCE : Java Glossary

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

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

    Default

    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, 11:24 AM
  2. how to enabled, disabled radio buttons
    By mlibot in forum NetBeans
    Replies: 9
    Last Post: 09-25-2009, 07:45 AM
  3. No Class Def Found Error:
    By fithous in forum Java Applets
    Replies: 0
    Last Post: 04-02-2009, 05:30 PM
  4. Class Expected error
    By Radman23 in forum New To Java
    Replies: 11
    Last Post: 01-14-2009, 04:12 AM
  5. Error in class
    By ai_2007 in forum Advanced Java
    Replies: 1
    Last Post: 07-09-2007, 04: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
  •