Message11476

Author rafpar
Recipients rafpar
Date 2017-07-17.13:06:07
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1500296769.62.0.055056780592.issue2606@psf.upfronthosting.co.za>
In-reply-to
Content
I am facing problem with invoking jython.exe. I have installed Java 8 and jython 2.7.0. Installation went successful. 

I can start jython with a command:
java -jar jython.jar 

but when I want to launch jython.exe in ..bin/java.exe I got following exception:

Exception in thread "main" Traceback (most recent call last):
  File "C:\jython2.7.0\Lib\site.py", line 585, in <module>
    main()
  File "C:\jython2.7.0\Lib\site.py", line 560, in main
    abs__file__()
  File "C:\jython2.7.0\Lib\site.py", line 112, in abs__file__
    if hasattr(m, '__loader__') or (
sun.misc.InvalidJarIndexException: Invalid index
        at sun.misc.URLClassPath$JarLoader.getResource(Unknown Source)
        at sun.misc.URLClassPath$JarLoader.getResource(Unknown Source)
        at sun.misc.URLClassPath.getResource(Unknown Source)
        at java.net.URLClassLoader$1.run(Unknown Source)
        at java.net.URLClassLoader$1.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Unknown Source)
        at org.python.core.Py.loadAndInitClass(Py.java:991)
        at org.python.core.Py.findClassInternal(Py.java:926)
        at org.python.core.Py.findClassEx(Py.java:977)
        at org.python.core.packagecache.SysPackageManager.findClass(SysPackageMa
        at org.python.core.packagecache.PackageManager.findClass(PackageManager.
        at org.python.core.packagecache.SysPackageManager.findClass(SysPackageMa
        at org.python.core.PyJavaPackage.__findattr_ex__(PyJavaPackage.java:134)
        at org.python.core.PyObject.__findattr__(PyObject.java:946)
        at org.python.core.__builtin__.hasattr(__builtin__.java:661)
        at org.python.core.BuiltinFunctions.__call__(__builtin__.java:151)
        at org.python.core.PyObject.__call__(PyObject.java:482)
        at site$py.abs__file__$2(C:\jython2.7.0\Lib\site.py:111)
        at site$py.call_function(C:\jython2.7.0\Lib\site.py)
        at org.python.core.PyTableCode.call(PyTableCode.java:167)
        at org.python.core.PyBaseCode.call(PyBaseCode.java:124)
        at org.python.core.PyFunction.__call__(PyFunction.java:403)
        at site$py.main$34(C:\jython2.7.0\Lib\site.py:583)
        at site$py.call_function(C:\jython2.7.0\Lib\site.py)
        at org.python.core.PyTableCode.call(PyTableCode.java:167)
        at org.python.core.PyBaseCode.call(PyBaseCode.java:124)
        at org.python.core.PyFunction.__call__(PyFunction.java:403)
        at site$py.f$0(C:\jython2.7.0\Lib\site.py:637)
        at site$py.call_function(C:\jython2.7.0\Lib\site.py)
        at org.python.core.PyTableCode.call(PyTableCode.java:167)
        at org.python.core.PyCode.call(PyCode.java:18)
        at org.python.core.imp.createFromCode(imp.java:436)
        at org.python.core.imp.createFromPyClass(imp.java:236)
        at org.python.core.imp.createFromPyClass(imp.java:205)
        at org.python.core.imp.loadFromSource(imp.java:651)
        at org.python.core.imp.find_module(imp.java:543)
        at org.python.core.imp.import_next(imp.java:840)
        at org.python.core.imp.import_first(imp.java:861)
        at org.python.core.imp.load(imp.java:716)
        at org.python.core.Py.importSiteIfSelected(Py.java:1558)
        at org.python.util.PythonInterpreter.<init>(PythonInterpreter.java:116)
        at org.python.util.PythonInterpreter.<init>(PythonInterpreter.java:94)
        at org.python.util.InteractiveInterpreter.<init>(InteractiveInterpreter.
        at org.python.util.InteractiveInterpreter.<init>(InteractiveInterpreter.
        at org.python.util.InteractiveConsole.<init>(InteractiveConsole.java:68)
        at org.python.util.InteractiveConsole.<init>(InteractiveConsole.java:54)
        at org.python.util.InteractiveConsole.<init>(InteractiveConsole.java:34)
        at org.python.util.jython.run(jython.java:284)
        at org.python.util.jython.main(jython.java:142)

sun.misc.InvalidJarIndexException: sun.misc.InvalidJarIndexException: Invalid index


my path set is:

jython.exe --print

"C:\Program Files\Java\jdk1.8.0_91\bin\java" -Xmx512m -Xss1024k -classpath C:\jython2.7.0\jython.jar;C:\PROGRA~1\Java\JDK18~1.0_9\lib\tools.jar;C:\Users\m015990\Utils\WebLogic\wls12210\wlserver\modules\features\wlst.wls.classpath.jar;C:\Users\m015990\Utils\WebLogic\wls12210\wlserver\server\lib\weblogic.jar -Dpython.home=C:\jython2.7.0 -Dpython.executable=C:\jython2.7.0\bin\jython.exe -Dpython.launcher.uname=windows -Dpython.launcher.tty=true org.python.util.jython


Any ideas??
History
Date User Action Args
2017-07-17 13:06:09rafparsetrecipients: + rafpar
2017-07-17 13:06:09rafparsetmessageid: <1500296769.62.0.055056780592.issue2606@psf.upfronthosting.co.za>
2017-07-17 13:06:09rafparlinkissue2606 messages
2017-07-17 13:06:07rafparcreate