• Welcome to OS2World OLD-STATIC-BACKUP Forum.
 

News:

This is an old OS2World backup forum for reference only. IT IS READ ONLY!!!

If you need help with OS/2 - eComStation visit http://www.os2world.com/forum

Main Menu

Java for os2

Started by eilygre, 2011.03.14, 21:59:17

Previous topic - Next topic

abwillis

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

#46
Quote from: abwillis on 2011.05.02, 05: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

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.

miturbide

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

Quote from: miturbide on 2011.05.18, 01:37:51
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

Quote from: djcaetano on 2011.05.18, 06:03:04
Quote from: miturbide on 2011.05.18, 01:37:51
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

Quote from: lpino on 2011.05.18, 15:49:05
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

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

#52
Quote from: djcaetano on 2011.05.19, 04:50:38
Quote from: lpino on 2011.05.18, 15:49:05
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

sXwamp

Mercury 2.0 rc8 now works with the new Java 6 - WSE release :)

miturbide

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

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

Skype - martiniturbide
Google Talk - martiniturbide@gmail.com

sXwamp

Quote from: miturbide on 2011.05.22, 20:04:19

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

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

Quote from: sXwamp on 2011.05.22, 14:58:04
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

Quote from: CDRWSel on 2011.05.25, 12:41:17
Quote from: sXwamp on 2011.05.22, 14:58:04
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