Author Topic: Java / OpenJDK 1.6.0-b19 Beta 2  (Read 5958 times)

miturbide

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1154
    • View Profile
    • OS2World
Java / OpenJDK 1.6.0-b19 Beta 2
« on: 2011.01.16, 15:22:29 »
I started some light test on the OpenJDK 6   1.6.0-b19 beta 2.

First I removed the "/SMP /APIC" from "PSD=ACPI.PSD /SMP /APIC", since java was crashing in SMP (and it is also written down on the readme.os2). Modified the Path and libpath.

I tested SnakePit java game. (or Schlangengrube 1.2)
http://java-apps.org/content/show.php/Schlangengrube?content=70925

The game shows sound errors on startup:
Sound-error: /schlangengrube/sounds/schuss.wav
Sound-error: /schlangengrube/sounds/treffer.wav
Sound-error: /schlangengrube/sounds/zusammenfallen.wav
Sound-error: /schlangengrube/sounds/schlange_getroffen.wav
Sound-error: /schlangengrube/sounds/levelup.wav
Sound-error: /schlangengrube/sounds/gameover.wav
Sound-error: /schlangengrube/sounds/explo.wav

The GUI loads fine and the game starts.

But the mouseclick action it is not working to launch the balls to the track.

Very interesting and good for a Beta.

Does anybody know a way to capture the text that shows up in the java command prompt ? I want to capture the error that shows when I click the mouse and nothing happens.



« Last Edit: 2011.01.16, 15:29:51 by miturbide »
Martín Itúrbide
OS2World.com NewsMaster
Open Source Advocate

Skype - martiniturbide
Google Talk - martiniturbide@gmail.com

miturbide

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1154
    • View Profile
    • OS2World
Re: Java / OpenJDK 1.6.0-b19 Beta 2
« Reply #1 on: 2011.01.16, 15:43:34 »
I also tried Lobo Browser.


Martín Itúrbide
OS2World.com NewsMaster
Open Source Advocate

Skype - martiniturbide
Google Talk - martiniturbide@gmail.com

Pete

  • Hero Member
  • *****
  • Posts: 865
    • View Profile
Re: Java / OpenJDK 1.6.0-b19 Beta 2
« Reply #2 on: 2011.01.16, 17:34:58 »
Hi Martin

You may find digital camera the best way to capture the text - at least you can then post an image to those interested.

As for myself: I'll wait until java6 claims to be SMP capable before trying it again.

Regards

Pete


RobertM

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2034
    • View Profile
    • A.I.BuiltPC - using OS/2 Warp Server & eComStation for Custom Web and Database Solutions
Re: Java / OpenJDK 1.6.0-b19 Beta 2
« Reply #3 on: 2011.01.17, 09:09:36 »

Does anybody know a way to capture the text that shows up in the java command prompt ? I want to capture the error that shows when I click the mouse and nothing happens.


Small errors, copy and paste. Larger errors can be "logged" by redirection STDIO and STDERR to files on disk.

Best,
Robert
|
|
Kirk's 5 Year Mission Continues at:
Star Trek New Voyages
|
|


CDRWSel

  • Sr. Member
  • ****
  • Posts: 420
    • View Profile
Re: Java / OpenJDK 1.6.0-b19 Beta 2
« Reply #4 on: 2011.01.17, 10:05:59 »
Hi Martin

You may find digital camera the best way to capture the text - at least you can then post an image to those interested.

As for myself: I'll wait until java6 claims to be SMP capable before trying it again.

Regards

Pete



Same for me, waiting SMP capable before trying it again...
All newer (may be older too) systems are now SMP  

Same is true for flash !
Always crashes in SMP mode

I didn't hear much about flash updates...

These are important and long waited products   ;)
« Last Edit: 2011.01.17, 10:08:32 by CDRWSel »

Andi710

  • Jr. Member
  • **
  • Posts: 71
    • View Profile
Re: Java / OpenJDK 1.6.0-b19 Beta 2
« Reply #5 on: 2011.01.17, 16:23:47 »
Does anybody know a way to capture the text that shows up in the java command prompt ? I want to capture the error that shows when I click the mouse and nothing happens.

If it's not too much putput, I usually use DragText to copy the text from VIO window.

Cheers
Andreas

abwillis

  • Sr. Member
  • ****
  • Posts: 325
    • View Profile
Re: Java / OpenJDK 1.6.0-b19 Beta 2
« Reply #6 on: 2011.01.17, 16:43:51 »
Once SMP is fixed for either Java or Flash it would of course fix it for both.  That is one advantage of using Odin, updates for one is updates for the other, and for other things potentially as well. 

Blonde Guy

  • Sr. Member
  • ****
  • Posts: 283
    • View Profile
    • Blonde Guy
Re: Java / OpenJDK 1.6.0-b19 Beta 2
« Reply #7 on: 2011.01.18, 03:11:24 »
Polarbar mailer: displays everything but the message window.

SmartSVN, gets started, but crashes. Doesn't really work on Java 6 on other platforms, though.
Expert Consulting for OS/2 and eComStation

Paul Smedley

  • Sr. Member
  • ****
  • Posts: 322
    • View Profile
Re: Java / OpenJDK 1.6.0-b19 Beta 2
« Reply #8 on: 2011.01.23, 06:08:25 »
For those users with SMP systems and seeing hangs in java.exe after program termination, does running 'execmode java.exe" and marking the executable as a single processor app help?

Pete

  • Hero Member
  • *****
  • Posts: 865
    • View Profile
Re: Java / OpenJDK 1.6.0-b19 Beta 2
« Reply #9 on: 2011.01.24, 19:03:15 »
Hi Paul

Yes, marking javaw.exe as single processor helped with the 1 app (a game, Sudoku) I tried.

Regards

Pete
 

miturbide

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1154
    • View Profile
    • OS2World
Re: Java / OpenJDK 1.6.0-b19 Beta 2
« Reply #10 on: 2011.02.03, 05:04:29 »
Im trying to run Azureus / VIZE, but I have no luck.

http://sourceforge.net/projects/azureus/files/

[X:\USERS\MARTIN\DOWNLOADS]java -jar vuze_4600.jar
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/cl
i/ParseException
Caused by: java.lang.ClassNotFoundException: org.apache.commons.cli.ParseExcepti
on
        at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
Could not find the main class: org.gudy.azureus2.ui.common.Main. Program will ex
it.
Martín Itúrbide
OS2World.com NewsMaster
Open Source Advocate

Skype - martiniturbide
Google Talk - martiniturbide@gmail.com

DougB

  • Sr. Member
  • ****
  • Posts: 407
    • View Profile
Re: Java / OpenJDK 1.6.0-b19 Beta 2
« Reply #11 on: 2011.02.03, 08:15:19 »
Quote
does running 'execmode java.exe" and marking the executable as a single processor app help?

Yes, and no. It does work better, but it still has trouble. I find that I need to turn off all but one processor (MPCPUMON.EXE will do it), when running some JAVA programs. However, this is not a new problem. I have had the same kind of problems with JAVA 1.4.2_09, and with JAVA 1.5.0_07. It would be good to get the problems fixed, but I am suspicious that it might be the JAVA programs themselves that are at fault.

Joachim

  • Newbie
  • *
  • Posts: 36
    • View Profile
Re: Java / OpenJDK 1.6.0-b19 Beta 2
« Reply #12 on: 2011.02.03, 11:46:06 »
It would be good to get the problems fixed, but I am suspicious that it might be the JAVA programs themselves that are at fault.

This is probably not true, most of the SMP problems are caused by Odin. They are under investigation and should be resolved, fixing Flash 10 stability issues as well. Have a look at http://svn.netlabs.org/odin32/search?q=smp if you're interested.

Regards,

Joachim

RobertM

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2034
    • View Profile
    • A.I.BuiltPC - using OS/2 Warp Server & eComStation for Custom Web and Database Solutions
Re: Java / OpenJDK 1.6.0-b19 Beta 2
« Reply #13 on: 2011.02.03, 17:58:49 »
It would be good to get the problems fixed, but I am suspicious that it might be the JAVA programs themselves that are at fault.

This is probably not true, most of the SMP problems are caused by Odin. They are under investigation and should be resolved, fixing Flash 10 stability issues as well. Have a look at http://svn.netlabs.org/odin32/search?q=smp if you're interested.

Regards,

Joachim

Considering the underlying Windows architecture of the time was not designed for "SMP everything", I do not envy the work you guys need to put into this, especially since I have at least a little understanding of what's going on behind the scenes.

For those who don't know some of the Windows and OS/2 specific nature of the problem, Windows itself does not utilize SMP for applications, unless the application is specifically written for it and can utilize it. On the other hand, OS/2 uses as many CPUs as it can for anything - even numerous monolithic apps (even a monolithic app that calls on OS/2 subsystems can take advantage of SMP simply because various OS/2 subsystems do - some tests show a 30-60% increase in performance in single threaded apps that utilize such subsystems). So... when you are using an ODIN wrapper to OS/2 calls that (the OS/2 calls) will probably be handled on multiple CPUs, it can create all sorts of problems, since the apps themselves were never designed for it. Even the ones that were, are designed for an entirely different method of SMP implementation.

(Speculating) It probably is requiring the gang to do a lot of work "linking" the Windows method to OS/2's mutex semaphore and spinlock handling. Not an easy task, I am sure.

I for one am dying for everything ODIN related to be SMP stable and SMP safe.Of course, with the advent of very few non-SMP machines in this day and age, it is something VERY important, but I am patiently waiting because I do have some understanding of the work involved (and I have been seeing progress in this area, meaning that hopefully, we'll be seeing the light at the end of the tunnel).

Anyway, thanks for the update Joachim!

Best,
Robert
|
|
Kirk's 5 Year Mission Continues at:
Star Trek New Voyages
|
|