I previously typed in a wrong email address...
 
 
----- Original Message -----
From: Alex Ng
To: jython-dev@list.sourceforge.net
Sent: Saturday, October 11, 2003 10:01 PM
Subject: Jython runtime problem, please advise!!!

Hi,

I've been trying/troubleshooting for a few days already.  I keep on having problem running those jython sample scripts.  As such, I can't get the feel running Jython scripts.

May I ask you to give me some light?  It seems like I don't have a workable environment.  Basically the latest situation is that whenever I tried to run the jython script, I always got:

C:\Program Files\jython-2.1>jython HelloWorld.py
Exception in thread "main" java.lang.NoClassDefFoundError: C:\Program Files\jython-2/1\jython/jar;/;C:\AU\comp501v3\programs\jen\;C:\AU\comp501v3\programs" org/python/util/jython  HelloWorld/py

C:\Program Files\jython-2.1>jython HelloApplet.py
Exception in thread "main" java.lang.NoClassDefFoundError: C:\Program Files\jython-2/1\jython/jar;/;C:\AU\comp501v3\programs\jen\;C:\AU\comp501v3\programs" org/python/util/jython  HelloApplet/py

Jython installation seemed to be successful, I didn't get any complains. I'm using Java SDK 1.4.2.  I don't know if I had made any mistake or I missed out anything during installation, or there is some problem with my
PC's environment?  BTW, I used all these ways to install Jython and I chose installation type "All" and Core, Library modules, Demos and examples, and Sources were chosen in all 3 cases below:

1) java jython-21
2) java -cp . jython-21
3) java -classpath . jython-21

One more thing is, due to my Java version, the I need to modify jython.bat
to make it run.  "-cp" is added before "-classpath", as below:

>@echo off
>rem This file generated by Jython installer
>rem Created on XXX by y10741
>rem
>rem set JAVA_HOME=C:\Program Files\Java\j2re1.4.1_04
>
>set ARGS=
>
>:loop
>if [%1] == [] goto end
>        set ARGS=%ARGS% %1
>        shift
>        goto loop
>:end
>
>
>
>"C:\Program Files\Java\j2re1.4.1_04\bin\java.exe" "-Dpython.home=C:\Program Files\jython-2.1" -cp -classpath "C:\Program Files\jython-2.1\jython.jar;%CLASSPATH%" org.python.util.jython %ARGS%

Otherwise, java.exe itself complains, showing me the help messages as if I missed out any parameter.

Please advise,

Alex

p.s.  Below is my PC's environment:

C:\Program Files\jython-2.1>set
ALLUSERSPROFILE=D:\Profiles\All Users
APPDATA=D:\Profiles\y10741.BRC9-0087\Application Data
ARGS= HelloWorld.py
ClassPath=.;C:\AU\comp501v3\programs\jen\;C:\AU\comp501v3\programs\
CommonProgramFiles=C:\Program Files\Common Files
COMPUTERNAME=BRC9-0087
ComSpec=C:\WINNT\system32\cmd.exe
dircmd=/ogn
HOMEDRIVE=C:
HOMEPATH=\
LOGONSERVER=\\BRC9-0087
NUMBER_OF_PROCESSORS=1
OS=Windows_NT
Os2LibPath=C:\WINNT\system32\os2\dll;
Path=C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem;C:\PROGRAM FILES\THINKPAD\UTILITIES;C:\Program Files\j2sdk_nb\j2sdk1.4.2\bin;c:\Program
Files\GNUish;c:\Program Files\GNUish\gawk306x\gnu\bin;C:\Program Files\Python23;C:\Program
Files\jython-2.1;C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem;C:\ntutils;C:\Scripts;C:\Program Files\SSH Communications Security\SSH SecureShell;C:\Program Files\j2sdk_nb\j2sdk1.4.2\bin;c:\Program
Files\GNUish;c:\Program Files\GNUish\gawk306x\gnu\bin;C:\Program Files\Python23;C:\Program Files\jython-2.1
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
PROCESSOR_ARCHITECTURE=x86
PROCESSOR_IDENTIFIER=x86 Family 6 Model 8 Stepping 6, GenuineIntel
PROCESSOR_LEVEL=6
PROCESSOR_REVISION=0806
ProgramFiles=C:\Program Files
PROMPT=$P$G
SMS_LOCAL_DIR=C:\WINNT
SystemDrive=C:
SystemRoot=C:\WINNT
TEMP=D:\Profiles\Y10741~1.BRC\LOCALS~1\Temp
TMP=D:\Profiles\Y10741~1.BRC\LOCALS~1\Temp
USERDOMAIN=BRC9-0087
USERNAME=y10741
USERPROFILE=D:\Profiles\y10741.BRC9-0087
windir=C:\WINNT