Newb: installing Jython on Windows XP ...

D

donkeyboy

All,

I'm having issues installing Jython on Windows XP. I've looked on the
web and this newsgroup but to no avail. Any suggestions? The shell
listing is below:

NB I've got Cygwin installed, hence the Unix 'ls' on a Windows box

C:\>cd Jython

C:\Jython>ls
jython_21.class

C:\Jython>ls "c:\Program Files\Java\jdk1.5.0_09\bin\java.exe"
c:\Program Files\Java\jdk1.5.0_09\bin\java.exe

C:\Jython>"c:\Program Files\Java\jdk1.5.0_09\bin\java.exe" jython_21
Exception in thread "main" java.lang.NoClassDefFoundError: jython_21

C:\Jython>"c:\Program Files\Java\jdk1.5.0_09\bin\java.exe" jython-21
Exception in thread "main" java.lang.NoClassDefFoundError: jython-21

Any help would be of great use!!!
 
M

Marcus Bajohr

donkeyboy said:
All,

I'm having issues installing Jython on Windows XP. I've looked on the
web and this newsgroup but to no avail. Any suggestions? The shell
listing is below:

NB I've got Cygwin installed, hence the Unix 'ls' on a Windows box

C:\>cd Jython

C:\Jython>ls
jython_21.class

C:\Jython>ls "c:\Program Files\Java\jdk1.5.0_09\bin\java.exe"
c:\Program Files\Java\jdk1.5.0_09\bin\java.exe

C:\Jython>"c:\Program Files\Java\jdk1.5.0_09\bin\java.exe" jython_21
Exception in thread "main" java.lang.NoClassDefFoundError: jython_21

C:\Jython>"c:\Program Files\Java\jdk1.5.0_09\bin\java.exe" jython-21
Exception in thread "main" java.lang.NoClassDefFoundError: jython-21

Any help would be of great use!!!
Try it from cmd, not from the cygwin shell.
The environments differ !

greets
Marcus
 
A

Ant

Try it from cmd, not from the cygwin shell.
The environments differ !

Looking at the command prompt, he's not in the cygwin shell. I think
that there's a bug in the latest jre from sun. I installed the 1.5.0_09
update a few days ago, and I can't get any apps to run with it
(including irritatingly the Java Control Panel application so I can't
change the default back easily...) The problems are
NoClassDefFoundError's as well, so I wonder if the class loading is
broken in that release...

Anyway the solution seems to be to use an earlier jre explicitly:

"c:\Program Files\Java\jdk1.5.0_06\bin\java.exe" jython-21

1.5.0_06 seems to work fine for me.

HTH
 
D

draghuram

I haven't installed on cygwin or windows XP myself but you should be
using "java jython-21". Note that there are two class files
"jython-21.class" and "jython_21.class". Also make sure that the
CLASSPATH includes the directory that has these two class files.

Raghu.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,766
Messages
2,569,569
Members
45,043
Latest member
CannalabsCBDReview

Latest Threads

Top