Author Topic: Java for os2  (Read 59681 times)

abwillis

  • Sr. Member
  • ****
  • Posts: 325
    • View Profile
Re: Java for os2
« Reply #45 on: 2011.05.02, 04:25:06 »
You might try to use JDEBP cmd as it does not have the command line length limitation.
http://homepage.ntlworld.com/jonathan.deboynepollard/Softwares/cmd.html

djcaetano

  • Full Member
  • ***
  • Posts: 205
    • View Profile
Re: Java for os2
« Reply #46 on: 2011.05.02, 06:30:40 »
You might try to use JDEBP cmd as it does not have the command line length limitation.
http://homepage.ntlworld.com/jonathan.deboynepollard/Softwares/cmd.html

This may be a solution... but I am really trying to work it out.
Today I was able to make NetBeans 5.0 run, but it seems to hang after opening a project, on the "Analyzing Classpath" task.
I was able to load NetBeans 6.9.1, but it presented me no options to start a new project (nor I was able to load an existing project). I will do some more testing and then I will publish the loader so others may contribute to make it better. :)

******************
UPDATE!!!
Now NetBeans 6.9.1 is running better than 5.0 (at least here). I was able to make it detect every installed extension and thus it is able to create and open projects. This version does not "hang" at analyzing project or searching class path... on the other hand, I am not able to build the java program, since NetBeans complains about not being able to find JAVA (which is somewhat curious :).
Probably some command line options have changed from 4.1/5.0 to 6.9.1. I need some more time to check them out.
BTW: this is running using OpenJDK 1.6.0RC2, but a LOT of errors can be seen on command line. Since OpenJDK 1.6.0 is still "beta" code, improvements can be achieved in a near future.
Also, the project need more funding. I believe Java is a superb update for our system, since more and more apps are being created as "pure java application". Important improvements and fixes on ODIN code are result of this project; ancient problems like hanging applications, no SMP support and other awful ODIN-related behavior are expected to be gone in a near future... but, again, the project need some more community help.
« Last Edit: 2011.05.02, 07:16:37 by djcaetano »

miturbide

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1154
    • View Profile
    • OS2World
Re: Java for os2
« Reply #47 on: 2011.05.18, 00:37:51 »
I had been trying also BlueJ IDE
http://www.bluej.org/

"BlueJ is an integrated Java environment specifically designed for introductory teaching."

But Im getting problem to run it, since it calls tools.jar on the SDK.

Here it is the linux script to make it run:

#!/bin/sh
APPBASE="d:\javatest\bluej"
JAVAPATH="C:\PROGRAMS\openjdk6"
CP="$APPBASE/lib/bluej.jar:$JAVAPATH/lib/tools.jar"
"$JAVAPATH/bin/java" -cp "$CP" bluej.Boot  "$@"


But I can not replicate it for eCS. any help to test it out?
Martín Itúrbide
OS2World.com NewsMaster
Open Source Advocate

Skype - martiniturbide
Google Talk - martiniturbide@gmail.com

djcaetano

  • Full Member
  • ***
  • Posts: 205
    • View Profile
Re: Java for os2
« Reply #48 on: 2011.05.18, 05:03:04 »
I had been trying also BlueJ IDE
http://www.bluej.org/
#!/bin/sh
APPBASE="d:\javatest\bluej"
JAVAPATH="C:\PROGRAMS\openjdk6"
CP="$APPBASE/lib/bluej.jar:$JAVAPATH/lib/tools.jar"
"$JAVAPATH/bin/java" -cp "$CP" bluej.Boot  "$@"

But I can not replicate it for eCS. any help to test it out?

  Martin,

  This can be oddly related to the problems I am facing on NetBeans. Specifically, NetBeans 6.9.1 reports that the Java 1.6.0 directory is not a valid JDK and, therefore, it cannot build the projects.
  I have tried NetBeans 4.x, 5.0 and 6.9.1.

   NB 4.x will run without problems with Golden Code 1.4.1; it runs but it is useless with any Odin based Java (1.4.2, 1.5.0 or OpenJDK 1.6.0).
   NB 5.0 has problems with GC 1.4.1 and Odin javas (1.4.2, 1.5.0 and 1.6.0).
   NB 6.9.1 only runs on OpenJDK 1.6.0, but it complains it can't find a suitable Java (even if it points to the correct OpenJDK directory).

   By "useless" on NB 4.x and 5.0 I mean it is not possible to build a project, even a single-class one.
   Based on the observation that NB 4.x works nicely with GC 1.4.1 and *doesn't* with 1.4.2 or any later odin based version, I believe there is some sort of problem with odin libraries.
   Also, there is something NB 6.9.1 uses to "detect" a suitable Java installation that is not present on OpenJDK 1.6.0.

  I am doing some more tests but I will soon fill a ticket on Java 1.6.0 bugtracker.

lpino

  • Full Member
  • ***
  • Posts: 109
    • View Profile
Re: Java for os2
« Reply #49 on: 2011.05.18, 14:49:05 »
I had been trying also BlueJ IDE
http://www.bluej.org/
#!/bin/sh
APPBASE="d:\javatest\bluej"
JAVAPATH="C:\PROGRAMS\openjdk6"
CP="$APPBASE/lib/bluej.jar:$JAVAPATH/lib/tools.jar"
"$JAVAPATH/bin/java" -cp "$CP" bluej.Boot  "$@"

But I can not replicate it for eCS. any help to test it out?
   NB 5.0 has problems with GC 1.4.1 and Odin javas (1.4.2, 1.5.0 and 1.6.0).

I have been using NB 5 for years using GC 1.4.1. It also works with Java 1.4.2

djcaetano

  • Full Member
  • ***
  • Posts: 205
    • View Profile
Re: Java for os2
« Reply #50 on: 2011.05.19, 03:50:38 »
I have been using NB 5 for years using GC 1.4.1. It also works with Java 1.4.2

 Can you please provide your cmd files?

  \netbeans5\bin\netbeans.cmd
  and
  \netbeans5\platform6\lib\nbexec.cmd

  I have not been able to make things work.

miturbide

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1154
    • View Profile
    • OS2World
Re: Java for os2
« Reply #51 on: 2011.05.20, 00:18:21 »
I wanted to test some Java Web Start application. Since OpenJDK doesn't has it, I started to check the clones in Java.

Im running here Netx 0.5
http://sourceforge.net/projects/jnlp/

Here it is the screenshot of some test application.
Martín Itúrbide
OS2World.com NewsMaster
Open Source Advocate

Skype - martiniturbide
Google Talk - martiniturbide@gmail.com

sXwamp

  • Full Member
  • ***
  • Posts: 228
    • View Profile
    • OS/2 Release Notes
Re: Java for os2
« Reply #52 on: 2011.05.22, 13:51:04 »
I have been using NB 5 for years using GC 1.4.1. It also works with Java 1.4.2

 Can you please provide your cmd files?

  \netbeans5\bin\netbeans.cmd
  and
  \netbeans5\platform6\lib\nbexec.cmd

  I have not been able to make things work.

In the \netbeans5\etc directory, there is a conf file -- remove the # and add the path to openJDK6

Now all you have to do is run netbeans.cmd -- for netbeans5
« Last Edit: 2011.05.22, 13:52:54 by sXwamp »

sXwamp

  • Full Member
  • ***
  • Posts: 228
    • View Profile
    • OS/2 Release Notes
Re: Java for os2
« Reply #53 on: 2011.05.22, 13:58:04 »
Mercury 2.0 rc8 now works with the new Java 6 - WSE release :)

miturbide

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1154
    • View Profile
    • OS2World
Re: Java for os2
« Reply #54 on: 2011.05.22, 19:04:19 »
RSSView 2.0 beta seems to work fine.
There is some little thing that doesn't look fine (when you add a new site they boxes looks very small), but I can't be sure if it is OpenJDK or that the software is from 2004 and haven't been updated.

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

Guys, can I add your Java screenshots to a album in the OS2WOrld.com Gallery?

Keep posting news about Java apps that works !!
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 for os2
« Reply #55 on: 2011.05.22, 19:16:52 »
muCommander seems to work fine too.
ver 0.8.5

http://www.mucommander.com/index.php#download
Martín Itúrbide
OS2World.com NewsMaster
Open Source Advocate

Skype - martiniturbide
Google Talk - martiniturbide@gmail.com

sXwamp

  • Full Member
  • ***
  • Posts: 228
    • View Profile
    • OS/2 Release Notes
Re: Java for os2
« Reply #56 on: 2011.05.22, 21:21:35 »

Guys, can I add your Java screenshots to a album in the OS2WOrld.com Gallery?

Keep posting news about Java apps that works !!

Sure

Greggory

miturbide

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1154
    • View Profile
    • OS2World
Re: Java for os2
« Reply #57 on: 2011.05.22, 22:23:24 »
Thanks sXwamp

Here it is the Gallery:
http://www.os2world.com/gallery/v/progs/java/

Let me know if I can post the other pictures, and please post here any other app working.
Martín Itúrbide
OS2World.com NewsMaster
Open Source Advocate

Skype - martiniturbide
Google Talk - martiniturbide@gmail.com

CDRWSel

  • Sr. Member
  • ****
  • Posts: 420
    • View Profile
Re: Java for os2
« Reply #58 on: 2011.05.25, 11:41:17 »
Mercury 2.0 rc8 now works with the new Java 6 - WSE release :)

Hi,
Could you give more details about how you get it working ?
I tried it but didn't work...

sXwamp

  • Full Member
  • ***
  • Posts: 228
    • View Profile
    • OS/2 Release Notes
Re: Java for os2
« Reply #59 on: 2011.05.25, 21:39:43 »
Mercury 2.0 rc8 now works with the new Java 6 - WSE release :)

Hi,
Could you give more details about how you get it working ?
I tried it but didn't work...


Try this package of Mercury/2:

http:\\www.os2notes.com\files\Mercury2.zip

Just change the path to Java 6, in the CMD file.


Greggory