OESF Portables Forum

Everything Else => Zaurus Distro Support and Discussion => Distros, Development, and Model Specific Forums => Archived Forums => Angstrom & OpenZaurus => Topic started by: Mongoosefred on March 14, 2005, 03:26:38 pm

Title: Can't Get Java Working On Oz3.5.2 After Reflash
Post by: Mongoosefred on March 14, 2005, 03:26:38 pm
Hi ya,
Until sunday I had a perfectly working SL-5500 with OZ3.5.2 (Hentges), and had Java installed and working having followed Greg2's instructions in this thread:
Java For Oz 3.5.2 (https://www.oesf.org/forums/index.php?showtopic=9597&hl=jeode)

All was working great, then the PIM apps all failed.  So I copied all the data I wanted to keep and reflashed the rom using the original files I had used earlier.
Got Opera working, then tried Jeode (having written down what I did for Opera, but not Jeode...    )

So I tried a combination of the instructions from the thread and what I had done for Opera.  What I did was:
Code: [Select]
ipkg -dest sd --force-depends install jeode-for-oz3_0.4_arm.ipk
ipkg-link add jeode-for-oz3
Settings->Libraries->files->/mnt/card/opt/QtPalmtop/bin/evm
Reload Icons

When I try to run the apps in the Jeode tab, I get the evm splash screen then it comes back that it can't find runprimtest.
If I run it from the command line, I get a java.lang.NoclassDefFoundError mentioning  the java/awt/canvas class.
I set the CLASSPATH variable to the core.jar and awt.jar (which I can't remember doing last time) but still no luck.

Trouble is, I am wanting to do some install tests on a RSS feed agrigator I'm writing in Java and it's a little difficult to test the install....  
(jvMiniRSS version 0.2 will be out for download at xLevel.org.uk (http://www.xlevel.org.uk) when I get this working...  small plug)

Help will be VERY greatfully recieved....
-Jim.
Title: Can't Get Java Working On Oz3.5.2 After Reflash
Post by: Greg2 on March 14, 2005, 07:24:32 pm
Quote
So I tried a combination of the instructions from the thread and what I had done for Opera.  What I did was:
Code: [Select]
ipkg -dest sd --force-depends install jeode-for-oz3_0.4_arm.ipk
ipkg-link add jeode-for-oz3
Settings->Libraries->files->/mnt/card/opt/QtPalmtop/bin/evm
Reload Icons
When I try to run the apps in the Jeode tab, I get the evm splash screen then it comes back that it can't find runprimtest.
If I run it from the command line, I get a java.lang.NoclassDefFoundError mentioning  the java/awt/canvas class.
It appears that you need to do:

#ipkg-link mount /mnt/card

in order to find and add the demos on your SD-card... and if that still doesn't work you may have to symlink them like:

#ln -s /mnt/card/opt/QtPalmtop/bin/runprimtest /opt/QtPalmtop/bin/runprimtest

and the same for whatever else you have problems with

Greg
Title: Can't Get Java Working On Oz3.5.2 After Reflash
Post by: Mongoosefred on March 15, 2005, 12:30:28 pm
Quote
#ipkg-link mount /mnt/card

Cool... thats the bit I needed...  
This time I tried :

Code: [Select]
ipkg -dest sd --force-depends install jeode-for-oz3_0.4_arm.ipk
ipkg-link mount /mnt/card
Settings->Libraries->files->/mnt/card/opt/QtPalmtop/bin/evm
Reload Icons

Worked great and found a number of apps I had forgotten I had installed and had not shown up.  Now I got to figure out how to get ride of the seconf Joede tab...  but that's a small issue.
Thanks....
Jim
Title: Can't Get Java Working On Oz3.5.2 After Reflash
Post by: Greg2 on March 15, 2005, 05:15:25 pm
Quote
Now I got to figure out how to get ride of the seconf Joede tab...  but that's a small issue.

Install the opie-tabmanager.ipk and use it.  

Greg
Title: Can't Get Java Working On Oz3.5.2 After Reflash
Post by: arathrael on March 17, 2005, 09:08:35 pm
Quote
Code: [Select]
ipkg -dest sd --force-depends install jeode-for-oz3_0.4_arm.ipk
ipkg-link mount /mnt/card
Settings->Libraries->files->/mnt/card/opt/QtPalmtop/bin/evm
Reload Icons

I was having the same problem, and just tried the above immediately after flashing (also with an SL5500 with Hentges OZ3.5.2). But it doesn't work for me.

I still get the same error Mongoosefred was originally having - i.e. if I run runprimtest from the icon, the evm splash screen pops up and then the error 'can't find application runprimtest', and if I run runprimtest from the console, I get the java.lang.NoClassDefFoundError: java/awt/canvas error.

Everything seems to be ok, links exist in /opt/QtPalmtop/bin/ as they should, etc.

Help?
Title: Can't Get Java Working On Oz3.5.2 After Reflash
Post by: Greg2 on March 18, 2005, 08:41:15 am
Quote
I still get the same error Mongoosefred was originally having - i.e. if I run runprimtest from the icon, the evm splash screen pops up and then the error 'can't find application runprimtest', and if I run runprimtest from the console, I get the java.lang.NoClassDefFoundError: java/awt/canvas error.
Have you symlinked it as shown in my post in this thread? For some reason (unknown to me) this must also be done 'sometimes' after using ipkg-link.
If not, use this at terminal:
Code: [Select]
ln -s /mnt/card/opt/QtPalmtop/bin/runprimtest /opt/QtPalmtop/bin/runprimtest
ln -s /mnt/card/opt/QtPalmtop/bin/runquasar /opt/QtPalmtop/bin/runquasar

Greg
Title: Can't Get Java Working On Oz3.5.2 After Reflash
Post by: arathrael on March 18, 2005, 10:36:30 am
Quote
Have you symlinked it as shown in my post in this thread? For some reason (unknown to me) this must also be done 'sometimes' after using ipkg-link.
Yep, the links are there. If I run ln -s, I get 'File exists' as you'd expect.

I've actually managed to get it working now, but I'm still puzzled as to why the problem appeared in the first place.

I tried copying and editing runprimtest to manually specify the classpath to awt.jar and core.jar - didn't work. I then added the -v flag to the evm call, and the problem appeared - it was looking for awt.jar and core.jar in /opt/QtPalmtop.compat/lib where they didn't exist. So I ran

Code: [Select]
ln -s /mnt/card/opt/QtPalmtop/lib/*.jar /opt/QtPalmtop.compat/lib/
After that, it found the libraries, but not 'libevmawt.so'. Similarly to the jar files, it was looking under /opt/QtPalmtop.compat/ for it. Running

Code: [Select]
ln -s /mnt/card/opt/QtPalmtop/bin/libevmawt.so /opt/QtPalmtop.compat/bin/
fixed that problem, and both the jeode demos now run fine.

I can't help thinking though, that there must be something I'm missing to have this problem in the first place. Any ideas?
Title: Can't Get Java Working On Oz3.5.2 After Reflash
Post by: Greg2 on March 18, 2005, 11:02:53 am
Quote
I can't help thinking though, that there must be something I'm missing to have this problem in the first place. Any ideas?
No, I haven't any new ideas and I can't see where you missed anything. I've had to symlink jar files for 'other' java apps... but never that jeode-for-oz3_0.4_arm.ipk. Strange, but at least it works now.

Greg