OS2World OLD-STATIC-BACKUP Forum

OS/2 - Technical => Applications => Topic started by: sXwamp on 2008.05.01, 12:24:58

Title: List of apps working /w Java 1.5_07
Post by: sXwamp on 2008.05.01, 12:24:58
Does anyone have Java 1.5 apps working under Java 1.5_07??

I finally got around to trying out Java 1.5_07.  And was tesing it with the apps that I normally use, these apps are working for me.

Java 1.5 apps:
Frostwire-4.13.5.windows.exe:  Working, but I had to install it from windows.

Java 1.4 apps:
jAblums 7.4 - http://jalbum.net/
Borg-Calendar - http://borg-calendar.sourceforge.net
JETI/2 - http://www.ehlertronic.de/jabber.htm

Thanks to Michael Holzapfel for pointing this out!
http://home.arcor.de/michael.holzapfel/eCS/java/Using%20Java%20on%20eCS.html

I was thinking about repacking (Torrent) Java and some apps for anyone that does not have Windows installed.

sXwamp
Title: Re: List of apps working /w Java 1.5_07
Post by: Blonde Guy on 2008.05.02, 07:36:35
Quote from: sXwamp on 2008.05.01, 12:24:58

Thanks to Michael Holzapfel for pointing this out!
http://home.arcor.de/michael.holzapfel/eCS/java/Using%20Java%20on%20eCS.html

I was thinking about repacking (Torrent) Java and some apps for anyone that does not have Windows installed.

sXwamp

I'd like to use Torrent, but I have no idea how. If you repack Torrent, could an eCS user learn to use Torrent just from that?

Neil
Title: Re: List of apps working /w Java 1.5_07
Post by: sXwamp on 2008.05.02, 08:39:08
Neil,

The repacking and torrent part is not much of a problem.  But a public disto. of it probably would have legal problems(it was late when I wrote that).  How ever since there is almost zero response to Java 1.5 running on OS/2, then I guess there is not any demand for it.  However I do remember all the responses when Java 1.5 came out, but not for OS/2!

One thing that I have notice is that Java 1.5 locks up less then Java 1.4 so far (Only on the apps that I use).

If you are talking about the client(Torrent) side then check out my site.

http://www.os2notes.gotdns.org/

sXwamp


Title: Re: List of apps working /w Java 1.5_07
Post by: Pete on 2008.05.02, 21:15:44
Quote from: sXwamp on 2008.05.01, 12:24:58
Does anyone have Java 1.5 apps working under Java 1.5_07??
sXwamp



Hi

You can add the current Phex and LimeWire to your list of working Java 1.5 apps.

Both can be a little slow in responding to mouse clicks here though which can give the appearance of the app having crashed.

Regards

Pete



Title: Re: List of apps working /w Java 1.5_07
Post by: Barbara on 2008.05.02, 22:43:08
Also Mercury dMSN Messenger works fine, but i don't know if webcam works.
Title: Re: List of apps working /w Java 1.5_07
Post by: abwillis on 2008.05.03, 15:24:55
Mostly I use an app here at work to claim my time.  It has shipped with a 1.5 JRE for sometime but I have been successfully using it on OS/2 with Java 1.4.2 and it works with Java 1.5.
Andy
Title: Re: List of apps working /w Java 1.5_07
Post by: Saijin_Naib on 2008.05.03, 16:01:46
Anyone have a working link to Java 1.5.0_07? That link posted in the top of the thread seems to not be working.
Title: Re: List of apps working /w Java 1.5_07
Post by: sXwamp on 2008.05.03, 16:29:04
Quote from: Saijin_Naib on 2008.05.03, 16:01:46
Anyone have a working link to Java 1.5.0_07? That link posted in the top of the thread seems to not be working.

It's under archives on the Sun download site.
http://java.sun.com/products/archive/   => JDK/JRE - 5.0
the 7th item down (Make sure its the 1.5_07 version).

If you don't have windows to install it and can wait, email me and I will put a copy on my ftp server in the next day or two.

sXwamp (AT) gmail.com

sXwamp
Title: Re: List of apps working /w Java 1.5_07
Post by: Sander on 2008.05.03, 20:52:55
Thus far, in my experience, Java 1.5.0_07 has been less prone to crashing and/or corrupting the WPS. 

As to Pete's comment about Limewire being "a little slow in responding to mouse clicks", I am definitely NOT seeing that here.  I am running the very latest version, Limewire 4.16.7 Pro, and it is quite responsive.  In fact, I see no difference running it under OS/2, XP, or Vista, with the exception of a slower launch time under OS/2. 

As far as there being little "response to Java 1.5 running on OS/2", keep in mind that when things "just work" with OS/2, there has always been little response in forums".  Most activity is generated in the, no solution, looking for a solution, or working on a solution phase.  Certainly, the discovery of this version of Java 1.5 working with OS/2 was an important find.  Likewise, the ability to use the Innotek wrapper is a MUCH appreciated, elegant solution. 
Title: Re: List of apps working /w Java 1.5_07
Post by: Saijin_Naib on 2008.05.04, 10:07:27
Java 1.6.0_05 executables don't work, but I will see if the Java will run if I get back my Java 1.42 executables while still using the JRE6 classes and libs.
Title: Re: List of apps working /w Java 1.5_07
Post by: Saijin_Naib on 2008.05.07, 08:56:27
HAH! I finally did something (albeit small) useful. I figured out how to hybridize the Innotek Java 1.42 and the Windows 1.50 JRE so you dont need any fancy Program Objects and so it can be used as the system Java :)

Here is the short version:

Install the Innotek Java 1.42 and updates using eCSMT.
Download the Java 1.50_07 provided by SxWamp, extract somewhere.
Copy the java.exe, javaw.exe, & j2win.dll from the 1.42 JRE to the 1.50 JRE "bin" folder. Overwrite.
Test by making a program object to the Java.exe in the 1.50 BIN folder, and enjoy.
------------------------------------

Here are two screenshots showing a Java app I need for my Olympus M:robe running under the 1.42 and my hybridized 1.50 runtimes. Which would you rather use? :P

Edit: I have a sneaking suspicion I can push this concept further with newer JREs. I will begin testing anew.
Title: Re: List of apps working /w Java 1.5_07
Post by: Saijin_Naib on 2008.05.07, 09:04:15
Damn, it (JRE 1.60.05) almost worked. The application will fail with this popuplog entry.
------------------------------------------------------------

05-07-2008  02:00:26  SYS3175  PID 0066  TID 0001  Slot 00d2
C:\DESKTOP\JRE1.6.0_05\BIN\JAVA.EXE
c0000005
00000054
P1=00000001  P2=00000054  P3=XXXXXXXX  P4=XXXXXXXX 
EAX=00000000  EBX=00000000  ECX=2140bb08  EDX=02a944fc
ESI=00000044  EDI=0012ee54 
DS=0053  DSACC=d0f3  DSLIM=5fffffff 
ES=0053  ESACC=d0f3  ESLIM=5fffffff 
FS=145f  FSACC=00f3  FSLIM=00000fff
GS=0000  GSACC=****  GSLIM=********
CS:EIP=005b:2132e42c  CSACC=d0df  CSLIM=5fffffff
SS:ESP=0053:0012ecbc  SSACC=d0f3  SSLIM=5fffffff
EBP=00000064  FLG=00012247
------------------------------------------------------------
Here is the JAVA.exe generated infos.
#
# An unexpected error has been detected by Java Runtime Environment:
#
#  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x00000054, pid=102, tid=6684673
#
# Java VM: Java HotSpot(TM) Client VM (10.0-b19 mixed mode windows-x86)
# Problematic frame:
# C  0x00000054
#
# If you would like to submit a bug report, please visit:
#   http://java.sun.com/webapps/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#

---------------  T H R E A D  ---------------

Current thread (0x02a95400):  JavaThread "main" [_thread_in_native, id=6684673, stack(0x00030000,0x00140000)]

siginfo: ExceptionCode=0xc0000005, writing address 0x00000054

Registers:
EAX=0x00000000, EBX=0x27826888, ECX=0x00000000, EDX=0x026b0018
ESP=0x0012f488, EBP=0x004c0055, ESI=0x214c1660, EDI=0x02a95400
EIP=0x00000054, EFLAGS=0x00012246

Top of Stack: (sp=0x0012f488)
0x0012f488:   214c1660 27826888 02a95400 212a43d5
0x0012f498:   02a95400 00000006 00000008 02a95400
0x0012f4a8:   27826888 27826888 21689b73 00000000
0x0012f4b8:   0012f4f8 21689c71 02a954f4 0012f50c
0x0012f4c8:   0012f508 02a9c0d0 02a9c0e0 02a9c0e4
0x0012f4d8:   0012f4d8 27826888 0012f50c 2782a8b0
0x0012f4e8:   00000000 27826888 00000000 0012f508
0x0012f4f8:   0012f530 21682dd5 00000000 21688089

Instructions: (pc=0x00000054)
0x00000044:   
Title: Re: List of apps working /w Java 1.5_07
Post by: Achimbub on 2008.05.07, 10:19:39
Hi Guys

I found jbidwatcher 2.x, Jajuk (Jukebox-Player), Jaolt (EBAY) and JIBS partly working. With jajuk i don´t know if sound is working ;D. And with jaolt I have problems in setting up a User, that i also have under WinDos. Jbidwatcher and jibs seems to be fully working.

On OS2.org Thomas Nolte said, that some Apps also working with Java 1.5.0_15, but i couldn´t get one to work.

I would love to see atunes working but this is strictly java 1.6, even the Mac OS X 10.4 (only 1.5) is outside the door.

Cheers.
Title: Re: List of apps working /w Java 1.5_07
Post by: Sander on 2008.05.08, 22:44:20
Quote from: Saijin_Naib on 2008.05.07, 08:56:27
HAH! I finally did something (albeit small) useful. I figured out how to hybridize the Innotek Java 1.42 and the Windows 1.50 JRE so you dont need any fancy Program Objects and so it can be used as the system Java :)

Uh, not exactly original.  Andy Willis posted this several days ago.  That's what I was referring to in my post above, "the ability to use the Innotek wrapper is a MUCH appreciated, elegant solution."
Title: Re: List of apps working /w Java 1.5_07
Post by: Saijin_Naib on 2008.05.09, 00:44:58
Using his method, you cant use Java 1.50 as the System (Browser) JRE, only to run specific java apps by creating a specialized Program Object. What I did allows Java 1.50 to be the Java you use in firefox (I replaced my JAVA142 with my new JRE5 one).

Sure, its not original. In fact, its very derivative, but it works for what I want it to, and maybe someone else will find using Java 1.50 in the browser useful too  ::)
Title: Re: List of apps working /w Java 1.5_07
Post by: Saijin_Naib on 2008.05.11, 11:04:37
Okay, I am one step closer to getting this working! I will be needing help though, I am at a bit of a loss here.

I can get javaws.exe to work properly in the JRE5 folder and it loads up perfect and runs java apps perfect, but if I try and get java apps to run in the browser the frame shows up empty. J2cpl.exe gives me a message of Success! And the path to the Java runtime. I had to go and add reg-keys in the same fashion of those already there for the 1.5.0_07, but this results in the browser freezing upon trying to load java apps. Firefox warns of Java Plugin @ 1.4.2_09 level and JRE @ 1.5.0_07 level, and asks if you wish to continue loading. If you choose yes, the browser will eventually freeze.

Screenshot is of Javaws.exe running with JRE5.

Can anyone see what we need to get j2cpl to work properly? I think that will be the deciding factor of whether or not we can trick JRE5 to run in the browser.
Title: Re: List of apps working /w Java 1.5_07
Post by: herwigb on 2008.05.11, 18:24:02
IF it is possible to get the browser plugin to work, it would at least be necessary to create a npj2_15.dll by properly patching the npj2_14.dll (and renamed internally). In addition the npj2_11.dll, npj2_12.dll, npj2_13.dll would have to be patched.

Also the npj2.dll would have to be patched.
Title: Re: List of apps working /w Java 1.5_07
Post by: Saijin_Naib on 2008.05.11, 18:31:12
I tried to mess with the npj2_14.dll with a hex editor and rename the java 1.4.2 references inside to java 1.5.0 and save it as a npj2_15.dll but this was without effect. I guess, as you have pointed out, there was more to be done. Do you think that you can do what is necessary to those files and test it out?

Also, what is up with javacpl.exe? I get the feeling that the OS/2 j2cpl.exe is a wrapper for the windows javacpl but I am not sure?
Title: Re: List of apps working /w Java 1.5_07
Post by: Shai on 2008.05.12, 14:11:16
Hi,
I don't know if anyone mentioned this before, but the 'original' Azureus on Swing seems to run more or less fine.
I just downloaded and installed the Azureus package of the Eclipse-On-Swing people: http://eos.sourceforge.net/aos/Azureus-On-Swing-Installer.jar (http://eos.sourceforge.net/aos/Azureus-On-Swing-Installer.jar)
(I also attached a screenshot.)
Please note that the Azureus in this package is a bit older than the version used for our Azureus-on-Java-1.4 backport (it's 2.4.0.2 instead of 2.5.0.4). There's no SWTSwing page in the "plugins" config node and a Swing look and feel plugin doesn't seem to be included but I bet a such a package can be created easily by someone who is a bit more familiar with SWTSwing (since it was done for the OS/2 port...).
I'm testing the app currently to see whether it runs more stable than the backported Azureus, which is still unusable in my opinion.

in a related matter: I don't know if this is known, but the Java 1.5 JDK (same revision as the JRE) runs on Odin/InnoTek Runtime, too - I'm using it right now. As far as I know, the JDK is identical to the JRE except that the Java compiler is included and some sample programs if you chose to install them. And the Java 1.5 compiler runs fine with Odin - I had to use Odin because I cannot see the stdout when using the InnoTek runtime - probably because the Acrobat etc binaries are linked as windowed applications. I didn't try to copy the Java 1.4 JDK binaries over the 1.5 ones, though. I suspect as 1.4 javac is a console application it would work then without Odin.
That's great for my OS/2-user-pride since I have to do some homework in Java (using features introduced with Java 1.5) every week (as part of some of the university courses I do currently) and before our latest Java 1.5 hack ;) I had to do them in VirtualBox or via VNC session on a Linux workstation I have access to. Of course I could have tried Retroweaver, too - but I wasn't that desperate.

greetings,
Robin
Title: Re: List of apps working /w Java 1.5_07
Post by: Shai on 2008.05.14, 14:09:03
I replaced the original Java 1.5 binaries with the ones from Java 1.4 and it appears to work fine. The default Swing look and feel changed suddenly, though.
and ok, what I told was partly wrong:
The Java 1.4 Azureus package doesn't have a SWTSwing config page either. Settings are specified via command line parameters called properties.
For instance I wanted to change the look and feel - this works with the Java 1.4 Azureus and the Java 1.5 Azureus:
The property "swt.swing.laf" is used to change the Swing look and feel. I changed this to the "skin" look and feel (http://www.l2fprod.com/ (http://www.l2fprod.com/)) which I also use for jEdit. This is done by putting "skinlf.jar" somewhere in the classpath and adding "-Dswt.swing.laf=com.l2fprod.gui.plaf.skin.SkinLookAndFeel" to the Azureus command line. Then you have to specify which themepack it should use. As I try to keep my system in an Aqua look and feel I used the "aquathemepack" which you can keep for instance in the Azureus directory - you'd have to add "-Dskinlf.themepack=aquathemepack.zip"
In other respects my Azureus on Java 1.5 commandline is similar to the commandline used in the startos2.cmd of Azureus on Java 1.4:
c:\programs\java150\bin\javaw.exe -Dswt.swing.lightpopups=true -Dswt.swing.laf=com.l2fprod.gui.plaf.skin.SkinLookAndFeel -Dskinlf.themepack=aquathemepack.zip -cp Azureus.jar;skinlf.jar org.eclipse.swt.widgets.Display org.gudy.azureus2.ui.common.Main
You might guess that "c:\programs\java150\bin\javaw.exe" is the path to my specific java 1.5 windowed binary :).
I attached a screenshot of my Azureus running on Java 1.5 with Aqua look and feel. Amazing what we can do with our beloved OS :).

btw.: even though it looks pretty, Azureus on Java 1.5 is also too instable to be useful. It always crashes after a few minutes. Maybe someone else could try it and give some feedback.

cheers,
Robin
Title: Re: List of apps working /w Java 1.5_07
Post by: Stan on 2008.05.16, 18:04:58
Jedit4.3pre14 also works with Java 1.5.0_07. This is a multi-language editor written for Java 1.5 .
It is a basic IDE, with some project support.

It has support for Ruby (and many other languages) through a plugin.The edit/interpret cycle is all done in Jedit.
I had to modify the Rexx  cmd file shipped with the java jar file to change the path to put Java1.5.0_07 at the beginning of the path, and also to get the rexx code to recognize the java version correctly.

Stan
Title: Re: List of apps working /w Java 1.5_07
Post by: Blonde Guy on 2008.06.04, 17:27:06
Polarbar mailer runs poorly under Java 1.5_07, which is both good (it runs at all) and not surprising (it doesn't run well under Inntotek Java 1.4.2, either)

Polarbar stopped development when the authors abandoned Java because of issues not fixed during Java 1.4.x days.
Title: Re: List of apps working /w Java 1.5_07
Post by: kinryuu on 2010.03.28, 20:33:24
So has anyone figured out how to get a newer version of Java working with eCS ? In the meantime, this has been a fantastic help, I've gotten the Thinkorswim app working using Java 1.5 on eCS, so that's one less reason I have to boot XP.