Message3342

Author dergo
Recipients dergo
Date 2008-07-17.07:56:24
SpamBayes Score 0.00214936
Marked as misclassified No
Message-id <1216281384.83.0.0925985746571.issue1076@psf.upfronthosting.co.za>
In-reply-to
Content
Jython.bat doesn't work when launched from Windows explorer:
Exception in thread "main" java.lang.NoClassDefFoundError: 
Files\jython2/5a1+\jython/bat
Caused by: java.lang.ClassNotFoundException: 
Files\jython2.5a1+\jython.bat
        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.loadClassInternal(Unknown Source)

Solution:
Change "-Dpython.executable="%~0" into "Jython.bat doesn't work when 
launched from Windows explorer:

Exception in thread "main" java.lang.NoClassDefFoundError: 
Files\jython2/5a1+\jython/bat
Caused by: java.lang.ClassNotFoundException: 
Files\jython2.5a1+\jython.bat
        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.loadClassInternal(Unknown Source)

Solution:
Change '-Dpython.executable="%0"' into '-Dpython.executable="%~0"'
in generated Jython.bat
History
Date User Action Args
2008-07-17 07:56:24dergosetspambayes_score: 0.00214936 -> 0.00214936
messageid: <1216281384.83.0.0925985746571.issue1076@psf.upfronthosting.co.za>
2008-07-17 07:56:24dergosetspambayes_score: 0.00214936 -> 0.00214936
recipients: + dergo
2008-07-17 07:56:24dergolinkissue1076 messages
2008-07-17 07:56:24dergocreate