Failing to get Visual Age Java to work

I have followed the instruction (I think)

When voyager comes up against so java, it produces a greyed out box for
the applet to run in but then fails to run it.

It fails to find libj9vm14.so , there isn’t one on my system nor in the
visual age tar.gz

Has anyone else had this happen and found a solution?

I could really do with some help

Tommy

Is this a 1.4 install from the embedded.oti.com site? Since it looks
like a 1.4 .so you’re having problems with I assume so.

Do you have the directory with the j9 .so files in LD_LIBRARY_PATH? If
you installed into /vame1.4, for example, then /vame1.4/ive/bin should
be in your PATH and LD_LIBRARY_PATH.

If that doesn’t work, what does the J9PLUGIN_ARGS environment variable
look like?

-Andrew


On Tue, 28 Aug 2001 09:28:28 -0400, Tom Holmes <tholmes@speakeasy.org>
wrote:

I have followed the instruction (I think)

When voyager comes up against so java, it produces a greyed out box for
the applet to run in but then fails to run it.

It fails to find libj9vm14.so , there isn’t one on my system nor in the
visual age tar.gz

Has anyone else had this happen and found a solution?

I could really do with some help

Tommy

Andrew Sandstrom wrote:

Is this a 1.4 install from the embedded.oti.com site? Since it looks
like a 1.4 .so you’re having problems with I assume so.

Do you have the directory with the j9 .so files in LD_LIBRARY_PATH? If
you installed into /vame1.4, for example, then /vame1.4/ive/bin should
be in your PATH and LD_LIBRARY_PATH.

If that doesn’t work, what does the J9PLUGIN_ARGS environment variable
look like?

Well yes it is 1.4

I installed it to /ive/bin

my PATH is
PATH=/bin:/usr/bin:/usr/photon/bin:/usr/photon/appbuilder:/usr/X11R6/bin:/usr/local/bin:/opt/bin:/ive/bin

LD_LIBRARY_PATH=/proc/boot:/lib:/usr/lib:/lib/dll:/usr/photon/lib:/usr/photon/dll:/usr/X11R6/lib:/usr/local/lib:/ive/bin

Now I have to own up to ignourance on the J9PLUGIN_ARGS so I exported it
like this…this may be the problem, I am sorry if it is but well its
what I did.

J9PLUGINS_ARGS=-Djava.home=/ive
-bp:/ive/lib/jclMax/classes.zip:/ive/lib/jclMax/prsnlnto.jar:/ive/lib/j9plugin.jar:

Finally my other gaff is the libj9vm14.so etc files, they are now in
/ive/bin too, mainly because after getting that error I tried to move
them one at a time and found that the complaint went away when I moved
them there…totaly reversable, but as I am in the owning up to doing
silly things I thought I might as well throw that one in.

Is there any hope?

Tommy

All of the .so files should be in the /ive/bin directory, so having
them there is correct. I’m guessing that it is still not working?
Can you try some things?

1- at a prompt, just type “j9”. Does help print out?

2 - try the following:

j9 -bp:/ive/lib/jclMax/classes.zip:/ive/lib/jclMax/prsnlnto.jar
com.ibm.oti.appletviewer.AppletViewer

Some “usage” help should print out. You can try entering the url of an
applet and see if appletviewer actually runs.

3 - Assuming that works your installation looks OK. Since you get a
grey box I’m guessing you changed the /usr/photon/plugin/config file
to add the applet plugin. Start syslogd and run voyager from a
terminal window. Try an applet and see if anything gets printed in
either place that might shed some light. I usually run with syslog
going to the same tty I’m running voyager from so I can see all
messages at once.

-Andrew


On Tue, 28 Aug 2001 22:53:39 -0400, Tom Holmes <tholmes@speakeasy.org>
wrote:

Andrew Sandstrom wrote:

Is this a 1.4 install from the embedded.oti.com site? Since it looks
like a 1.4 .so you’re having problems with I assume so.

Do you have the directory with the j9 .so files in LD_LIBRARY_PATH? If
you installed into /vame1.4, for example, then /vame1.4/ive/bin should
be in your PATH and LD_LIBRARY_PATH.

If that doesn’t work, what does the J9PLUGIN_ARGS environment variable
look like?

Well yes it is 1.4

I installed it to /ive/bin

my PATH is
PATH=/bin:/usr/bin:/usr/photon/bin:/usr/photon/appbuilder:/usr/X11R6/bin:/usr/local/bin:/opt/bin:/ive/bin

LD_LIBRARY_PATH=/proc/boot:/lib:/usr/lib:/lib/dll:/usr/photon/lib:/usr/photon/dll:/usr/X11R6/lib:/usr/local/lib:/ive/bin

Now I have to own up to ignourance on the J9PLUGIN_ARGS so I exported it
like this…this may be the problem, I am sorry if it is but well its
what I did.

J9PLUGINS_ARGS=-Djava.home=/ive
-bp:/ive/lib/jclMax/classes.zip:/ive/lib/jclMax/prsnlnto.jar:/ive/lib/j9plugin.jar:

Finally my other gaff is the libj9vm14.so etc files, they are now in
/ive/bin too, mainly because after getting that error I tried to move
them one at a time and found that the complaint went away when I moved
them there…totaly reversable, but as I am in the owning up to doing
silly things I thought I might as well throw that one in.

Is there any hope?

Tommy

OK might be getting somewhere, I kept discovering missing
files…remember I was following the instructions for 1.2

so what tar.gz did you use

I used tech-personal-configuration-1.4.tar.gz

But I have a feeling now I should have used run-x86-qnx-1.4.tar.gz

TIA

Tommy

Andrew Sandstrom wrote:

All of the .so files should be in the /ive/bin directory, so having
them there is correct. I’m guessing that it is still not working?
Can you try some things?

1- at a prompt, just type “j9”. Does help print out?

2 - try the following:

j9 -bp:/ive/lib/jclMax/classes.zip:/ive/lib/jclMax/prsnlnto.jar
com.ibm.oti.appletviewer.AppletViewer

Some “usage” help should print out. You can try entering the url of an
applet and see if appletviewer actually runs.

3 - Assuming that works your installation looks OK. Since you get a
grey box I’m guessing you changed the /usr/photon/plugin/config file
to add the applet plugin. Start syslogd and run voyager from a
terminal window. Try an applet and see if anything gets printed in
either place that might shed some light. I usually run with syslog
going to the same tty I’m running voyager from so I can see all
messages at once.

-Andrew

On Tue, 28 Aug 2001 22:53:39 -0400, Tom Holmes <> tholmes@speakeasy.org
wrote:

Andrew Sandstrom wrote:

Is this a 1.4 install from the embedded.oti.com site? Since it looks
like a 1.4 .so you’re having problems with I assume so.

Do you have the directory with the j9 .so files in LD_LIBRARY_PATH? If
you installed into /vame1.4, for example, then /vame1.4/ive/bin should
be in your PATH and LD_LIBRARY_PATH.

If that doesn’t work, what does the J9PLUGIN_ARGS environment variable
look like?

Well yes it is 1.4

I installed it to /ive/bin

my PATH is
PATH=/bin:/usr/bin:/usr/photon/bin:/usr/photon/appbuilder:/usr/X11R6/bin:/usr/local/bin:/opt/bin:/ive/bin

LD_LIBRARY_PATH=/proc/boot:/lib:/usr/lib:/lib/dll:/usr/photon/lib:/usr/photon/dll:/usr/X11R6/lib:/usr/local/lib:/ive/bin

Now I have to own up to ignourance on the J9PLUGIN_ARGS so I exported it
like this…this may be the problem, I am sorry if it is but well its
what I did.

J9PLUGINS_ARGS=-Djava.home=/ive
-bp:/ive/lib/jclMax/classes.zip:/ive/lib/jclMax/prsnlnto.jar:/ive/lib/j9plugin.jar:

Finally my other gaff is the libj9vm14.so etc files, they are now in
/ive/bin too, mainly because after getting that error I tried to move
them one at a time and found that the complaint went away when I moved
them there…totaly reversable, but as I am in the owning up to doing
silly things I thought I might as well throw that one in.

Is there any hope?

Tommy

That might explain it. Releases of the Personal Configuration prior
to 1.4 had the VM and class libraries included. For 1.4, the
tech-personal-configuration-1.4.tar.gz only includes the files for
Personal Configuration, not the whole VM.

In addition to the above tar, you’ll need
ive-x86-qnx-common-1.4.tar.gz (has base J9 VM) and
ive-x86-qnx-custom-1.4.tar.gz (way more than you need, but has
jclMax/classes.zip, needed for personal configuration.

These two files are in run-x86-qnx-1.4.tar.gz. You’ll need to make
sure all three unzip in the same root location to give you the
correct /ive/* directory structure for everything.

Sorry for the confusion. For J2ME certification in the 1.4 release, a
lot of files in the install had to get shuffled around.

-Andrew




On Thu, 30 Aug 2001 08:26:29 -0400, Tom Holmes <tholmes@speakeasy.org>
wrote:

OK might be getting somewhere, I kept discovering missing
files…remember I was following the instructions for 1.2

so what tar.gz did you use

I used tech-personal-configuration-1.4.tar.gz

But I have a feeling now I should have used run-x86-qnx-1.4.tar.gz

TIA

Tommy

Andrew Sandstrom wrote:

All of the .so files should be in the /ive/bin directory, so having
them there is correct. I’m guessing that it is still not working?
Can you try some things?

1- at a prompt, just type “j9”. Does help print out?

2 - try the following:

j9 -bp:/ive/lib/jclMax/classes.zip:/ive/lib/jclMax/prsnlnto.jar
com.ibm.oti.appletviewer.AppletViewer

Some “usage” help should print out. You can try entering the url of an
applet and see if appletviewer actually runs.

3 - Assuming that works your installation looks OK. Since you get a
grey box I’m guessing you changed the /usr/photon/plugin/config file
to add the applet plugin. Start syslogd and run voyager from a
terminal window. Try an applet and see if anything gets printed in
either place that might shed some light. I usually run with syslog
going to the same tty I’m running voyager from so I can see all
messages at once.

-Andrew

On Tue, 28 Aug 2001 22:53:39 -0400, Tom Holmes <> tholmes@speakeasy.org
wrote:

Andrew Sandstrom wrote:

Is this a 1.4 install from the embedded.oti.com site? Since it looks
like a 1.4 .so you’re having problems with I assume so.

Do you have the directory with the j9 .so files in LD_LIBRARY_PATH? If
you installed into /vame1.4, for example, then /vame1.4/ive/bin should
be in your PATH and LD_LIBRARY_PATH.

If that doesn’t work, what does the J9PLUGIN_ARGS environment variable
look like?

Well yes it is 1.4

I installed it to /ive/bin

my PATH is
PATH=/bin:/usr/bin:/usr/photon/bin:/usr/photon/appbuilder:/usr/X11R6/bin:/usr/local/bin:/opt/bin:/ive/bin

LD_LIBRARY_PATH=/proc/boot:/lib:/usr/lib:/lib/dll:/usr/photon/lib:/usr/photon/dll:/usr/X11R6/lib:/usr/local/lib:/ive/bin

Now I have to own up to ignourance on the J9PLUGIN_ARGS so I exported it
like this…this may be the problem, I am sorry if it is but well its
what I did.

J9PLUGINS_ARGS=-Djava.home=/ive
-bp:/ive/lib/jclMax/classes.zip:/ive/lib/jclMax/prsnlnto.jar:/ive/lib/j9plugin.jar:

Finally my other gaff is the libj9vm14.so etc files, they are now in
/ive/bin too, mainly because after getting that error I tried to move
them one at a time and found that the complaint went away when I moved
them there…totaly reversable, but as I am in the owning up to doing
silly things I thought I might as well throw that one in.

Is there any hope?

Tommy

Thanks I think it might be time to start from scratch, should get time
this afternoon

Simple adding in classes.zip didn’t help so I will do it all over

Tom

Andrew Sandstrom wrote:

That might explain it. Releases of the Personal Configuration prior
to 1.4 had the VM and class libraries included. For 1.4, the
tech-personal-configuration-1.4.tar.gz only includes the files for
Personal Configuration, not the whole VM.

In addition to the above tar, you’ll need
ive-x86-qnx-common-1.4.tar.gz (has base J9 VM) and
ive-x86-qnx-custom-1.4.tar.gz (way more than you need, but has
jclMax/classes.zip, needed for personal configuration.

These two files are in run-x86-qnx-1.4.tar.gz. You’ll need to make
sure all three unzip in the same root location to give you the
correct /ive/* directory structure for everything.

Sorry for the confusion. For J2ME certification in the 1.4 release, a
lot of files in the install had to get shuffled around.

-Andrew

On Thu, 30 Aug 2001 08:26:29 -0400, Tom Holmes <> tholmes@speakeasy.org
wrote:

OK might be getting somewhere, I kept discovering missing
files…remember I was following the instructions for 1.2

so what tar.gz did you use

I used tech-personal-configuration-1.4.tar.gz

But I have a feeling now I should have used run-x86-qnx-1.4.tar.gz

TIA

Tommy

Andrew Sandstrom wrote:

All of the .so files should be in the /ive/bin directory, so having
them there is correct. I’m guessing that it is still not working?
Can you try some things?

1- at a prompt, just type “j9”. Does help print out?

2 - try the following:

j9 -bp:/ive/lib/jclMax/classes.zip:/ive/lib/jclMax/prsnlnto.jar
com.ibm.oti.appletviewer.AppletViewer

Some “usage” help should print out. You can try entering the url of an
applet and see if appletviewer actually runs.

3 - Assuming that works your installation looks OK. Since you get a
grey box I’m guessing you changed the /usr/photon/plugin/config file
to add the applet plugin. Start syslogd and run voyager from a
terminal window. Try an applet and see if anything gets printed in
either place that might shed some light. I usually run with syslog
going to the same tty I’m running voyager from so I can see all
messages at once.

-Andrew

On Tue, 28 Aug 2001 22:53:39 -0400, Tom Holmes <> tholmes@speakeasy.org
wrote:

Andrew Sandstrom wrote:

Is this a 1.4 install from the embedded.oti.com site? Since it looks
like a 1.4 .so you’re having problems with I assume so.

Do you have the directory with the j9 .so files in LD_LIBRARY_PATH? If
you installed into /vame1.4, for example, then /vame1.4/ive/bin should
be in your PATH and LD_LIBRARY_PATH.

If that doesn’t work, what does the J9PLUGIN_ARGS environment variable
look like?

Well yes it is 1.4

I installed it to /ive/bin

my PATH is
PATH=/bin:/usr/bin:/usr/photon/bin:/usr/photon/appbuilder:/usr/X11R6/bin:/usr/local/bin:/opt/bin:/ive/bin

LD_LIBRARY_PATH=/proc/boot:/lib:/usr/lib:/lib/dll:/usr/photon/lib:/usr/photon/dll:/usr/X11R6/lib:/usr/local/lib:/ive/bin

Now I have to own up to ignourance on the J9PLUGIN_ARGS so I exported it
like this…this may be the problem, I am sorry if it is but well its
what I did.

J9PLUGINS_ARGS=-Djava.home=/ive
-bp:/ive/lib/jclMax/classes.zip:/ive/lib/jclMax/prsnlnto.jar:/ive/lib/j9plugin.jar:

Finally my other gaff is the libj9vm14.so etc files, they are now in
/ive/bin too, mainly because after getting that error I tried to move
them one at a time and found that the complaint went away when I moved
them there…totaly reversable, but as I am in the owning up to doing
silly things I thought I might as well throw that one in.

Is there any hope?

Tommy

Oh dear still no joy, although closer.

I started again, used the tar.gz you said and if I run the examples like
blackjack.sh they work just fine but when I try to do it in voyager of
from command line like this for eg. I get this…


$ j9 -bp:/ive/lib/jclMax/classes.zip:/ive/lib/jclMax/prsnlnto.jar
com.ibm.oti.ap
pletviewer.AppletViewer
java.lang.NoClassDefFoundError: com.ibm.oti.appletviewer.AppletViewer

Stack trace:
java/lang/Throwable.()V
java/lang/Throwable.(Ljava/lang/String;)V
java/lang/NoClassDefFoundError.(Ljava/lang/String;)V

And boy is ive-x86-qnx-custom-1.4.tar.gz on huge file…I thought it was
in some sort of decompressing loop, so I gunzip and then untared it. Its
fine is all in there.

Any ideas what I have missed out on this time?

Tom

Tom Holmes <tholmes@speakeasy.org> wrote:
: Oh dear still no joy, although closer.

: I started again, used the tar.gz you said and if I run the examples like
: blackjack.sh they work just fine but when I try to do it in voyager of
: from command line like this for eg. I get this…


: $ j9 -bp:/ive/lib/jclMax/classes.zip:/ive/lib/jclMax/prsnlnto.jar
: com.ibm.oti.ap
: pletviewer.AppletViewer
: java.lang.NoClassDefFoundError: com.ibm.oti.appletviewer.AppletViewer

: Stack trace:
: java/lang/Throwable.()V
: java/lang/Throwable.(Ljava/lang/String;)V
: java/lang/NoClassDefFoundError.(Ljava/lang/String;)V

: And boy is ive-x86-qnx-custom-1.4.tar.gz on huge file…I thought it was
: in some sort of decompressing loop, so I gunzip and then untared it. Its
: fine is all in there.

: Any ideas what I have missed out on this time?

Strange.

Do you have the file:
/ive/lib/jclMax/prsnlnto.jar

And if you do, is it readable by you?

meaning if you do

ls -l /ive/lib/jclMax

what’s the files mode on this directory.

Oh dear back again

First the good news…

$ j9 -bp:/ive/lib/jclMax/classes.zip:/ive/lib/jclMax/prsnlnto.jar
com.ibm.oti.ap
pletviewer.AppletViewer http://www.nexwarecorp.com/wilson/Hello.html

OK alittle bit further…the applets now run from the command line, you
were right about the
permissions on /ive/lib/jclMax/prsnlnto.jar

they where root:root rwx I changed them to root:root rwxrwxr_x

I also went to /ive and did chown -R root:root and chmod -R o+rx just
for good measure
Obviously the group as root probably isn’t great but there others
permissions seem to work.

However still only grey boxiness in voyager so to recap…

in /etc/profile I added

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib:/ive/bin
export IVEHOME=/ive
export J9PLUGINS_ARGS="-Djava.home=$IVEHOME
-bp:$IVEHOME/lib/jclMax/classes.zip:
$IVEHOME/lib/jclMax/prsnlnto.jar:$IVEHOME/lib/j9plugin.jar:"

Please tell me if anything looks odd in there, the J9PLUGINS_ARG was a
stab in the dark.

In /usr/photon/plugins/config

[J9 Applet Plugin]
Executable = /ive/bin/j9plugin
Vendor = IBM Corporation
Copyright = IBM Corporation
Description = Applet Plugin Support for IBM J9 Java VM
Major Version = 1
Minor Version = 0
Fix Version = 0
Build Version = 1
MIME Description = Applets
MIME Types = application/x-java-applet
File Extents =
File Names =

My env

PATH=/bin:/usr/bin:/usr/photon/bin:/usr/photon/appbuilder:/usr/X11R6/bin:/usr/lo
cal/bin:/opt/bin:/ive/bin
LD_LIBRARY_PATH=/proc/boot:/lib:/usr/lib:/lib/dll:/usr/photon/lib:/usr/photon/dl
l:/usr/X11R6/lib:/usr/local/lib:/ive/bin
IVEHOME=/ive
J9PLUGINS_ARGS=-Djava.home=/ive
-bp:/ive/lib/jclMax/classes.zip:/ive/lib/jclMax/
prsnlnto.jar:/ive/lib/j9plugin.jar:

Now when I run voyager from the shelf greybox, and when I run it from a
term still greybox and sadly it doesn’t spilt out any errors either.

I feel close, and would very much like to get the wrapper off the cigar,
I am sure most of my hassles are down to my own stupidity so thanks for
the time you are spending on this.

Tommy

It just jumped out at me. You have J9PLUGINS_ARGS, it should be
J9PLUGIN_ARGS (note the extra “S”). I was looking too closely at the
right side of the variable, and not the name of the variable itself.

This should show up in syslog. The plugin itself dumps diagnostics to
syslog, so that might explain why there was no console output.

I’m curious as to why you were taking a “stab in the dark” about the
plugin args. The readme.txt that comes with the personal
configuration download describes how to set this variable. It isn’t in
that acutal ive-x86-qnx-personal-1.4.tar.gz, but in the download that
contains this, so that might be the source of confusion.

I’m sorry I didn’t catch this typo sooner and spare you some grief.


-Andrew



On Fri, 31 Aug 2001 12:22:59 -0400, Tom Holmes <tholmes@speakeasy.org>
wrote:

Oh dear back again

First the good news…

$ j9 -bp:/ive/lib/jclMax/classes.zip:/ive/lib/jclMax/prsnlnto.jar
com.ibm.oti.ap
pletviewer.AppletViewer > http://www.nexwarecorp.com/wilson/Hello.html

OK alittle bit further…the applets now run from the command line, you
were right about the
permissions on /ive/lib/jclMax/prsnlnto.jar

they where root:root rwx I changed them to root:root rwxrwxr_x

I also went to /ive and did chown -R root:root and chmod -R o+rx just
for good measure
Obviously the group as root probably isn’t great but there others
permissions seem to work.

However still only grey boxiness in voyager so to recap…

in /etc/profile I added

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib:/ive/bin
export IVEHOME=/ive
export J9PLUGINS_ARGS="-Djava.home=$IVEHOME
-bp:$IVEHOME/lib/jclMax/classes.zip:
$IVEHOME/lib/jclMax/prsnlnto.jar:$IVEHOME/lib/j9plugin.jar:"

Please tell me if anything looks odd in there, the J9PLUGINS_ARG was a
stab in the dark.

In /usr/photon/plugins/config

[J9 Applet Plugin]
Executable = /ive/bin/j9plugin
Vendor = IBM Corporation
Copyright = IBM Corporation
Description = Applet Plugin Support for IBM J9 Java VM
Major Version = 1
Minor Version = 0
Fix Version = 0
Build Version = 1
MIME Description = Applets
MIME Types = application/x-java-applet
File Extents =
File Names =

My env

PATH=/bin:/usr/bin:/usr/photon/bin:/usr/photon/appbuilder:/usr/X11R6/bin:/usr/lo
cal/bin:/opt/bin:/ive/bin
LD_LIBRARY_PATH=/proc/boot:/lib:/usr/lib:/lib/dll:/usr/photon/lib:/usr/photon/dl
l:/usr/X11R6/lib:/usr/local/lib:/ive/bin
IVEHOME=/ive
J9PLUGINS_ARGS=-Djava.home=/ive
-bp:/ive/lib/jclMax/classes.zip:/ive/lib/jclMax/
prsnlnto.jar:/ive/lib/j9plugin.jar:

Now when I run voyager from the shelf greybox, and when I run it from a
term still greybox and sadly it doesn’t spilt out any errors either.

I feel close, and would very much like to get the wrapper off the cigar,
I am sure most of my hassles are down to my own stupidity so thanks for
the time you are spending on this.

Tommy

On Fri, 31 Aug 2001 08:43:25 -0400, Tom Holmes <tholmes@speakeasy.org>
wrote:

And boy is ive-x86-qnx-custom-1.4.tar.gz on huge file…I thought it was
in some sort of decompressing loop, so I gunzip and then untared it. Its
fine is all in there.

It is all of the javadoc for each version of the JCL runtime libraries
(max, core gateway, realtime and extreme), i.e. there are 5 different
javadocs in the tar, and it is all unzipped. So you have over 2400
files, and only a handful of files that are actually useful on the
target.

-Andrew

Andrew

I’m sorry I didn’t catch this typo sooner and spare you some grief.

You have nothing to be sorry about at all, you have been very very
helpful.

Tom

As a final note, its all working fine now thanks :astonished:)

Tom

Tom Holmes wrote:

Andrew

I’m sorry I didn’t catch this typo sooner and spare you some grief.

You have nothing to be sorry about at all, you have been very very
helpful.

Tom