OESF Portables Forum

Model Specific Forums => Sharp Zaurus => Zaurus - pdaXrom => Topic started by: daniel3000 on November 13, 2006, 05:05:36 pm

Title: Java In Pdaxrom
Post by: daniel3000 on November 13, 2006, 05:05:36 pm
Hello,

what is currently the best way to install a Java runtime in pdaXrom 1.1.0beta3? Should be stable and as compatible as possible.
Just to execute some Java programs. No development needed (yet).

Thanks

Daniel
Title: Java In Pdaxrom
Post by: ULhume on November 13, 2006, 05:15:58 pm
Quote
Hello,

what is currently the best way to install a Java runtime in pdaXrom 1.1.0beta3? Should be stable and as compatible as possible.
Just to execute some Java programs. No development needed (yet).

Thanks

Daniel
[div align=\"right\"][a href=\"index.php?act=findpost&pid=146205\"][{POST_SNAPBACK}][/a][/div]

Depends on what you need to run. Cortez (make a search) made some nice package of JamVM and Classpath . About compatibility, this is Java, so everything is just working (as far as I tried for 1 year now). But it can be verrryyy long. As an example, I tried Azzurus (why not ? ;-) and It never arrived... Memory limitation is the bigger problem, specially for graphical applications. But for an SWT, simple application, it's working very nicely on my SL-C1000.

One other point, it seems for me to be much smoother on r121 than beta 3 that is quite outdated (old 2.4 kernel).

By the way, is Sashz read this, is there any home to have NPTL included in next release ? For java people it would be so great !

PS: that's funny, it is the second question about java (one in french forum, one here) in just half an our ? is this the GPL effet ? ;-)
Title: Java In Pdaxrom
Post by: mjotad on November 14, 2006, 04:28:08 am
Quote
Quote
Hello,

what is currently the best way to install a Java runtime in pdaXrom 1.1.0beta3? Should be stable and as compatible as possible.

Depends on what you need to run. Cortez (make a search) made some nice package of JamVM and Classpath .

As ulhume says, the best way at the moment seems to be to install JamVM 1.4.2 and Gnu classpath 0.90.

I've been trying to get Freemind, a fairly large Java mindmapping program, to work under pdaxrom with the jamvm + classpath combination. I can get it to start up, but not to load files, which I think is because classpath doesn't have xml support compiled in.
I've tried to compile classpath 0.91 with xmlj support enabled but the compile aborts, and since I don't know much about programming in general and zero about java programming I'm stuck.
It's a shame, because if I could get Freemind working then I would have all the important functionality of my desktop duplicated on my Zaurus (C3200 with beta3).

Do any  zaurus java gurus have any suggestions for getting Freemind (http://freemind.sourceforge.net) to work?
Title: Java In Pdaxrom
Post by: ULhume on November 14, 2006, 04:52:28 am
Quote
Quote
Quote
Hello,

what is currently the best way to install a Java runtime in pdaXrom 1.1.0beta3? Should be stable and as compatible as possible.

Depends on what you need to run. Cortez (make a search) made some nice package of JamVM and Classpath .

As ulhume says, the best way at the moment seems to be to install JamVM 1.4.2 and Gnu classpath 0.90.

I've been trying to get Freemind, a fairly large Java mindmapping program, to work under pdaxrom with the jamvm + classpath combination. I can get it to start up, but not to load files, which I think is because classpath doesn't have xml support compiled in.
I've tried to compile classpath 0.91 with xmlj support enabled but the compile aborts, and since I don't know much about programming in general and zero about java programming I'm stuck.
It's a shame, because if I could get Freemind working then I would have all the important functionality of my desktop duplicated on my Zaurus (C3200 with beta3).

Do any  zaurus java gurus have any suggestions for getting Freemind (http://freemind.sourceforge.net) to work?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=146229\"][{POST_SNAPBACK}][/a][/div]

I'll try to see is freemind is working with my build of JamVM/Classpath, in the mid-time (I know it is not a solution if you really like freemind), I build vym (View Your Mind) for Zaurus if you are interested.
Title: Java In Pdaxrom
Post by: ULhume on November 14, 2006, 05:20:28 am
Ok, I tried freemind and this is not working. I'm missing libjavalangreflect.so. I'll se later if this was a classpath option that I missed.
Title: Java In Pdaxrom
Post by: daniel3000 on November 14, 2006, 06:35:01 am
Quote
PS: that's funny, it is the second question about java (one in french forum, one here) in just half an our ? is this the GPL effet ? ;-)
[div align=\"right\"][a href=\"index.php?act=findpost&pid=146206\"][{POST_SNAPBACK}][/a][/div]

Indirectly:
The GPL thread reminded me of that open topic. I wanted to install Java for a long time, but did not need it badly yet. Now I just wanted to ask.


Thanks for the reply. I'll then try JamVM and classpath. I found it in Meanie's feeds (where else   )

Regarding Freemind:
Don't you think this will be terribly slow?
It is already not the fastest on the desktop...

I have not found a good mindmapping solution for the Zaurus, so I switched to outlining. This has the advantage that the screen space is used more efficiently. However, you don't have the mindmapping-typical layout.


The notecase outliner will be THE outliner for pdaXrom, as the author is currently working on a lot of Zaurus-specific issues. We are still constantly optimizing it.
I think version 1.2.8 is now out and working nicely on the Zaurus, but it still needs some fixes and features.

Notecase is also available as a Windows/GTK version.

daniel
Title: Java In Pdaxrom
Post by: mjotad on November 14, 2006, 07:40:16 am
Quote
I'll try to see is freemind is working with my build of JamVM/Classpath, in the mid-time (I know it is not a solution if you really like freemind), I build vym (View Your Mind) for Zaurus if you are interested.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=146231\"][{POST_SNAPBACK}][/a][/div]

Many thanks for trying this. I have vym installed on the Zaurus already and it's a nice program but I have probably fifty mind maps made with freemind which I use regularly and I really don't want to have to try to convert them all, and I also have to share them with colleagues using Windows so the cross-platform nature of Freemind is useful.

daniel3000: yes, I expect that Freemind would be slow on the zaurus (although I don't really find it so on my desktop), but I would plan to use it more to visualise maps made on the desktop than to produce complicated maps on the zaurus itself. I've also tried using the freemind applet with the gcjplugin but I can't get that to load a map either.

I also use outlining (with Tuxcards) but it serves a complimentary role to the mindmaps rather than being a substitute.
Title: Java In Pdaxrom
Post by: ULhume on November 14, 2006, 09:01:50 am
Quote
Many thanks for trying this. I have vym installed on the Zaurus already and it's a nice program but I have probably fifty mind maps made with freemind which I use regularly and I really don't want to have to try to convert them all, and I also have to share them with colleagues using Windows so the cross-platform nature of Freemind is useful.
You're welcome. By the way, vym *is* cross plateform, that's the very reason I'm using it actually. It is based on Qt and for (poor ;-) windows user : http://www.kriener.de/index.pl/vym4win (http://www.kriener.de/index.pl/vym4win)

btw, where did you find vym package, I was searching for it when I finally decided to build mine.
Title: Java In Pdaxrom
Post by: ULhume on November 14, 2006, 09:10:25 am
Quote
Thanks for the reply. I'll then try JamVM and classpath. I found it in Meanie's feeds (where else   )
What is this so *well known* Meanie's feed ?!?


Quote
I have not found a good mindmapping solution for the Zaurus, so I switched to outlining. This has the advantage that the screen space is used more efficiently. However, you don't have the mindmapping-typical layout.
Same answer, try vym. Last version (1.8.1) comes far quicker and with nicer UI. I'll have to spend a bit of my time tweaking this annoying toolbars in order to make a bigger room for Z screens but it is really usable, not just about usable.

My last build is here ( http://www.karma-lab.net/zaurus/vym_1.8.1_armv5tel.ipk (http://www.karma-lab.net/zaurus/vym_1.8.1_armv5tel.ipk) ).

PS: Please be carefull if you peek something else in this feed, is quite *expermental* for some of them. I'm trying to make a reliable builder like bitbake for pxr but result is not always as predictable as it should
Title: Java In Pdaxrom
Post by: InSearchOf on November 14, 2006, 10:13:08 am
Here is a link to the thread with the JavaVM and Classpath

https://www.oesf.org/forums/index.php?showtopic=19626& (https://www.oesf.org/forums/index.php?showtopic=19626&)

Late
Title: Java In Pdaxrom
Post by: daniel3000 on November 14, 2006, 11:08:21 am
Quote
What is this so *well known* Meanie's feed ?!?

This one (http://zaurus.daemons.gr/menaie/pdaxrom/feed/).

Quote
Same answer, try vym. Last version (1.8.1) comes far quicker and with nicer UI. I'll have to spend a bit of my time tweaking this annoying toolbars in order to make a bigger room for Z screens but it is really usable, not just about usable.

My last build is here ( http://www.karma-lab.net/zaurus/vym_1.8.1_armv5tel.ipk (http://www.karma-lab.net/zaurus/vym_1.8.1_armv5tel.ipk) ).

[div align=\"right\"][a href=\"index.php?act=findpost&pid=146248\"][{POST_SNAPBACK}][/a][/div]

Thanks. I will try it again.
The last version I tried on the Z was 1.7.0.
Speed was only one of the problems. Nice if this is solved.
The toolbars were too large indeed, and what annoyed me was also that it (IIRC) uses a binary file format, making file interchange with other progrms hard or impossible (without going through import/export processes).

It would be great if you could work on the screen layout.

Please keep us updated about your vym progress!

Thanks
daniel
Title: Java In Pdaxrom
Post by: ULhume on November 14, 2006, 04:04:57 pm
Quote
This one (http://zaurus.daemons.gr/menaie/pdaxrom/feed/).
Wow, bookmarked

Quote
Thanks. I will try it again.
The last version I tried on the Z was 1.7.0.
Speed was only one of the problems. Nice if this is solved.
The toolbars were too large indeed, and what annoyed me was also that it (IIRC) uses a binary file format, making file interchange with other progrms hard or impossible (without going through import/export processes).
no no no )) This is not binary at all, it is exactly like openDocuments, just unzip them and you'll see that everything is inside, xml, pictures, etc...


Quote
It would be great if you could work on the screen layout.
Please keep us updated about your vym progress!
np
Title: Java In Pdaxrom
Post by: ULhume on November 14, 2006, 04:08:38 pm
Quote
Here is a link to the thread with the JavaVM and Classpath

https://www.oesf.org/forums/index.php?showtopic=19626& (https://www.oesf.org/forums/index.php?showtopic=19626&)

Late
[div align=\"right\"][a href=\"index.php?act=findpost&pid=146250\"][{POST_SNAPBACK}][/a][/div]
Unfortunaly this one is a bit outdated, last evolutions in jamvm/classpath includes java 1.5 specifications, and that is a must )

The one in my feed is ok but need some rework :
missing symlinks from *.so.1.0.0 => *.so
and need to create a fake /usr/local/classpath path to symlink /usr/share/classpath/lib & bin
But this excepts, it's working. This classpath/Jamvm stuff is just a great piece of software !
Title: Java In Pdaxrom
Post by: mjotad on November 15, 2006, 02:39:14 am
Quote
The one in my feed is ok but need some rework :
missing symlinks from *.so.1.0.0 => *.so
and need to create a fake /usr/local/classpath path to symlink /usr/share/classpath/lib & bin
But this excepts, it's working. This classpath/Jamvm stuff is just a great piece of software !
[div align=\"right\"][a href=\"index.php?act=findpost&pid=146283\"][{POST_SNAPBACK}][/a][/div]

Can I ask what version of pdax you used to compile classpath? I looked into compiling classpath 0.92 for pdax beta3 but it seemed as though I would have to upgrade a lot of gtk and other libraries. Do you know if your version should work on beta 3?
Many thanks for the vym ipk. 1.8.1 is much nicer than 1.7! If I can come up with a filter to convert freemind maps to vym I'll be very tempted to change.
Title: Java In Pdaxrom
Post by: ULhume on November 15, 2006, 04:03:09 am
Quote
Can I ask what version of pdax you used to compile classpath? I looked into compiling classpath 0.92 for pdax beta3 but it seemed as though I would have to upgrade a lot of gtk and other libraries. Do you know if your version should work on beta 3?
Many thanks for the vym ipk. 1.8.1 is much nicer than 1.7! If I can come up with a filter to convert freemind maps to vym I'll be very tempted to change.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=146311\"][{POST_SNAPBACK}][/a][/div]
Sure you can ask ;-)

Classpath was built with b121. I'm amazed by how many people still use b3, perhaps this is about problems I just don't have on my machine. Anyway, normaly it should work on b3, just give it a try.

By the way, after exchanging with some of you, I split my feed in two parts. Now classpath as it is today (with symlink problems) is in "not-tested" feed, "stable" feed is what I use on everyday base.

About vym, I don't know freemind, but if this is XML, why not using an XLST sheet in order to make the conversion and submit it to the author ? Perhaps just ask him before if he's already in the process of writing it but this can help.
Title: Java In Pdaxrom
Post by: daniel3000 on November 15, 2006, 05:53:13 am
Quote
Sure you can ask ;-)

Classpath was built with b121. I'm amazed by how many people still use b3, perhaps this is about problems I just don't have on my machine. Anyway, normaly it should work on b3, just give it a try.

So you are runinng b121 and don't have any problems with it?

This is interesting. Beofre installing beta3, I hesitated because so many people reported various problems. But it is highly subjective, as I found out. If you get used to the little quirks, you can well live with them and maybe een find a solution. But in general everything works quite well.

In addition to that being subjective, it depends on usage patterns. For example if you always have the Zaurus on your desk ckonnected to AC, you will ever have to deal with suspend/resume issues. If you never use KO/PI you will probalby never encounter problems with wakeup by atd.


daniel
Title: Java In Pdaxrom
Post by: ULhume on November 15, 2006, 06:16:11 am
Quote
So you are runinng b121 and don't have any problems with it?

This is interesting. Beofre installing beta3, I hesitated because so many people reported various problems. But it is highly subjective, as I found out. If you get used to the little quirks, you can well live with them and maybe een find a solution. But in general everything works quite well.
This will become a real "all in one" topic ) Actualy b121 has much more  positive than negative for me. It's quicker, multitasking is smoother (I often play music, read pdf, and have abiword running at the same time) even if there is no NPTL (SAHSZ please !!), lbattery last longer for me (that was just obvious durring my last travel, about 8 hours playing just music) and most important, suspend is working !!! Even if I was playing video or music.

Negative point are two basically : 1/ Stupid usbnet is not working after suspend. The solution I found is to plug 1 second the host cable and after the slave cabmle again. But it is better than rebooting. 2/ You need to unmount every CF flash before removing it. Else, I can't see my EXT3 CF partitions ever again. Reboot again.

You see, except the usb problem b121 (but I have workaround, so..) is just perfect for me.

Quote
In addition to that being subjective, it depends on usage patterns. For example if you always have the Zaurus on your desk ckonnected to AC, you will ever have to deal with suspend/resume issues. If you never use KO/PI you will probalby never encounter problems with wakeup by atd.
Yep, that's right, because b121 is mainly a suspend solution, It is less usefull for someone who's never need to save batteries.
Title: Java In Pdaxrom
Post by: ostense on November 15, 2006, 07:50:08 am
Well today Sun made java Open Source so it should be possible to compile it for the Z.

http://www.sun.com/2006-1113/feature/customers.jsp (http://www.sun.com/2006-1113/feature/customers.jsp)
Title: Java In Pdaxrom
Post by: ULhume on November 15, 2006, 08:12:40 am
Quote
Well today Sun made java Open Source so it should be possible to compile it for the Z.

http://www.sun.com/2006-1113/feature/customers.jsp (http://www.sun.com/2006-1113/feature/customers.jsp)
[div align=\"right\"][a href=\"index.php?act=findpost&pid=146332\"][{POST_SNAPBACK}][/a][/div]

Hum.. Only JVM is GPL for now (and Java ME but who's care ;-) Let's wait first quarter 2007 to have the all lot
Title: Java In Pdaxrom
Post by: ULhume on November 15, 2006, 11:18:09 am
Quote
Do any  zaurus java gurus have any suggestions for getting Freemind (http://freemind.sourceforge.net) to work?
[div align=\"right\"][{POST_SNAPBACK}][/a][/div] (http://index.php?act=findpost&pid=146229\")

Ok, it works !! I warn you, it is pretty long to start (a lease 1 minute) but it starts. I made a verrrry smal map before shutting it down :-)

I rebuilt jamvm with right path (no more symlinks needed normaly) and classpath with Qt-peering, collections, reflect and xml support. So normally everything is in the box (ipk is 8mb... I have to make splitter rules). the only that is not inside is "Alsa and Midi", any need ?? ;-)

Has I said, I split my feed in stable/non-tested. So classpath/jamvm is here ( [a href=\"http://www.karma-lab.net/zaurus/not-tested/]http://www.karma-lab.net/zaurus/not-tested/[/url] ).

If no one find bugs I'll switch it in stable with swt packages. Next fersion should be easier now, it's fairly building directly with my-kind-of-bitbake script.
Title: Java In Pdaxrom
Post by: mjotad on November 15, 2006, 05:01:48 pm
Quote
Ok, it works !! I warn you, it is pretty long to start (a lease 1 minute) but it starts. I made a verrrry smal map before shutting it down :-)

I rebuilt jamvm with right path (no more symlinks needed normaly) and classpath with Qt-peering, collections, reflect and xml support. So normally everything is in the box (ipk is 8mb... I have to make splitter rules). the only that is not inside is "Alsa and Midi", any need ?? ;-)

Has I said, I split my feed in stable/non-tested. So classpath/jamvm is here ( http://www.karma-lab.net/zaurus/not-tested/ (http://www.karma-lab.net/zaurus/not-tested/) ).

I appreciate the work you've put in on this. It was slow to start with jamvm1.4.2 and classpath 0.90 so I was expecting that.
I installed the jamvm 1.4.4 and classpath 0.92 from your feed, but I can't get it to recognise the classpath. When I try to start freemind it gives a java/lang/NoClassDefFoundError.
I've set CLASSPATH=/usr/share/jamvm/classes.zip:/usr/share/classpath/glibj.zip:/usr/share/classpath/tools.zip:/usr/share/classpath/collections.jar

Is there something obvious that I'm missing?
Title: Java In Pdaxrom
Post by: ULhume on November 15, 2006, 07:01:14 pm
Quote
I appreciate the work you've put in on this. It was slow to start with jamvm1.4.2 and classpath 0.90 so I was expecting that.
I installed the jamvm 1.4.4 and classpath 0.92 from your feed, but I can't get it to recognise the classpath. When I try to start freemind it gives a java/lang/NoClassDefFoundError.
I've set CLASSPATH=/usr/share/jamvm/classes.zip:/usr/share/classpath/glibj.zip:/usr/share/classpath/tools.zip:/usr/share/classpath/collections.jar

Is there something obvious that I'm missing?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=146381\"][{POST_SNAPBACK}][/a][/div]
No you didn't, it's me. I made too many installs of this and my zaurus was full of rubish. I re-installed pxr (thank's for the emergency sequence :-) from scratch and tested again. No the package should work. You just have to run again a "ipkg install jamvm classpath" in order to refresh your binaries.
Title: Java In Pdaxrom
Post by: mjotad on November 16, 2006, 05:20:18 am
Quote
No you didn't, it's me. I made too many installs of this and my zaurus was full of rubish. I re-installed pxr (thank's for the emergency sequence :-) from scratch and tested again. No the package should work. You just have to run again a "ipkg install jamvm classpath" in order to refresh your binaries.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=146392\"][{POST_SNAPBACK}][/a][/div]


I'm sure I'm doing something stupid, but I've re-installed jamvm and classpath from your feed and I'm still getting the same error, both with freemind and with jedit.

By the way, what is pxr?
Title: Java In Pdaxrom
Post by: daniel3000 on November 16, 2006, 06:54:52 am
Quote
Quote
No you didn't, it's me. I made too many installs of this and my zaurus was full of rubish. I re-installed pxr (thank's for the emergency sequence :-) from scratch and tested again. No the package should work. You just have to run again a "ipkg install jamvm classpath" in order to refresh your binaries.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=146392\"][{POST_SNAPBACK}][/a][/div]


I'm sure I'm doing something stupid, but I've re-installed jamvm and classpath from your feed and I'm still getting the same error, both with freemind and with jedit.

By the way, what is pxr?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=146414\"][{POST_SNAPBACK}][/a][/div]

I noticed that jamvm and classpath are in both the not-tested and the standard feed of ULhume.
ULhume, which one is the new one? Maybe mjotad installed the old one?

daniel
Title: Java In Pdaxrom
Post by: ULhume on November 16, 2006, 08:27:11 am
Quote
I noticed that jamvm and classpath are in both the not-tested and the standard feed of ULhume.
ULhume, which one is the new one? Maybe mjotad installed the old one?
daniel
[div align=\"right\"][a href=\"index.php?act=findpost&pid=146429\"][{POST_SNAPBACK}][/a][/div]

Yep your right I think, I made clean up on the feeds, the right checksums are :
100759ca03ae785c7af98a60e88fd9f3  feed/not-tested/classpath_0.92_armv5tel.ipk
526cda0c181df24f7eb0bc03c4edb945  feed/not-tested/jamvm_1.4.4_armv5tel.ipk
Title: Java In Pdaxrom
Post by: mjotad on November 16, 2006, 09:31:45 am
Quote
Quote
I noticed that jamvm and classpath are in both the not-tested and the standard feed of ULhume.
ULhume, which one is the new one? Maybe mjotad installed the old one?
daniel
[div align=\"right\"][a href=\"index.php?act=findpost&pid=146429\"][{POST_SNAPBACK}][/a][/div]

Yep your right I think, I made clean up on the feeds, the right checksums are :
100759ca03ae785c7af98a60e88fd9f3  feed/not-tested/classpath_0.92_armv5tel.ipk
526cda0c181df24f7eb0bc03c4edb945  feed/not-tested/jamvm_1.4.4_armv5tel.ipk
[div align=\"right\"][a href=\"index.php?act=findpost&pid=146436\"][{POST_SNAPBACK}][/a][/div]
Possibly, I downloaded them from the not-tested feed. I'll download again and see if I have better luck.
Thanks
Title: Java In Pdaxrom
Post by: mjotad on November 17, 2006, 04:29:59 am
Quote
Possibly, I downloaded them from the not-tested feed. I'll download again and see if I have better luck.
Thanks

OK, that works! Many thanks for your efforts on this. I have to admit that it's probably too slow for realistic frequent use, but it is a big help to be able to view freemind maps on the zaurus. I will probably have to try to come up with a conversion utility to get my freemind maps into vym format.

Just for information, there seems to be a problem with the file selector dialogue, I can't get it to to change folders. I had the same problem under jamvm1.4.2 and classpath 0.90. I'm not sure whether it just doesn't recognise a double click on the folder icons.

Thanks again
Title: Java In Pdaxrom
Post by: Meanie on November 27, 2006, 08:44:57 pm
the classpath and jamvm packages seem to have gone, at least the Packages file does not show them anymore. where can i find those ipk files now?
Title: Java In Pdaxrom
Post by: ULhume on November 28, 2006, 01:52:25 am
Quote
the classpath and jamvm packages seem to have gone, at least the Packages file does not show them anymore. where can i find those ipk files now?
[div align=\"right\"][{POST_SNAPBACK}][/a][/div] (http://index.php?act=findpost&pid=147378\")
[a href=\"http://www.karma-lab.net/zaurus/stable/Packages]http://www.karma-lab.net/zaurus/stable/Packages[/url]

There is just a bug with the index.html generator that is stopping at one point for some reasons but ipks are still there (http://www.karma-lab.net/zaurus/stable/classpath_0.92_armv5tel.ipk)
Title: Java In Pdaxrom
Post by: miskinis on February 09, 2007, 04:10:39 pm
Hi Folks,

I've been away from the Z for a while.  Since I have the SL-6000 and
use beta 1.1 I'm wondering if this will work on beta 1.1 and if it
supports JAVA 2D.

I'd like the (real) Sun JAVA, but it seems not all of it is available yet, so
I assume the jamvm/classpath combination is the best bet for now.

Anyone know?  Thanks