j9 and jython ... how to start ?

Hi,

does someone know how to build a start script which starts jython ?

Regards

Armin

You might want to go and download the eclipse distribution from
www.eclipse.org. You’ll find in the ‘library’ directory programs for
launching on various platforms. If you look at eclipsePhoton.c, you’ll see
all the wacky arguments that are used to spawn j9. You might wind up having
to unpack the jython distro on windows first before putting it onto rtp
though.

cheers,

Kris

“Armin” <a-steinhoff@web_.de> wrote in message
news:3C582600.9020600@web_.de…

Hi,

does someone know how to build a start script which starts jython ?

Regards

Armin

Hey, did you look in the j9 installation directory? They’ve got an examples
dir with lots of shell scripts that start j9 applications.

cheers,

Kris
“Kris Warkentin” <kewarken@qnx.com> wrote in message
news:a3bqq9$lmq$1@nntp.qnx.com

You might want to go and download the eclipse distribution from
www.eclipse.org> . You’ll find in the ‘library’ directory programs for
launching on various platforms. If you look at eclipsePhoton.c, you’ll
see
all the wacky arguments that are used to spawn j9. You might wind up
having
to unpack the jython distro on windows first before putting it onto rtp
though.

cheers,

Kris

“Armin” <a-steinhoff@web_.de> wrote in message
news:3C582600.9020600@web_.de…

Hi,

does someone know how to build a start script which starts jython ?

Regards

Armin

Continuing my conversation with myself, it doesn’t look like there is an
easy way to get things to run with j9. At least, there is no analogy to
‘java classname’ to just run some arbitrary class. Tricky. Maybe we’d have
better luck with a pre-extracted jython distribution copied over to an RTP
box. Then we can figure out things like
“org.jython.foo.SomeStartupClass.main” or whatever weird arguments it needs
to take.

cheers,

Kris

“Kris Warkentin” <kewarken@qnx.com> wrote in message
news:a3c2gc$qu0$1@nntp.qnx.com

Hey, did you look in the j9 installation directory? They’ve got an
examples
dir with lots of shell scripts that start j9 applications.

cheers,

Kris
“Kris Warkentin” <> kewarken@qnx.com> > wrote in message
news:a3bqq9$lmq$> 1@nntp.qnx.com> …
You might want to go and download the eclipse distribution from
www.eclipse.org> . You’ll find in the ‘library’ directory programs for
launching on various platforms. If you look at eclipsePhoton.c, you’ll
see
all the wacky arguments that are used to spawn j9. You might wind up
having
to unpack the jython distro on windows first before putting it onto rtp
though.

cheers,

Kris

“Armin” <a-steinhoff@web_.de> wrote in message
news:3C582600.9020600@web_.de…

Hi,

does someone know how to build a start script which starts jython ?

Regards

Armin

\

I have no experience with running jython, but if you are just having
trouble with getting j9 to run at all, you can try this:

Depending on how you install j9, you either get just the runtimes (no
class libraries), or you get a directory with /opt/vame (from the QNX
package installer).

depending on where it is installed, you’ll want to look for an
“ive/bin” and “ive/lib” directory structure (eg /opt/vame/ive/bin,
/opt/vame/ive/lib"). Under the ive/lib tree should be a jclMax
directory with classes.zip. If you don’t have this we’lll have to
adress the problem first. If you do have it, then you should be able
to run j9 this way:

  1. You need the ive/bin directory on LD_LIBRARY_PATH and PATH.

  2. Assuming you have your classes in a jar called myjar.jar, run this
    way:

j9 -bp:/ive/lib/jclMax/classes.zip -cp:myjar.jar org.foo.MyClass

(put the real full directory to the jclMax classes.zip).

Hope this helps

-Andrew


On Fri, 1 Feb 2002 11:39:44 -0500, “Kris Warkentin” <kewarken@qnx.com>
wrote:

Continuing my conversation with myself, it doesn’t look like there is an
easy way to get things to run with j9. At least, there is no analogy to
‘java classname’ to just run some arbitrary class. Tricky. Maybe we’d have
better luck with a pre-extracted jython distribution copied over to an RTP
box. Then we can figure out things like
“org.jython.foo.SomeStartupClass.main” or whatever weird arguments it needs
to take.

cheers,

Kris

“Kris Warkentin” <> kewarken@qnx.com> > wrote in message
news:a3c2gc$qu0$> 1@nntp.qnx.com> …
Hey, did you look in the j9 installation directory? They’ve got an
examples
dir with lots of shell scripts that start j9 applications.

cheers,

Kris
“Kris Warkentin” <> kewarken@qnx.com> > wrote in message
news:a3bqq9$lmq$> 1@nntp.qnx.com> …
You might want to go and download the eclipse distribution from
www.eclipse.org> . You’ll find in the ‘library’ directory programs for
launching on various platforms. If you look at eclipsePhoton.c, you’ll
see
all the wacky arguments that are used to spawn j9. You might wind up
having
to unpack the jython distro on windows first before putting it onto rtp
though.

cheers,

Kris

“Armin” <a-steinhoff@web_.de> wrote in message
news:3C582600.9020600@web_.de…

Hi,

does someone know how to build a start script which starts jython ?

Regards

Armin



\

Actually, the jython installer just comes as a class file and I guess part
of the problem is knowing exactly what to run it as…when I said
‘org.jython…’ I was just guessing. That’s why I was thinking it might be
easier to extract everything somewhere where you have a normal java
implementation and then copy it over and try to figure it out. I wonder why
j9 is such a pain in the butt?

cheers,

Kris
“Andrew Sandstrom” <andrew_sandstrom@oti.com> wrote in message
news:3c5b0b97.23209803@inn.qnx.com

I have no experience with running jython, but if you are just having
trouble with getting j9 to run at all, you can try this:

Depending on how you install j9, you either get just the runtimes (no
class libraries), or you get a directory with /opt/vame (from the QNX
package installer).

depending on where it is installed, you’ll want to look for an
“ive/bin” and “ive/lib” directory structure (eg /opt/vame/ive/bin,
/opt/vame/ive/lib"). Under the ive/lib tree should be a jclMax
directory with classes.zip. If you don’t have this we’lll have to
adress the problem first. If you do have it, then you should be able
to run j9 this way:

  1. You need the ive/bin directory on LD_LIBRARY_PATH and PATH.

  2. Assuming you have your classes in a jar called myjar.jar, run this
    way:

j9 -bp:/ive/lib/jclMax/classes.zip -cp:myjar.jar org.foo.MyClass

(put the real full directory to the jclMax classes.zip).

Hope this helps

-Andrew


On Fri, 1 Feb 2002 11:39:44 -0500, “Kris Warkentin” <> kewarken@qnx.com
wrote:

Continuing my conversation with myself, it doesn’t look like there is an
easy way to get things to run with j9. At least, there is no analogy to
‘java classname’ to just run some arbitrary class. Tricky. Maybe we’d
have
better luck with a pre-extracted jython distribution copied over to an
RTP
box. Then we can figure out things like
“org.jython.foo.SomeStartupClass.main” or whatever weird arguments it
needs
to take.

cheers,

Kris

“Kris Warkentin” <> kewarken@qnx.com> > wrote in message
news:a3c2gc$qu0$> 1@nntp.qnx.com> …
Hey, did you look in the j9 installation directory? They’ve got an
examples
dir with lots of shell scripts that start j9 applications.

cheers,

Kris
“Kris Warkentin” <> kewarken@qnx.com> > wrote in message
news:a3bqq9$lmq$> 1@nntp.qnx.com> …
You might want to go and download the eclipse distribution from
www.eclipse.org> . You’ll find in the ‘library’ directory programs for
launching on various platforms. If you look at eclipsePhoton.c,
you’ll
see
all the wacky arguments that are used to spawn j9. You might wind up
having
to unpack the jython distro on windows first before putting it onto
rtp
though.

cheers,

Kris

“Armin” <a-steinhoff@web_.de> wrote in message
news:3C582600.9020600@web_.de…

Hi,

does someone know how to build a start script which starts jython ?

Regards

Armin




\

Kris Warkentin wrote:

Continuing my conversation with myself,

Sorry Kris … I was busy with other tasks.

it doesn’t look like there is an
easy way to get things to run with j9. At least, there is no analogy to
‘java classname’ to just run some arbitrary class. Tricky. Maybe we’d have
better luck with a pre-extracted jython distribution copied over to an RTP
box. Then we can figure out things like
“org.jython.foo.SomeStartupClass.main” or whatever weird arguments it needs
to take.

Thanks … I will come back to this issue soon.

Regards

Armin

cheers,

Kris

“Kris Warkentin” <> kewarken@qnx.com> > wrote in message
news:a3c2gc$qu0$> 1@nntp.qnx.com> …
Hey, did you look in the j9 installation directory? They’ve got an
examples
dir with lots of shell scripts that start j9 applications.

cheers,

Kris
“Kris Warkentin” <> kewarken@qnx.com> > wrote in message
news:a3bqq9$lmq$> 1@nntp.qnx.com> …
You might want to go and download the eclipse distribution from
www.eclipse.org> . You’ll find in the ‘library’ directory programs for
launching on various platforms. If you look at eclipsePhoton.c, you’ll
see
all the wacky arguments that are used to spawn j9. You might wind up
having
to unpack the jython distro on windows first before putting it onto rtp
though.

cheers,

Kris

“Armin” <a-steinhoff@web_.de> wrote in message
news:3C582600.9020600@web_.de…

Hi,

does someone know how to build a start script which starts jython ?

Regards

Armin

\

Kris Warkentin wrote:

Actually, the jython installer just comes as a class file and I guess part
of the problem is knowing exactly what to run it as…when I said
‘org.jython…’ I was just guessing. That’s why I was thinking it might be
easier to extract everything somewhere where you have a normal java
implementation and then copy it over and try to figure it out. I wonder why
j9 is such a pain in the butt?

Yes … I have looked at first into the application start scripts and
got the impression
that this stuff has something to do wih crytified black magic :slight_smile: … so
I asked
for some hints just to minimze the PITA to get jython running.

My impression is that there is no broad acceptance and use of j9 based
JAVA.
Hope I’m wrong …

Thanks

Armin


cheers,

Kris
“Andrew Sandstrom” <> andrew_sandstrom@oti.com> > wrote in message
news:> 3c5b0b97.23209803@inn.qnx.com> …
I have no experience with running jython, but if you are just having
trouble with getting j9 to run at all, you can try this:

Depending on how you install j9, you either get just the runtimes (no
class libraries), or you get a directory with /opt/vame (from the QNX
package installer).

depending on where it is installed, you’ll want to look for an
“ive/bin” and “ive/lib” directory structure (eg /opt/vame/ive/bin,
/opt/vame/ive/lib"). Under the ive/lib tree should be a jclMax
directory with classes.zip. If you don’t have this we’lll have to
adress the problem first. If you do have it, then you should be able
to run j9 this way:

  1. You need the ive/bin directory on LD_LIBRARY_PATH and PATH.

  2. Assuming you have your classes in a jar called myjar.jar, run this
    way:

j9 -bp:/ive/lib/jclMax/classes.zip -cp:myjar.jar org.foo.MyClass

(put the real full directory to the jclMax classes.zip).

Hope this helps

-Andrew


On Fri, 1 Feb 2002 11:39:44 -0500, “Kris Warkentin” <> kewarken@qnx.com
wrote:

Continuing my conversation with myself, it doesn’t look like there is an
easy way to get things to run with j9. At least, there is no analogy to
‘java classname’ to just run some arbitrary class. Tricky. Maybe we’d
have
better luck with a pre-extracted jython distribution copied over to an
RTP
box. Then we can figure out things like
“org.jython.foo.SomeStartupClass.main” or whatever weird arguments it
needs
to take.

cheers,

Kris

“Kris Warkentin” <> kewarken@qnx.com> > wrote in message
news:a3c2gc$qu0$> 1@nntp.qnx.com> …
Hey, did you look in the j9 installation directory? They’ve got an
examples
dir with lots of shell scripts that start j9 applications.

cheers,

Kris
“Kris Warkentin” <> kewarken@qnx.com> > wrote in message
news:a3bqq9$lmq$> 1@nntp.qnx.com> …
You might want to go and download the eclipse distribution from
www.eclipse.org> . You’ll find in the ‘library’ directory programs for
launching on various platforms. If you look at eclipsePhoton.c,
you’ll
see
all the wacky arguments that are used to spawn j9. You might wind up
having
to unpack the jython distro on windows first before putting it onto
rtp
though.

cheers,

Kris

“Armin” <a-steinhoff@web_.de> wrote in message
news:3C582600.9020600@web_.de…

Hi,

does someone know how to build a start script which starts jython ?

Regards

Armin




\

On Mon, 04 Feb 2002 12:14:44 +0100, Armin Steinhoff
<a-steinhoff@web_.de> wrote:

Kris Warkentin wrote:

Actually, the jython installer just comes as a class file and I guess part
of the problem is knowing exactly what to run it as…when I said
‘org.jython…’ I was just guessing. That’s why I was thinking it might be
easier to extract everything somewhere where you have a normal java
implementation and then copy it over and try to figure it out. I wonder why
j9 is such a pain in the butt?

is the PITA getting J9 running or figuring out how to run jython? If
you don’t know what the main class is how can you even run this
anywhere else?

Yes … I have looked at first into the application start scripts and
got the impression
that this stuff has something to do wih crytified black magic > :slight_smile: > … so
I asked
for some hints just to minimze the PITA to get jython running.

What application startup script is this? Is this to start jython on a
different java? Most times, I’ve had success in just replacing “java”
with “j9” and then adding “-bp:/ive/lib/jclMax/classes.zip” to get the
base class libraries in place.


My impression is that there is no broad acceptance and use of j9 based
JAVA.
Hope I’m wrong …

More use is occuring in embedded devices and automotive applications.
Less visible than what most folks see on the desktop. Remember that
j9 is not really a J2SE/J2EE equivalent. More effort is being put
into J2ME.


Thanks

Armin



cheers,

Kris
“Andrew Sandstrom” <> andrew_sandstrom@oti.com> > wrote in message
news:> 3c5b0b97.23209803@inn.qnx.com> …
I have no experience with running jython, but if you are just having
trouble with getting j9 to run at all, you can try this:

Depending on how you install j9, you either get just the runtimes (no
class libraries), or you get a directory with /opt/vame (from the QNX
package installer).

depending on where it is installed, you’ll want to look for an
“ive/bin” and “ive/lib” directory structure (eg /opt/vame/ive/bin,
/opt/vame/ive/lib"). Under the ive/lib tree should be a jclMax
directory with classes.zip. If you don’t have this we’lll have to
adress the problem first. If you do have it, then you should be able
to run j9 this way:

  1. You need the ive/bin directory on LD_LIBRARY_PATH and PATH.

  2. Assuming you have your classes in a jar called myjar.jar, run this
    way:

j9 -bp:/ive/lib/jclMax/classes.zip -cp:myjar.jar org.foo.MyClass

(put the real full directory to the jclMax classes.zip).

Hope this helps

-Andrew


On Fri, 1 Feb 2002 11:39:44 -0500, “Kris Warkentin” <> kewarken@qnx.com
wrote:

Continuing my conversation with myself, it doesn’t look like there is an
easy way to get things to run with j9. At least, there is no analogy to
‘java classname’ to just run some arbitrary class. Tricky. Maybe we’d
have
better luck with a pre-extracted jython distribution copied over to an
RTP
box. Then we can figure out things like
“org.jython.foo.SomeStartupClass.main” or whatever weird arguments it
needs
to take.

cheers,

Kris

“Kris Warkentin” <> kewarken@qnx.com> > wrote in message
news:a3c2gc$qu0$> 1@nntp.qnx.com> …
Hey, did you look in the j9 installation directory? They’ve got an
examples
dir with lots of shell scripts that start j9 applications.

cheers,

Kris
“Kris Warkentin” <> kewarken@qnx.com> > wrote in message
news:a3bqq9$lmq$> 1@nntp.qnx.com> …
You might want to go and download the eclipse distribution from
www.eclipse.org> . You’ll find in the ‘library’ directory programs for
launching on various platforms. If you look at eclipsePhoton.c,
you’ll
see
all the wacky arguments that are used to spawn j9. You might wind up
having
to unpack the jython distro on windows first before putting it onto
rtp
though.

cheers,

Kris

“Armin” <a-steinhoff@web_.de> wrote in message
news:3C582600.9020600@web_.de…

Hi,

does someone know how to build a start script which starts jython ?

Regards

Armin




\

On Fri, 1 Feb 2002 19:08:12 -0500, “Kris Warkentin” <kewarken@qnx.com>
wrote:

I wonder why
j9 is such a pain in the butt?

“Ahm, it’s like a new pair of underwear, you know… At first it’s
constrictive, but after a while it becomes a part of you.”

Garth Algar, “Wayne’s World”

Andrew :slight_smile:

Andrew Sandstrom wrote:

On Mon, 04 Feb 2002 12:14:44 +0100, Armin Steinhoff
a-steinhoff@web_.de> wrote:



Kris Warkentin wrote:

Actually, the jython installer just comes as a class file and I guess part
of the problem is knowing exactly what to run it as…when I said
‘org.jython…’ I was just guessing. That’s why I was thinking it might be
easier to extract everything somewhere where you have a normal java
implementation and then copy it over and try to figure it out. I wonder why
j9 is such a pain in the butt?

is the PITA getting J9 running or figuring out how to run jython?

Configuring j9 is my problem … are there any docs?

If
you don’t know what the main class is how can you even run this
anywhere else?

Yes … I have looked at first into the application start scripts and
got the impression
that this stuff has something to do wih crytified black magic > :slight_smile: > … so
I asked
for some hints just to minimze the PITA to get jython running.

What application startup script is this? Is this to start jython on a
different java? Most times, I’ve had success in just replacing “java”
with “j9” and then adding “-bp:/ive/lib/jclMax/classes.zip” to get the
base class libraries in place.

Thanks for the info.

My impression is that there is no broad acceptance and use of j9 based
JAVA.
Hope I’m wrong …

More use is occuring in embedded devices and automotive applications.
Less visible than what most folks see on the desktop. Remember that
j9 is not really a J2SE/J2EE equivalent. More effort is being put
into J2ME.

What’s the the best base to run Harness? (Sun JAVA based cluster
middleware)

j9? Is there a way to use J2ME or J2SE with QNX6.1 ??

Regards

Armin

Andrew Sandstrom wrote:

On Fri, 1 Feb 2002 19:08:12 -0500, “Kris Warkentin” <> kewarken@qnx.com
wrote:

I wonder why
j9 is such a pain in the butt?


“Ahm, it’s like a new pair of underwear, you know… At first it’s
constrictive, but after a while it becomes a part of you.”

Well … and after a while of trying and testing that ‘new pair of
underwear’ we have probably to recognize that j9 has so many
restrictions that it is not useful for the next generation of
distributed embedded control systems … which means we could forget
QNX6.1 and MUST use one of these RT LINUX systems as a test bed together
with SUN JAVA.

BTW … JYTHON is not a desktop application … it is PYTHON written in
pure JAVA. Is all what can’t be used with j9 for you a desktop
application ?

Garth Algar, “Wayne’s World”

Andrew > :slight_smile:

It’s hard to smile if you are standing around wearing only a pair of
underwear :slight_smile:

Armin

Well, I got it running…I didn’t get the installer to work but running the
already extracted stuff worked. Here’s a script:

#!/bin/sh

JYTHONDIR=/export/home/kewarken/jython-2.1

j9 -Dpython.home=$JYTHONDIR -cp:"$JYTHONDIR/jython.jar:$CLASSPATH"
org.python.util.jython $*

I haven’t tried the demos yet but this gives me an interpreter shell.

cheers,

Kris
“Armin Steinhoff” <a-steinhoff@web_.de> wrote in message
news:3C5FDE22.B166D@web_.de…

Andrew Sandstrom wrote:

On Fri, 1 Feb 2002 19:08:12 -0500, “Kris Warkentin” <> kewarken@qnx.com
wrote:

I wonder why
j9 is such a pain in the butt?


“Ahm, it’s like a new pair of underwear, you know… At first it’s
constrictive, but after a while it becomes a part of you.”

Well … and after a while of trying and testing that ‘new pair of
underwear’ we have probably to recognize that j9 has so many
restrictions that it is not useful for the next generation of
distributed embedded control systems … which means we could forget
QNX6.1 and MUST use one of these RT LINUX systems as a test bed together
with SUN JAVA.

BTW … JYTHON is not a desktop application … it is PYTHON written in
pure JAVA. Is all what can’t be used with j9 for you a desktop
application ?

Garth Algar, “Wayne’s World”

Andrew > :slight_smile:

It’s hard to smile if you are standing around wearing only a pair of
underwear > :slight_smile:

Armin

Hi Kris,

that’s great … I will try in the next weeks to get Harness running
( http://www.mathcs.emory.edu/harness/HARNESS/proto.html
http://www.csm.ornl.gov/harness )

Thanks a lot for that good starting point

Regards

Armin


Kris Warkentin wrote:

Well, I got it running…I didn’t get the installer to work but running the
already extracted stuff worked. Here’s a script:

#!/bin/sh

JYTHONDIR=/export/home/kewarken/jython-2.1

j9 -Dpython.home=$JYTHONDIR -cp:"$JYTHONDIR/jython.jar:$CLASSPATH"
org.python.util.jython $*

I haven’t tried the demos yet but this gives me an interpreter shell.

cheers,

Kris
“Armin Steinhoff” <a-steinhoff@web_.de> wrote in message
news:3C5FDE22.B166D@web_.de…


Andrew Sandstrom wrote:

On Fri, 1 Feb 2002 19:08:12 -0500, “Kris Warkentin” <> kewarken@qnx.com
wrote:

I wonder why
j9 is such a pain in the butt?


“Ahm, it’s like a new pair of underwear, you know… At first it’s
constrictive, but after a while it becomes a part of you.”

Well … and after a while of trying and testing that ‘new pair of
underwear’ we have probably to recognize that j9 has so many
restrictions that it is not useful for the next generation of
distributed embedded control systems … which means we could forget
QNX6.1 and MUST use one of these RT LINUX systems as a test bed together
with SUN JAVA.

BTW … JYTHON is not a desktop application … it is PYTHON written in
pure JAVA. Is all what can’t be used with j9 for you a desktop
application ?

Garth Algar, “Wayne’s World”

Andrew > :slight_smile:

It’s hard to smile if you are standing around wearing only a pair of
underwear > :slight_smile:

Armin

Well, I’m not thrilled yet…I can’t seem to get access to java classes from
within jython. Something like ‘import java.awt’ complains about not finding
a java module.

cheers,

Kris
“Armin Steinhoff” <a-steinhoff@web_.de> wrote in message
news:3C604662.D3A88FE4@web_.de…

Hi Kris,

that’s great … I will try in the next weeks to get Harness running
( > http://www.mathcs.emory.edu/harness/HARNESS/proto.html
http://www.csm.ornl.gov/harness > )

Thanks a lot for that good starting point

Regards

Armin


Kris Warkentin wrote:

Well, I got it running…I didn’t get the installer to work but running
the
already extracted stuff worked. Here’s a script:

#!/bin/sh

JYTHONDIR=/export/home/kewarken/jython-2.1

j9 -Dpython.home=$JYTHONDIR -cp:"$JYTHONDIR/jython.jar:$CLASSPATH"
org.python.util.jython $*

I haven’t tried the demos yet but this gives me an interpreter shell.

cheers,

Kris
“Armin Steinhoff” <a-steinhoff@web_.de> wrote in message
news:3C5FDE22.B166D@web_.de…


Andrew Sandstrom wrote:

On Fri, 1 Feb 2002 19:08:12 -0500, “Kris Warkentin”
kewarken@qnx.com
wrote:

I wonder why
j9 is such a pain in the butt?


“Ahm, it’s like a new pair of underwear, you know… At first it’s
constrictive, but after a while it becomes a part of you.”

Well … and after a while of trying and testing that ‘new pair of
underwear’ we have probably to recognize that j9 has so many
restrictions that it is not useful for the next generation of
distributed embedded control systems … which means we could forget
QNX6.1 and MUST use one of these RT LINUX systems as a test bed
together
with SUN JAVA.

BTW … JYTHON is not a desktop application … it is PYTHON written in
pure JAVA. Is all what can’t be used with j9 for you a desktop
application ?

Garth Algar, “Wayne’s World”

Andrew > :slight_smile:

It’s hard to smile if you are standing around wearing only a pair of
underwear > :slight_smile:

Armin

Kris Warkentin wrote:

Well, I’m not thrilled yet…I can’t seem to get access to java classes from
within jython. Something like ‘import java.awt’ complains about not finding
a java module.

Strange … I wonder why AWT is used for a command line interpreter.
What happens if you don’t import this module?

I have tried to use your script without success and see always the
response

java.lang.NoClassDefFoundError: org.python.util.jython a.s.o …

Do you have installed the source tar ball?

However … I will try under LINUX to strip down jython to a version
which doesn’t use AWT.

Thanks

Armin




cheers,

Kris
“Armin Steinhoff” <a-steinhoff@web_.de> wrote in message
news:3C604662.D3A88FE4@web_.de…

Hi Kris,

that’s great … I will try in the next weeks to get Harness running
( > http://www.mathcs.emory.edu/harness/HARNESS/proto.html
http://www.csm.ornl.gov/harness > )

Thanks a lot for that good starting point

Regards

Armin


Kris Warkentin wrote:

Well, I got it running…I didn’t get the installer to work but running
the
already extracted stuff worked. Here’s a script:

#!/bin/sh

JYTHONDIR=/export/home/kewarken/jython-2.1

j9 -Dpython.home=$JYTHONDIR -cp:"$JYTHONDIR/jython.jar:$CLASSPATH"
org.python.util.jython $*

I haven’t tried the demos yet but this gives me an interpreter shell.

cheers,

Kris
“Armin Steinhoff” <a-steinhoff@web_.de> wrote in message
news:3C5FDE22.B166D@web_.de…


Andrew Sandstrom wrote:

On Fri, 1 Feb 2002 19:08:12 -0500, “Kris Warkentin”
kewarken@qnx.com
wrote:

I wonder why
j9 is such a pain in the butt?


“Ahm, it’s like a new pair of underwear, you know… At first it’s
constrictive, but after a while it becomes a part of you.”

Well … and after a while of trying and testing that ‘new pair of
underwear’ we have probably to recognize that j9 has so many
restrictions that it is not useful for the next generation of
distributed embedded control systems … which means we could forget
QNX6.1 and MUST use one of these RT LINUX systems as a test bed
together
with SUN JAVA.

BTW … JYTHON is not a desktop application … it is PYTHON written in
pure JAVA. Is all what can’t be used with j9 for you a desktop
application ?

Garth Algar, “Wayne’s World”

Andrew > :slight_smile:

It’s hard to smile if you are standing around wearing only a pair of
underwear > :slight_smile:

Armin

Actually, just as a straight python interpreter, it seems to work fine.
It’s just pulling in java classes that fails.

The steps I followed were these:

  1. Run the installer on windows box to extract all the stuff to jython-2.1
    directory.
  2. Copy jython-2.1 directory to RTP box.
  3. Setup script in my path with variables pointing to appropriate places.

BTW, the j9 line is only one line - looks like formatting of the message
might have wrapped it. Andrew Sandstrom had mentioned that as long as the
binary for j9 can find …/lib/jclMax/classes.zip (relative to itself), you
don’t need the -bp:/opt/vame/ive/lib/jclMax/classes.zip in the command line.
I’m wondering if we need to set something more in order to get jython to
find the java classes.

cheers,

Kris
“Armin Steinhoff” <a-steinhoff@web_.de> wrote in message
news:3C60F44E.B824CBB6@web_.de…

Kris Warkentin wrote:

Well, I’m not thrilled yet…I can’t seem to get access to java classes
from
within jython. Something like ‘import java.awt’ complains about not
finding
a java module.

Strange … I wonder why AWT is used for a command line interpreter.
What happens if you don’t import this module?

I have tried to use your script without success and see always the
response

java.lang.NoClassDefFoundError: org.python.util.jython a.s.o …

Do you have installed the source tar ball?

However … I will try under LINUX to strip down jython to a version
which doesn’t use AWT.

Thanks

Armin




cheers,

Kris
“Armin Steinhoff” <a-steinhoff@web_.de> wrote in message
news:3C604662.D3A88FE4@web_.de…

Hi Kris,

that’s great … I will try in the next weeks to get Harness running
( > http://www.mathcs.emory.edu/harness/HARNESS/proto.html
http://www.csm.ornl.gov/harness > )

Thanks a lot for that good starting point

Regards

Armin


Kris Warkentin wrote:

Well, I got it running…I didn’t get the installer to work but
running
the
already extracted stuff worked. Here’s a script:

#!/bin/sh

JYTHONDIR=/export/home/kewarken/jython-2.1

j9 -Dpython.home=$JYTHONDIR -cp:"$JYTHONDIR/jython.jar:$CLASSPATH"
org.python.util.jython $*

I haven’t tried the demos yet but this gives me an interpreter
shell.

cheers,

Kris
“Armin Steinhoff” <a-steinhoff@web_.de> wrote in message
news:3C5FDE22.B166D@web_.de…


Andrew Sandstrom wrote:

On Fri, 1 Feb 2002 19:08:12 -0500, “Kris Warkentin”
kewarken@qnx.com
wrote:

I wonder why
j9 is such a pain in the butt?


“Ahm, it’s like a new pair of underwear, you know… At first
it’s
constrictive, but after a while it becomes a part of you.”

Well … and after a while of trying and testing that ‘new pair of
underwear’ we have probably to recognize that j9 has so many
restrictions that it is not useful for the next generation of
distributed embedded control systems … which means we could
forget
QNX6.1 and MUST use one of these RT LINUX systems as a test bed
together
with SUN JAVA.

BTW … JYTHON is not a desktop application … it is PYTHON
written in
pure JAVA. Is all what can’t be used with j9 for you a desktop
application ?

Garth Algar, “Wayne’s World”

Andrew > :slight_smile:

It’s hard to smile if you are standing around wearing only a pair
of
underwear > :slight_smile:

Armin

On Mon, 04 Feb 2002 22:54:08 +0100, Armin Steinhoff
<a-steinhoff@web_.de> wrote:

Configuring j9 is my problem … are there any docs?

Part of the problem with using j9 on QNX is that most of the support
for doing j9 developement (i.e. IDE) is for Win and Linux at the
moment. QNX is treated as a runtime, not as a development platform.

So right now if you play around with j9 on QNX without the complete
install base from Win or Linux you might not see the full complement
of tooling, docs, etc. This is not great for QNX developers, but
unfortunately that’s the way it is right now.

This will be changing with the introduction of Eclipse based QNX
tools, but for now the situation is not ideal.

-Andrew

On Tue, 05 Feb 2002 14:29:06 +0100, Armin Steinhoff
<a-steinhoff@web_.de> wrote:

Well … and after a while of trying and testing that ‘new pair of
underwear’ we have probably to recognize that j9 has so many
restrictions that it is not useful for the next generation of
distributed embedded control systems … which means we could forget
QNX6.1 and MUST use one of these RT LINUX systems as a test bed together
with SUN JAVA.

I’m a bit confused about your comment. What do you mean by
“restrictions”? My original comment meant to convey the fact that j9
has many options for configuring the VM and class libraries. This
means that just typing “j9” at the command prompt like you do with a
typical desktop JDK install with “java” may not work as expected. But
once you figure out the options, getting j9 to run is no so hard.

So I think these “restrictions” would seem to be better for embedded
systems, rather than a big honking wad of J2SE/J2EE.

BTW … JYTHON is not a desktop application … it is PYTHON written in
pure JAVA. Is all what can’t be used with j9 for you a desktop
application ?

I’m confused again. I don’t think I ever implied that jython was or
was not a desktop application. I checked out jython.org and it looks
like they set their install up assuming a typical desktop JRE. (plus a
couple of others runtimes like blackdown). There would be nothing
preventing them from adding an install section for J9 and giving you
correctly configured scripts.

Garth Algar, “Wayne’s World”

Andrew > :slight_smile:

It’s hard to smile if you are standing around wearing only a pair of
underwear > :slight_smile:

I never said I was only wearing underwear :wink:

-Andrew

I’m not familiar with jython yet (waiting on our software police to
give me approval to download).

However, if it is looking for awt classes,try looking for file
ive/lib/jclMax/prsnlnto.jar. If you don’t have this, you can try
downloading the “Personal Configuration” technology from
www.embedded.oti.com. Follow the install instructions for unzipping
over an existing j9 release.

When you run, use a command line like this

j9 -bp:/ive/lib/jclMax/classes.zip:/ive/lib/jclMax/prsnlnto.jar …

(the trick about finding jclMax/classes.zip by default will not work
once you have to add the awt implementation to the bootclasspath.

It does seem odd that they want awt classes. I heard from a colleague
that it might be doing dynamic class creation. That could be
inserting an interesting twist.

-Andrew


On Wed, 6 Feb 2002 10:41:07 -0500, “Kris Warkentin” <kewarken@qnx.com>
wrote:

Actually, just as a straight python interpreter, it seems to work fine.
It’s just pulling in java classes that fails.

The steps I followed were these:

  1. Run the installer on windows box to extract all the stuff to jython-2.1
    directory.
  2. Copy jython-2.1 directory to RTP box.
  3. Setup script in my path with variables pointing to appropriate places.

BTW, the j9 line is only one line - looks like formatting of the message
might have wrapped it. Andrew Sandstrom had mentioned that as long as the
binary for j9 can find …/lib/jclMax/classes.zip (relative to itself), you
don’t need the -bp:/opt/vame/ive/lib/jclMax/classes.zip in the command line.
I’m wondering if we need to set something more in order to get jython to
find the java classes.

cheers,

Kris
“Armin Steinhoff” <a-steinhoff@web_.de> wrote in message
news:3C60F44E.B824CBB6@web_.de…


Kris Warkentin wrote:

Well, I’m not thrilled yet…I can’t seem to get access to java classes
from
within jython. Something like ‘import java.awt’ complains about not
finding
a java module.

Strange … I wonder why AWT is used for a command line interpreter.
What happens if you don’t import this module?

I have tried to use your script without success and see always the
response

java.lang.NoClassDefFoundError: org.python.util.jython a.s.o …

Do you have installed the source tar ball?

However … I will try under LINUX to strip down jython to a version
which doesn’t use AWT.

Thanks

Armin




cheers,

Kris
“Armin Steinhoff” <a-steinhoff@web_.de> wrote in message
news:3C604662.D3A88FE4@web_.de…

Hi Kris,

that’s great … I will try in the next weeks to get Harness running
( > http://www.mathcs.emory.edu/harness/HARNESS/proto.html
http://www.csm.ornl.gov/harness > )

Thanks a lot for that good starting point

Regards

Armin


Kris Warkentin wrote:

Well, I got it running…I didn’t get the installer to work but
running
the
already extracted stuff worked. Here’s a script:

#!/bin/sh

JYTHONDIR=/export/home/kewarken/jython-2.1

j9 -Dpython.home=$JYTHONDIR -cp:"$JYTHONDIR/jython.jar:$CLASSPATH"
org.python.util.jython $*

I haven’t tried the demos yet but this gives me an interpreter
shell.

cheers,

Kris
“Armin Steinhoff” <a-steinhoff@web_.de> wrote in message
news:3C5FDE22.B166D@web_.de…


Andrew Sandstrom wrote:

On Fri, 1 Feb 2002 19:08:12 -0500, “Kris Warkentin”
kewarken@qnx.com
wrote:

I wonder why
j9 is such a pain in the butt?


“Ahm, it’s like a new pair of underwear, you know… At first
it’s
constrictive, but after a while it becomes a part of you.”

Well … and after a while of trying and testing that ‘new pair of
underwear’ we have probably to recognize that j9 has so many
restrictions that it is not useful for the next generation of
distributed embedded control systems … which means we could
forget
QNX6.1 and MUST use one of these RT LINUX systems as a test bed
together
with SUN JAVA.

BTW … JYTHON is not a desktop application … it is PYTHON
written in
pure JAVA. Is all what can’t be used with j9 for you a desktop
application ?

Garth Algar, “Wayne’s World”

Andrew > :slight_smile:

It’s hard to smile if you are standing around wearing only a pair
of
underwear > :slight_smile:

Armin