4 Replies Latest reply: Jun 9, 2009 11:50 AM by 807581 RSS

    Query with Jython

    807581
      I recently downloaded Jython on a Solaris box and then when I tried to run it I get the following error...

      java.lang.reflect.InvocationTargetException: java.lang.NoClassDefFoundError: java/util/RandomAccess
      at java.lang.ClassLoader.defineClass0(Native Method)
      at java.lang.ClassLoader.defineClass(ClassLoader.java:488)
      at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:106)
      at java.net.URLClassLoader.defineClass(URLClassLoader.java:243)
      at java.net.URLClassLoader.access$100(URLClassLoader.java:51)
      at java.net.URLClassLoader$1.run(URLClassLoader.java:190)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.net.URLClassLoader.findClass(URLClassLoader.java:183)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:294)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:250)
      at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:310)
      at org.python.core.PySequenceList.<init>(PySequenceList.java:43)
      at org.python.core.PyTuple.<init>(PyTuple.java:301)
      at org.python.core.PySystemState.initStaticFields(PySystemState.java:433)
      at org.python.core.PySystemState.initialize(PySystemState.java:407)
      at org.python.core.PySystemState.initialize(PySystemState.java:380)
      at org.python.util.jython.main(jython.java:80)
      at java.lang.reflect.Method.invoke(Native Method)
      at com.raplix.rolloutexpress.node.bootstrap.BootStrap.run(BootStrap.java:250)
      at com.raplix.rolloutexpress.node.bootstrap.BootStrap.main(BootStrap.java:48)
      Error starting org.python.util.jython java.lang.reflect.InvocationTargetException

      What is the reason for this error?
      Thanks in advance!
      Anand
        • 1. Re: Query with Jython
          807581
          Clearly java.util.RandomAccess is not in the classpath.

          Have you checked the jdk version?

          As per http://java.sun.com/j2se/1.5.0/docs/guide/collections/changes4.html, randomaccess was introduced in 1.4. Can you check if you are using a previous jdk?
          • 2. Re: Query with Jython
            807581
            Sorry abt this...but how do I check the jdk version? I am using Solaris 10.
            • 3. Re: Query with Jython
              807581
              just run
              java -version
              • 4. Re: Query with Jython
                807581
                Why Sun did not support the project with Jython IDE neatbeans rays and that supports other languages and groovy, jython be a better choice for power and the open source high-level and dynamic languages, perhaps afraid that Jython sun Soak all paying because its syntax is relatively simple and elegant compared to the addition of Java and runs on the JVM and can access almost all of Java APIs.


                please if anyone will agree with me that apoyenme java jython support the project, since all we need.




                forgive my bad English.