OS2World OLD-STATIC-BACKUP Forum

OS/2 - Technical => Applications => Topic started by: eilygre on 2011.03.14, 21:59:17

Title: Java for os2
Post by: eilygre on 2011.03.14, 21:59:17

Java has really changed my use of eCS.
Now I can run Genealogy, what I couldn't with the former versions. Now I can use Jalbum to make web presentations from my travels. Jalbum use FTP to upload the generated albums, but the target server does not except FTP. I found MindTerm, a SCP program written in Java - very good so far.
There still are bugs in the Java version, but they seem to  being solved very quickly. I am satisfied.
Now I'm starting to hunt for other good programs, for example. accounting program for home use, a program for producing nice web pages, and so on.
But, there is a but. The project is still missing nearly 4000 €. I recommend that as many as possible donate a sum to the project. Java brings eCS a big jump forward.

Please support the project.
Title: Re: Java for os2
Post by: miturbide on 2011.03.16, 17:43:04

I agreed with you on helping the project to get the funds. Java will open the doors to run many programs under this platform.

Why don't you post some screenshots of the Java applications you are running with Java 6?

Here goes one.
Title: Re: Java for os2
Post by: eilygre on 2011.03.16, 22:23:11
Here is two screen shots from the applications I am running.  The preview  does not let me see the result when I am posingt this reply- hope it is OK.
Title: Re: Java for os2
Post by: ivan on 2011.03.16, 23:21:28
Hi eilygre,

Which version of jAlbum is that?  The last one I got to work is 7.2.

ivan

Title: Re: Java for os2
Post by: eilygre on 2011.03.17, 02:48:07
I use jAlbum 9.1.3.
But there are some bugs in Java or Odin that gives a few problems.
Sometimes jAlbum don't start. It just consumes 100 % CPU for a minute or so and then dies. I had often to reboot up to 10 times before it started.
One can not drag and drop pictures into the work area, that kills the program. You have to use the File Open Dialog to select the pictures you want to create an album for.
Title: Re: Java for os2
Post by: CDRWSel on 2011.03.19, 10:30:20
jalbum will not install for me.
Title: Re: Java for os2
Post by: Michaelhz on 2011.03.19, 11:32:36
...try http://jalbum.net/download/jAlbum9.1.3.zip. The installer does not work (see tickets in http://svn.netlabs.org/java/report).
Any further bugs of java please create a ticket there.

Michael
Title: Re: Java for os2
Post by: miturbide on 2011.03.19, 15:56:47
Here it is a TVBrowser screenshot.

http://hilfe.tvbrowser.org/viewtopic.php?f=2&t=14408

....to bad there is no TV programming for my country.
Title: Re: Java for os2
Post by: Pete on 2011.03.21, 18:16:51
Hi All

I've not played much with the java6 port myself - about the only app I had tried was Sudoku which worked fine but used lots of cpu when starting - but recently downloaded and installed JPhotoBrush http://www.jphotobrushpro.com to show my son, who uses PhotoShop, that there are alternatives to the M$ world.

I have the "SMP friendly" version of java6 installed ie it should only work on 1 cpu.

However, when running JPhotoBrush I see both cpus are in use - and trying to open files simply does not work, the cpus peak and after a short period of time when it is obvious that the app has got problems it is necessary to kill the app.

So, java6 is not yet ready for use it seems. Guess I ought to open a bug report about this but just wondered if anyone else could confirm the above problems.

Regards

Pete
Title: Re: Java for os2
Post by: miturbide on 2011.03.21, 19:04:13
Hi Pete

I tried JPhotoBrush on a virtual machine with one proc and I didn't get any strange CPU use. It started to use more CPU when opening the file and later the CPU use just get back to normal.

Possible the general Java bug with SMP remains, can you test it without SMP?
Title: Re: Java for os2
Post by: Pete on 2011.03.21, 22:15:34
Hi Martin

Sorry, I guess I was not very clear: My system has a dualcore processor; the java6 package I installed was the "SMP friendly" version which has already had markexe.exe run on the executables so that java6 only uses 1 cpu.

However, JPhotoBrush was obviously using *both* cpus which, I suspect, caused it to hang when trying to open a file. This is repeatable here, in my 5 attempts to open a file both cpus peak and JPhotoBrush hangs.

Regards

Pete
Title: Re: Java for os2
Post by: eilygre on 2011.03.24, 16:27:29
JPhotoBrush is for me another proof of the importance of Java for eCS/OS2. Now I can edit old scanned pictures in a way I couldn't before. I bought PMView Pro a few weeks ago, but it has not the necessary functions.
There is a site (OS/2 Java Corner) on  http://www.os2world.com/java/ (http://www.os2world.com/java/) that contains a lot of info about programs and applications that can be run using Java, but it has not been updated since 2007. I think it is time to start updating it again. Have a look.
Title: Re: Java for os2
Post by: miturbide on 2011.03.27, 02:27:42
Here it is IconPainter (Shareware) test.
Title: Re: Java for os2
Post by: miturbide on 2011.03.27, 02:36:35
Here it is another Java icon editor tool
http://download.cnet.com/Icon-Editor-Java/3000-2195_4-10898757.html

Title: Re: Java for os2
Post by: melf on 2011.03.27, 12:03:55
I got this one working. Didn't work with earlier javas, but with openjdk6! It's Costat (and Coplot). It is a statistical software (commercial) from CoHort Software, www.cohort.com .
Title: Re: Java for os2
Post by: sXwamp on 2011.03.31, 12:15:30
I got SecureFTP 2.61, jAlbum's v9.2, jEdit 4.4pre1, jFTP 4.0, Jeti/2 Jabber IM and JPhotoBrush working.

Mercury 2.0 rc8 has some problems, but it's almost there.


Here are some screen shots, plus zip files for the non-working installers:

http://www.os2notes.com/os2java6.html


Greggory
Title: Re: Java for os2
Post by: miturbide on 2011.03.31, 18:15:55
Anybody willing to Try Jake2  (Java port of Quake 2).
http://bytonic.de/html/jake2.html

I saw some windows DLLs on the program, but the author says it is pure java.

I'm still looking around for the Quake 2 files to test it.
Title: Re: Java for os2
Post by: abwillis on 2011.03.31, 20:49:33
I downloaded the installer and the installer ran fine but when it gets to the point of what modules to install there are no modules available.  I went ahead and forged on and at the end it had created a folder with the uninstaller, nothing else.  I then looked at the jnlp version and there are two versions...

"You have the choice to start Jake2 with jogl OpenGL driver and joal OpenAL driver or to use lwjgl as OpenGL and audio library. The lwjgl version has the advantage of better fullscreen support especially on linux and it is slightly faster than jogl. But there are still some keyboard issues with the lwjgl version (deadkeys and repeats are not handled properly). So try out both versions and use the one you like better."
Title: Re: Java for os2
Post by: miturbide on 2011.04.01, 03:44:50
Hi

I tried with Java6 RC2 runnig it with:

SET CP=lib/jake2.jar;lib/jogl.jar;lib/joal.jar
java -Xmx100M -Dsun.java2d.noddraw=true -Djava.library.path=lib/windows -cp %CP% jake2.Jake2

The program loaded only till it downloaded the Shareware quake2 levels. Them it just hangs on Initializing client subsystem...
I can not grab the complete error, so I post some screenshots.
Title: Re: Java for os2
Post by: jep on 2011.04.01, 11:40:28
It require 3D graphics with OpenGL Support (+ JOGL JAVA OpenGL), something that is not available in OS/2 until (hopefully) Mr. Sharpe has something ready for prime time and Odin can use it as well.

//Jan-Erik
Title: Re: Java for os2
Post by: Sigurd on 2011.04.02, 19:35:39
Hi,

I do have Merlin now running on the X200T with SMP Support, WLAN, LAN, UMTS(WWAN), Stylus..... It was really hard to figure out the right IRQ selection in BIOS, and most astonishing: it runs much more better and reliable with AHCI (in fact WLAN is NOT working without it) - I do not know if this is due to the fact that is is running from an Corsair 2 SSD using HPFS File System (Merlin does have JFS support for the other Partitions :-) ). It did never crash so far and is very fast!

And I did test Java 6 (the "SMP safe" one) on it - congratulations to Silvan Scherrer and his Team!!!

I do use Jarnal (a Journal program to be used with the Stylus, similar to the Windows Journal) and JDraw to draw with the Stylus to draw  :)

It seems that those need a bit longer to start with Java 16 than 1.42, but the look much more pretty, see picture attached.

Super!

Sigurd
Title: Re: Java for os2
Post by: diver on 2011.04.02, 20:55:56
thanks for all the positive feedback. we just hope that we get more sponsorunits, as we still lack a lot to reach the goal.
And i have to say, even a lot people don't want to hear it, without Mensys OpenJDK would never have been done.
Mensys is the main sponsor behind all that. With Qt the community was a big help, as they really sponsored a lot.
With OpenJDK it seems, at least according to the sponsored units, the community is not interested to get it.

I hope you prove me wrong in the next couple of weeks.

regards and keep on testing
Silvan
Title: Re: Java for os2
Post by: craigm on 2011.04.03, 01:58:54
Not trying to hijack this group but is there anywhere that shows me how to install Java?

I downloaded everything from: http://svn.netlabs.org/java and installed:

GCC 4 Core Libraries, Odin32 Library, and systray widget.

Odin and systray install fine since they are WarpIn, GCC 4 was already installed.

I could not find anything with a readme on where to put the file OPENJDK6_B22_SDK_OS2_RC2-20110328_MPUNSAFE. I did not see an install anywhere. Can anyone show me where a step by step walk-though is?

I want to start testing some apps but can't even get past the Java install.

Title: Re: Java for os2
Post by: diver on 2011.04.03, 09:45:20
see http://svn.netlabs.org/java/browser/trunk/doc/README.OS2
afaik it's included in the zip,

regards
Silvan
Title: Re: Java for os2
Post by: Sigurd on 2011.04.04, 08:48:41

I hope you prove me wrong in the next couple of weeks.

regards and keep on testing
Silvan

Yes, you are right - I try to do my best and it was really time to donate something to you and your team, so I did it yesterday - not only to proof you wrong but also to support your great work. Hope it helps a bit.

Sigurd
Title: Re: Java for os2
Post by: Pete on 2011.04.04, 15:29:34
Hi craigm

The openjdk6 files are in a zip file so you simply need to unzip it to your choice of location but keep the directory structure that exists within the zip file.

I unzip to my temp directory and then copy the contents of the \temp\"ridiculously-log-filename-with-build-and-date-information" to my existing openjdk6 directory and finally delete the \temp\"ridiculously-log-filename-with-build-and-date-information" directory.

I do not use Path or LibPath entries in config.sys but simply start my java apps using the full path to the java(w).exe file with the jar file as a parameter in a program object; eg for JPhotoBrush:-

J:\JAVA\OPENJDK6\BIN\JAVAW.EXE
-jar J:\Java\jphotobrush\jphotobrush.jar


Hope the above helps

Pete
Title: Re: Java for os2
Post by: craigm on 2011.04.05, 03:09:27
Pete,

I tried that but I seriously don't think I am smart enough. I made a dir called c:\openjdk6 and put all the files there.

I then went to bin/javaw.exe and tried to put in the attrib for Jeti/2, it did not work.

However, there is an awesome app all called Run Java that is a generic script for starting java13 and java14 apps in OS/2-eCS.

I used it all the time in 1.4 but now that 1.6 is out it will not use it. I have emailed the author to see if he will update the app. Fingers crossed. Blah, update, his email got kicked back...well, I guess I will wait for 2.1 to come out and hopefully have it right in the OS.
Title: Re: Java for os2
Post by: Pete on 2011.04.06, 00:10:51
Hi craigm

Well, I'm not a java expert and I've never used Jeti/2 - some sort of chat client? - so I'm probably not going to be much help in getting this working  :-)

I did not really understand this line in your post "I then went to bin/javaw.exe and tried to put in the attrib for Jeti/2, it did not work."

Create a program object called "Jeti - java6" from c:\openjdk6\bin\javaw.exe then open the Properties for that object and add in the necessary Parameters to start Jeti/2.

If that fails try starting from a command line in the directory c:\openjdk6\bin  eg:-

c:\openjdk6\bin\java.exe -jar [drive:]PathTo\jeti.jar

If the command line fails then, with a bit of luck, you should get some sort of message why.

Regards

Pete
Title: Re: Java for os2
Post by: Ben on 2011.04.06, 00:34:39
I then went to bin/javaw.exe and tried to put in the attrib for Jeti/2, it did not work.

However, there is an awesome app all called Run Java that is a generic script for starting java13 and java14 apps in OS/2-eCS.

I used it all the time in 1.4 but now that 1.6 is out it will not use it. I have emailed the author to see if he will update the app. Fingers crossed. Blah, update, his email got kicked back...well, I guess I will wait for 2.1 to come out and hopefully have it right in the OS.

Jeti comes with a self-installer.

After it has completed its task an icon is created with a reference to a "JETI2START.CMD".

Here is its contents:

@echo off

echo. Jeti2Start.cmd for eCS / OS/2... Create from ES-Jeti2 Installation

Set BeginLibPath=C:\PROGRAMS\JAVA142\BIN\;
Set PATH=C:\PROGRAMS\JAVA142\BIN\;%PATH%

REM SET USER_HOME=C:\my upload-downloadDir

Javaw -jar Jeti2.jar


I'm stating the obvious when I write; adjust it to your own drive and directory spec.s.

You might have done all of this already, but if you have not, then you have the necessaries now. 8)

And if this is irrelevant to your goal, then just write this message off as a weak attempt to increase my post count... :o

NOT!  :D

Heheheh...
Title: Re: Java for os2
Post by: miturbide on 2011.04.07, 02:27:01
I just notice this.

"The TIOBE Programming Community index is an indicator of the popularity of programming languages. The index is updated once a month. The ratings are based on the number of skilled engineers world-wide, courses and third party vendors. The popular search engines Google, Bing, Yahoo!, Wikipedia, YouTube and Baidu are used to calculate the ratings. Observe that the TIOBE index is not about the best programming language or the language in which most lines of code have been written."

http://www.tiobe.com/index.php/content/paperinfo/tpci/index.html (http://www.tiobe.com/index.php/content/paperinfo/tpci/index.html)

Java is #1, another reason why this port is important for eCS-OS2.
Title: Re: Java for os2
Post by: Ben on 2011.04.07, 11:57:09

I have to say, I did not expect JAVA to be in the number one position.

I would have thought that "C", (or a variant thereof), would hold that spot.

Interesting...

Title: Re: Java for os2
Post by: miturbide on 2011.04.07, 15:06:29
Ben, I also didn't expected to see Java in the #1 position. I just find that post in reddit.com and grabbed my attention.  But there are other studies that put C on top of Java - http://langpop.com/ (http://langpop.com/)(15-Feb).
Title: Re: Java for os2
Post by: abwillis on 2011.04.07, 15:43:42
Java is what the kids are taught in colleges anymore.  I've talked to some of them going to school over the last several years as well as when I was considering going back to school and checking into degree programs found that you can hardly even find a C course, some C++ but mostly Java.  For degrees with programming emphasis, Java is often required but C++ is an elective and several I looked at didn't even have C.
Title: Re: Java for os2
Post by: Ben on 2011.04.07, 21:39:59

That's a clear tell.

Lots to be deduced from it, and potential predictions based upon it.

Understanding that, it also points to the origins of changes within our "education" systems curriculum.

JAVA is not a natural forerunner. There is a missing piece creating an apparent nonsequitur; we're in the dark here... or at least some are.

Title: Re: Java for os2
Post by: miturbide on 2011.04.07, 23:54:03
Does anybody tried Netbeans with this Java release?

I had download it but I don-t see it as a platform independent .jar file to run, on the binaries I see an exe and a linux file.
Title: Re: Java for os2
Post by: lpino on 2011.04.08, 18:54:29
Does anybody tried Netbeans with this Java release?

I had download it but I don-t see it as a platform independent .jar file to run, on the binaries I see an exe and a linux file.


Hello Martin

Use http://netbeans.org/downloads/zip.html there you'll find the ZIP files
I use netbeans 5 with JDK 1.4.1 and runs just fine. Tell me how it works with the new Java

Nos vemos

Chao
Title: Re: Java for os2
Post by: miturbide on 2011.04.08, 19:58:22
Hola Leo, do you have run script to make it run. The documentation of Netbeans says doble click the Windows exe or run the linux executable file.
Title: Re: Java for os2
Post by: sXwamp on 2011.04.09, 08:19:38
Hola Leo, do you have run script to make it run. The documentation of Netbeans says doble click the Windows exe or run the linux executable file.

Netbeans 5 starts up with java 6, but no luck with 6.9.1.  There is a CMD file included in the BIN directory up until 5.5.1 -- I didn't try any past that version.  And you need to edit the cfg file in the ETC directory.

Greggory
Title: Re: Java for os2
Post by: djcaetano on 2011.04.09, 19:03:38
Hola Leo, do you have run script to make it run. The documentation of Netbeans says doble click the Windows exe or run the linux executable file.
Netbeans 5 starts up with java 6, but no luck with 6.9.1.  There is a CMD file included in the BIN directory up until 5.5.1 -- I didn't try any past that version.  And you need to edit the cfg file in the ETC directory.
Greggory

  I have downloaded 5.5.1 version, but I am receiving an SYS1056 error. It seems nbexec.cmd is composing a too-large command line (mainly due to -cp directive). I tried to set classpath before running java vm (and thus removing -cp from java vm command line) but received an unexpected exception "Main" not found (which usually means there is something missing on classpath or wrong class being executed by JVM).
  Any insights?

PS: this error happens no matter what Java version is being used, since it happens on CMD loader level.
Title: Re: Java for os2
Post by: miturbide on 2011.04.09, 19:35:16

If anybody can post the call sentence that get generated by the REXX script will be usefull. I get confused of how the netbeans rex script is calling java.exe to run it.
Title: Re: Java for os2
Post by: djcaetano on 2011.04.09, 19:46:46

If anybody can post the call sentence that get generated by the REXX script will be usefull. I get confused of how the netbeans rex script is calling java.exe to run it.

Here it is; It is installed on K:\NETBEANS and JVM is on c:\programs\java160:

c:\programs\java160\bin\java -Djdk.home="c:\programs\java160" -cp "K:\NETBEANS\platform6\lib\boot.jar;K:\NETBEANS\platform6\lib\org-openide-modules.jar;K:\NETBEANS\platform6\lib\org-openide-util.jar;K:\NETBEANS\platform6\lib\locale\boot_ja.jar;K:\NETBEANS\platform6\lib\locale\boot_pt_BR.jar;K:\NETBEANS\platform6\lib\locale\boot_zh_CN.jar;K:\NETBEANS\platform6\lib\locale\org-openide-modules_ja.jar;K:\NETBEANS\platform6\lib\locale\org-openide-modules_pt_BR.jar;K:\NETBEANS\platform6\lib\locale\org-openide-modules_zh_CN.jar;K:\NETBEANS\platform6\lib\locale\org-openide-util_ja.jar;K:\NETBEANS\platform6\lib\locale\org-openide-util_pt_BR.jar;K:\NETBEANS\platform6\lib\locale\org-openide-util_zh_CN.jar;K:\NETBEANS\platform6\lib\locale\swing-l10n_pt_BR.jar;c:\programs\java160\lib\dt.jar;c:\programs\java160\lib\jconsole.jar;c:\programs\java160\lib\tools.jar;" -Dnetbeans.user="K:\HOME\DJCAETANO\.netbeans\5.5.1" -Dnetbeans.osenv="J:\LOTUS\TEMP\nbenv61.013" -Dnetbeans.osenv.nullsep=FALSE -Dnetbeans.dirs="K:\NETBEANS\nb5.0;K:\NETBEANS\ide6" -Dnetbeans.home="K:\NETBEANS\platform6"  -Dnetbeans.importclass=org.netbeans.upgrade.AutoUpgrade -Dnetbeans.accept_license_class=org.netbeans.license.AcceptLicense -Xms32m -Xmx128m -XX:PermSize=32m -XX:MaxPermSize=160m -Xverify:none -Dapple.laf.useScreenMenuBar=true org.netbeans.Main  --branding nb

   No wonder why OS/2 complains about the command line size. :P
Title: Re: Java for os2
Post by: miturbide on 2011.04.19, 05:24:53
I also tried a small app that was on Jabaco sample (a calculator). Jabaco is BASIC compiler similar to VB6 in java technology. (http://www.jabaco.org/)

Too bad that the Jabaco IDE only runs on Windows, but it can generate .jar files, which Im testing.

Title: Re: Java for os2
Post by: djcaetano on 2011.04.30, 23:50:24
Use http://netbeans.org/downloads/zip.html there you'll find the ZIP files
I use netbeans 5 with JDK 1.4.1 and runs just fine. Tell me how it works with the new Java
Nos vemos

  Hi Leo!

  I was not able to make NetBeans 5 start up so I fall back to NetBeans 4.1. I was
able to run it with Java 1.4.2, Java 1.5.0 and OpenJDK 1.6.0... But I am experiencing
a bizarre problem: NetBeans doesn't show me any text outputs when running the program
through the IDE. That means: System.out.println doesn't produce any result when running
inside the IDE. Running the JAR directly works ok. Swing output also works nice.

   Are you experiencing this kind of problem?
Title: Re: Java for os2
Post by: miturbide on 2011.05.01, 16:22:56
I also tried the Netbeans 7 that was released some weeks ago.

I didn't get it to work. It even seems that the platform independ version has some binaries for Windows and Linux. Or possible I don't have the complete skills to make it run.

Title: Re: Java for os2
Post by: djcaetano on 2011.05.02, 03:49:01
I also tried the Netbeans 7 that was released some weeks ago.
I didn't get it to work. It even seems that the platform independ version has some binaries for Windows and Linux. Or possible I don't have the complete skills to make it run.

  The problem I am experiencing with any version since 5.0 is an OS/2 command line size limitation: the command line used to start netbeans is HUGE as I have posted previously. Have you solved this problem?
Title: Re: Java for os2
Post by: abwillis 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
Title: Re: Java for os2
Post by: djcaetano 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.
Title: Re: Java for os2
Post by: miturbide 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?
Title: Re: Java for os2
Post by: djcaetano 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.
Title: Re: Java for os2
Post by: lpino 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
Title: Re: Java for os2
Post by: djcaetano 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.
Title: Re: Java for os2
Post by: miturbide 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.
Title: Re: Java for os2
Post by: sXwamp 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
Title: Re: Java for os2
Post by: sXwamp on 2011.05.22, 13:58:04
Mercury 2.0 rc8 now works with the new Java 6 - WSE release :)
Title: Re: Java for os2
Post by: miturbide 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 !!
Title: Re: Java for os2
Post by: miturbide on 2011.05.22, 19:16:52
muCommander seems to work fine too.
ver 0.8.5

http://www.mucommander.com/index.php#download
Title: Re: Java for os2
Post by: sXwamp 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
Title: Re: Java for os2
Post by: miturbide on 2011.05.22, 22:23:24
Thanks sXwamp

Here it is the Gallery:
http://www.os2world.com/gallery/v/progs/java/ (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.
Title: Re: Java for os2
Post by: CDRWSel 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...
Title: Re: Java for os2
Post by: sXwamp 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
Title: Re: Java for os2
Post by: miturbide on 2011.05.26, 04:14:41
I also tried makagiga, a to do manager and notepad.

http://makagiga.sourceforge.net/

...seems to work fine.
Title: Re: Java for os2
Post by: miturbide on 2011.05.26, 04:16:23
JavaBlock. Free Java Flowchart simulator / interpreter
http://sourceforge.net/projects/javablock/

Title: Re: Java for os2
Post by: miturbide on 2011.05.26, 04:20:39
ScenePainter
"ScenePainter is a program for creating comics by (re-)arranging prefabricated graphic"

http://scenepainter.onyxbits.de/

It seems to run fine, but I'm not sure how to make it work.
Title: Re: Java for os2
Post by: miturbide on 2011.05.26, 05:18:39
Cineaste - is a personal movie manager for your home movie library.

http://code.google.com/p/cineaste/downloads/list?q=label:java

Title: Re: Java for os2
Post by: sXwamp on 2011.05.26, 11:57:23
I'm reposting this since it's not showing up in my last post.

Here is the package for Mercury/2:

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

Just change the path for your Java 6 installation in the CMD file.


Greggory
Title: Re: Java for os2
Post by: melf on 2011.05.26, 13:00:34
Hi Greggory,
according to arcview the Mercury-file is corrupted in some way.

Title: Re: Java for os2
Post by: sXwamp on 2011.05.27, 02:22:42
Hi Greggory,
according to arcview the Mercury-file is corrupted in some way.


Opps, for some reason I can't upload after installing eCS 2.1 ???

The new file has been uploaded and should be OK now, sorry:

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

Just change the path for your Java 6 installation in the CMD file.


Greggory
Title: Re: Java for os2
Post by: CDRWSel on 2011.05.27, 10:04:06
Hi Greggory,
according to arcview the Mercury-file is corrupted in some way.


Opps, for some reason I can't upload after installing eCS 2.1 ???

The new file has been uploaded and should be OK now, sorry:

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

Just change the path for your Java 6 installation in the CMD file.


Greggory

Hi, Mercury 2 RC8 (with latest odin and java1.6 (unsafe smp build) ) will start but it is very slow compared to 1.9.5 with java 1.4.2. Some function aren't working but the most important is that the friends list is unusable !!!
This is unusable for me and it cannot be told as working. See the picture

I plaied a litle with "view" and html tags but this didn't help to make it usable and full name display
Cheers  
Title: Re: Java for os2
Post by: melf on 2011.05.27, 11:05:24
Strange, mine is fine and not slow. But I do not have SMP build.
Title: Re: Java for os2
Post by: CDRWSel on 2011.05.27, 14:58:03
I think it should all work in SMP mode due all PC's and new systems are SMP (single core CPU are very old and results in a drop of performance).

As you could see, the problem seems not to be with SMP but with fonts and space between lines etc...
The performance issue looks more to be due SMP mode...

Mercury 1.9.5 with java 1.4.2 took 2s to start while v2 rc8 + java 1.6 needs about 8s to start ! 

Cheers
Title: Re: Java for os2
Post by: alstaszko on 2011.05.27, 17:26:53
I tried it with Eclipse IDE 3.6.2 'Helios' for C/C++.
Couldn't get it to work first time.
Tried borrowing the Eclipse enabler but that didn't work either.

Any suggestions.

P.S. Anyone got SmartCVS or SmartSVN working?

Andy Staszko
Title: Re: Java for os2
Post by: Andi on 2011.05.30, 12:14:09
...
P.S. Anyone got SmartCVS or SmartSVN working?

Andy Staszko

I run SmartSVN and SmartSynchronize occasionally. No need for CVS anymore. It works on different machines but had a little to much crashes with Java apps on my main SMP machine :-). So downloaded the WSE version at weekend but didn't install it till now.
Title: Re: Java for os2
Post by: Gregg on 2011.06.07, 06:17:04
I have SmartSvn 6.6.7 working fine with it. You need to use SET JAVA_OPT=%JAVA_OPT% "-Dsmartsvn.checkIncompatibleJava=false" or it will fail.To get it to work on SMP you need to set all the JAVA exes to use only one processor. This is true for JAVA 1.42 also. SmartCVS still works with JAVA 1.42 so the Dsmartsvn.checkIncompatibleJava=false switch doesn't appear to be available resulting in SmartCVS failing to load.
Title: Re: Java for os2
Post by: miturbide on 2011.06.13, 04:50:49
One App I really liked is JDownloader.

It takes some time to load, and some updates that it does when it loads, but it is good tool to download file. It also support other sites like YouTube.

I think this app is the a Must Have Java Application.
Title: Re: Java for os2
Post by: miturbide on 2011.06.13, 04:55:53
ohh, I forgot the link:
http://jdownloader.org/download

It is open source- GNU GPL.
Title: Re: Java for os2
Post by: miturbide on 2011.06.28, 15:55:28
OpenJDK Ga is now available for download: http://svn.netlabs.org/java

Please post any Java software you are testing on this thread.
Title: Re: Java for os2 - WPI
Post by: Batchheizer on 2011.06.28, 17:02:08
I've created a WPI for the new JAVA. You could find it on Hobbes.
Title: Re: Java for os2
Post by: warpcafe on 2011.06.28, 18:11:45
Hi,

I start to believe that the forum software here is missing the important feature of "LIKE" buttons. :-)

Great job guys, kudos to Silvan and Dmitry.
Hopefully we will be able to give them the missing money somehow.

Cheers,
Thomas
Title: Re: Java for os2
Post by: sXwamp on 2011.06.28, 20:15:13
Updated: my Java 6 page here:

http://www.os2notes.com/os2java6.html

This page has some zip packages too, for the programs that have Win only installers !

Please leave any comments and programs that you have working -- with settings you use :)


Cheers,

Greggory
Title: Re: Java for os2
Post by: cytan on 2011.06.28, 23:22:06
Hi guys,
   I'm trying out the JAVA 1.6 for the first time. How do I run a jnlp file? According to google I need javaws but I only see javaw in the distribution. And running
             javaw program.jnlp
gives me "Could not find the main class: program.jnlp. Program will terminate".

Any help appreciated.

cytan
 
Title: Re: Java for os2
Post by: ppgrainbow on 2011.06.28, 23:34:27
Awesome work on getting OpenJDK 1.6 to work on OS/2. Infact, I need to test out some of the Java apps on my OS/2 Warp 4 Fixpack 15-based VM under Virtual PC 2004! :D

However, some of the apps that used to work in Java 1.4.2_09 no longer work in Java 1.6u22. For example, when I try to run the GUI version of the Logical Volume Manager Tool, I get a SYS3170 with the following error on exit:

"SYS1808: The process has stopped.  The software diagnostic code (exception code) is 0053."

SYS1808 means that programme generated an exception that the system cannot resolve.  The software diagnostic code allows determination of what type of exception was generated.

Is there a way to fix this?  ???

Other software that runs Java appears to run okay without problems.
Title: Re: Java for os2
Post by: David McKenna on 2011.06.29, 01:21:36
ppgrainbow,

 Both the LVM tool and the TCP/IP configuration tool do not work with this version of Java. This is a known issue and is marked for an 'Enhanced' release (if it can be fixed). It would be interesting if someone could try them using Java6 on a different platform to see if they work there. It is hard to see how Java6 could be made the default Java if these can not be made to work (unless they are replaced with some other app).

@cytan: jnlp I believe needs Java Web Start and that is not available with this release (see README). It is marked for a GA2 release - see http://svn.netlabs.org/java/roadmap

Regards,

Dave McKenna
Title: Re: Java for os2
Post by: miturbide on 2011.06.29, 02:05:39
About JNLP, it is not included in OpenJDK AFAIK. I tried some other JNLP java clones like OpenJNLP, netx and xito but I didn-t find them interesting. The ones that work I don't know how to load a JNLP file. Possible you also should try it and tell your experience.

About LVM tool and the TCP/IP configuration tool I think we need a replacement (preferable open source) for those modules. I don't think it had been updated in a long while.

I was trying I2P Anonymous Network (http://www.i2p2.de/), but the installer is not extracting any files. But it was interesting that you can do a "java -jar i2pinstall_0.8.6.exe" to a windows exe file.. very interesting.  Anybody that makes it work, please let me know.

Title: Re: Java for os2
Post by: miturbide on 2011.06.29, 02:58:36
I just notice that on the Java SVN there is a screenshot of LAoE, which looks interesting too. I also need to test it further.

LAoE is open source (GNU GPL)
http://www.oli4.ch/laoe/home.html
Title: Re: Java for os2
Post by: ppgrainbow on 2011.06.29, 03:31:38
ppgrainbow,

 Both the LVM tool and the TCP/IP configuration tool do not work with this version of Java. This is a known issue and is marked for an 'Enhanced' release (if it can be fixed). It would be interesting if someone could try them using Java6 on a different platform to see if they work there. It is hard to see how Java6 could be made the default Java if these can not be made to work (unless they are replaced with some other app).

@cytan: jnlp I believe needs Java Web Start and that is not available with this release (see README). It is marked for a GA2 release - see http://svn.netlabs.org/java/roadmap

Regards,

Dave McKenna

LVM previously worked in Java 1.4.2_09 and the LVM utilites have not been updated since January 2006 (more than five years ago. I'm hoping that LVM can work again in the Enhanced release of Java 6 if it can be fixed, if it can't...then LVM/TCPCFG2 will most likely be dropped and marked a WONTFIX since it would require too much work, I believe. :(

There are a lot of things that don't work with Java6 for the time being and I'm hoping that it's more stable enough so that it can replace the already obsolete Java 1.4.2_09.
Title: Re: Java for os2
Post by: djcaetano on 2011.06.29, 05:59:07
OpenJDK Ga is now available for download: http://svn.netlabs.org/java

Please post any Java software you are testing on this thread.

  I was able to run NetBeans 6.9.1 on it, but can't build / run; when I try "Build and Run"
I am receiving a "Java executable not found". When trying to build (only), after some
hard disk activity, an "error icon" is shown with the following message: "Unexpected
exception".
  LPino said he was able to run NetBeans 5 with Java 1.4.1 and 1.4.2; I was not (at
least I not reliably) but never received any answer when asking for correct CMD files.

  Anyone has had a better result?

  Regards!
Title: Re: Java for os2
Post by: sXwamp on 2011.06.29, 06:31:13
OpenJDK Ga is now available for download: http://svn.netlabs.org/java

Please post any Java software you are testing on this thread.

  I was able to run NetBeans 6.9.1 on it, but can't build / run; when I try "Build and Run"
I am receiving a "Java executable not found". When trying to build (only), after some
hard disk activity, an "error icon" is shown with the following message: "Unexpected
exception".
  LPino said he was able to run NetBeans 5 with Java 1.4.1 and 1.4.2; I was not (at
least I not reliably) but never received any answer when asking for correct CMD files.

  Anyone has had a better result?

  Regards!


For NetBean 5 only -- just edit the 'netbeans.conf' file to point to the Java version that
you want to use. Its in the ETC of the Netbeans install directory. This way you can
easily change what version of Java to use.

Then use the CMD file in the bin directory to start Netbeans 5, no editing necessary
for the CMD file


Greggory
Title: Re: Java for os2
Post by: melf on 2011.06.29, 13:36:34
I just notice that on the Java SVN there is a screenshot of LAoE, which looks interesting too. I also need to test it further.

LAoE is open source (GNU GPL)
http://www.oli4.ch/laoe/home.html


Noticed that too Martin, really exciting. Have downloaded it, seems VERY feature rich. A needed software.
Title: Re: Java for os2
Post by: cytan on 2011.06.29, 16:49:21
About JNLP, it is not included in OpenJDK AFAIK. I tried some other JNLP java clones like OpenJNLP, netx and xito but I didn-t find them interesting. The ones that work I don't know how to load a JNLP file. Possible you also should try it and tell your experience.

About LVM tool and the TCP/IP configuration tool I think we need a replacement (preferable open source) for those modules. I don't think it had been updated in a long while.

I was trying I2P Anonymous Network (http://www.i2p2.de/), but the installer is not extracting any files. But it was interesting that you can do a "java -jar i2pinstall_0.8.6.exe" to a windows exe file.. very interesting.  Anybody that makes it work, please let me know.



netx seems to work, but had to add -nosecurity option. I could get OpenJNLP to start but not run the jnlp programme, probably some switches need to be thrown.

Fantastic that java6 is now available for OS/2!

cytan
Title: Re: Java for os2
Post by: cytan on 2011.06.29, 16:56:56
Can I assume that there's no JAVA plugin as of now?



cytan
Title: Re: Java for os2
Post by: ppgrainbow on 2011.06.30, 02:07:35
Can I assume that there's no JAVA plugin as of now?



cytan

No Java plugin is available for Firefox or SeaMonkey at this time and I'm hoping to see developers get Java 6 to work in Firefox 3.6/SeaMonkey 2.1 and later.

Firefox 3.5 and SeaMonkey 2.0 (as it is based on Gecko 1.9.1) were the last versions of the browser to work with older versions of Java. Firefox 3.5 went EOL when Firefox 4.0.1 was released. I can also expect SeaMonkey 2.0 to hit EOL too when SeaMonkey 2.2 gets released also. :(
Title: Re: Java for os2
Post by: miturbide on 2011.07.10, 17:28:02
The Mozilla plugins is on the Java roadmap for GA2. (http://svn.netlabs.org/java/query?group=status&milestone=GA2) . But lets remember that the project still needs to get more funding.
Title: Re: Java for os2
Post by: miturbide on 2011.07.10, 19:26:53
I also tried Montezuma's Gems
http://java-apps.org/content/show.php/Montezuma%27s+Gems?content=141799

Seems to work fine, no sound. It shows some errors while loading the wav sounds.
Title: Re: Java for os2
Post by: ppgrainbow on 2011.07.12, 01:43:43
The Mozilla plugins is on the Java roadmap for GA2. (http://svn.netlabs.org/java/query?group=status&milestone=GA2) . But lets remember that the project still needs to get more funding.

Thanks for the heads up. The project still needs approximately €1,360 ($1,910) and its getting there. :)
Title: Re: Java for os2
Post by: gap on 2011.07.15, 19:26:21
apache-tomcat-7.0.16 runs with Java1.6 using slightly modified scripts in tomcat_5-0-27_os2.zip

Also the same application runs with postgresql-9.0.3-os2-20110206.zip using the JDBC4 connector postgresql-9.0-801.jdbc4.jar
which needs Java 1.6
Title: Re: Java for os2
Post by: Joop on 2011.07.17, 03:10:42
I just notice that on the Java SVN there is a screenshot of LAoE, which looks interesting too. I also need to test it further.

LAoE is open source (GNU GPL)
http://www.oli4.ch/laoe/home.html

Be very careful with Laoe. I posted the screenshot, it works, there are some bugs with building parts of the screen. I've a 2.8Mhz P4, not a real slow thing with 1G memory. For office applications enough, for things like Laoe your entering the edge of it. Laoe is born from a professional setup, ie, you build a computer JUST for sound. Be sure you have plenty, and I really mean plenty, of disk space on your drive from which you started eCS or OS/2. The program puts all the work files in the HOME directory and sometimes it doesn't clean. If you want a system which does respond quick you definite need FAST hard drives with 7200 rpm or something. As mentioned, its born from a professional setup, but its not programmed that way. I would like to have everything NOT in my HOME drive. If you have installed eCS or OS/2 on a small partition, forget the program or be prepared that OS2.INI will give the message that there s not enough room for it.
Title: Re: Java for os2
Post by: ivan on 2011.07.17, 12:07:59
Joop, are you saying it doesn't respect the -Duser.home=some-dir setting for user files?

ivan
Title: Re: Java for os2
Post by: Joop on 2011.07.17, 14:03:06
Joop, are you saying it doesn't respect the -Duser.home=some-dir setting for user files?

ivan
Didn't know you could do this, just tried apps right out "of the box" with Java, I'm busy with a presentation (Dutch) for the user group, what is it, how to setup, do's dont's, which apps can be run successfully and so on. One thing is already very clear, even if we can dump LVM with Java 1.1.8 (there are sounds that LVM will be replaced) and all its settings in the config.sys, even then we have to be prepared that we have to run different versions along side each other, but this is very dependent on what apps you want to run. So, settings in config.sys is not an option, even then.
Title: Re: Java for os2
Post by: Joop on 2011.07.17, 15:11:24
Joop, are you saying it doesn't respect the -Duser.home=some-dir setting for user files?

ivan
Did try it today and that works, see my cmd file
@echo off
set BEGINLIBPATH=[drive:]\JAVA\JAVA160\bin
set path=[drive:]\JAVA\JAVA160\bin
[drive:]
cd [drive:]\PROGRAMS\Laoe
java -Duser.home=[drive:]\Laoe -Xms256M -Xmx256M -jar laoe.jar %*

Of course you have to replace [drive:] with a driveletter:. The [drive:] for Java and the program Laoe are the same, the drive for -Duser.home is a SECOND drive. The thought behind this is that the heads of the second drive can stay above the song which reduces time for seeking.

Now I did know that this works I tried a hard disk which was connected together with a dvd recorder/player. The last one dictates the speed of the controller and as expected this is not the combination. This combination is too slow and in a song you will have interruptions due to loading the play cache from the hard drive. On the controller with two hard drives 5400 rpm I had no problems, these are going as fast as ide can deliver today, but you need that special connection cable.

If you copy the .laoe directory to somewhere else be sure to deleted the file trace.txt otherwise Laoe could hang on startup due to not found drives, files etc. Its okay to delete the file, if its not there it will be created on the run. Also be advised NOT to delete or remove the song IF you did close Laoe with the exit command. Everything will be cleared on screen, but all settings including the song are recorded in a file which is used to let know Laoe how to setup "shop" next time.
Title: Re: Java for os2
Post by: Pete on 2011.07.18, 23:20:08
Hi Joop

The answer is to *NOT* put your HOME directory on your boot drive - in fact, do not install anything to your boot drive except the operating system.

I suggest that next time you install eCS go for this setup:-

boot drive - operating system only - 2Gb max
programs drive - all installed software that is not part of the operating system - as big as you think you will need + space for future apps
home drive - somewhere to shove all your data, media files, downloaded files, application configuration files (mainly applies to *nix ports) and TEMP/TMP/tmp directory - probably your biggest drive :-)

With the above drive layout it is fairly easy to update the operating system without needing to reinstall all your applications and without losing user data. This approach does require the use of a tool such as wps2rexx - http://hobbes.nmsu.edu/download/pub/os2/util/wps/wps2rexx.zip - which is used to save an existing Desktop as a series of CMD files. These can be used, after a bit of editing, to recreate your application Desktop objects on the new Desktop.

You may find the eCS File and Directory Standard (eFDS) of some interest http://en.ecomstation.ru/showarticle.php?id=92


Regards

Pete
Title: Re: Java for os2
Post by: Joop on 2011.07.19, 13:10:09
Hi Joop

The answer is to *NOT* put your HOME directory on your boot drive - in fact, do not install anything to your boot drive except the operating system.

I don't think we had that choice during installation. Its put there with the installation of Java 1.1.8 and LVM. I don't know if you can copy it to an other drive and erase it on the boot drive. Of course some adjustments have to be made in the config.sys, but as far as I know LVM does expect it in the boot drive.


I suggest that next time you install eCS go for this setup:-

boot drive - operating system only - 2Gb max
programs drive - all installed software that is not part of the operating system - as big as you think you will need + space for future apps
home drive - somewhere to shove all your data, media files, downloaded files, application configuration files (mainly applies to *nix ports) and TEMP/TMP/tmp directory - probably your biggest drive :-)

I have, drive letters are go up all the way to T:. I have a mixed setup with DOS 7.1, Windows 98se and eCS 1.2. Windows XP never made it, it didn't understand the setup and shove itself during installation of the drive by setting up its own drive in ";". Finally Microsoft understands where its OS does belong, right, the trashcan ;-)

With the above drive layout it is fairly easy to update the operating system without needing to reinstall all your applications and without losing user data. This approach does require the use of a tool such as wps2rexx - http://hobbes.nmsu.edu/download/pub/os2/util/wps/wps2rexx.zip - which is used to save an existing Desktop as a series of CMD files. These can be used, after a bit of editing, to recreate your application Desktop objects on the new Desktop.

You may find the eCS File and Directory Standard (eFDS) of some interest http://en.ecomstation.ru/showarticle.php?id=92


Regards

Pete

Didn't know that, thanks for the link and tip of wps2rexx. That might indeed be very helpfull.

Regards,
Joop
Title: Re: Java for os2
Post by: Pete on 2011.07.19, 16:29:01
Hi Joop

The HOME directory does not have anything to do with LVM - except for the fact that the drive its on is created by LVM - and LVM does not use HOME at all so does not give a damn where it is. Nothing to do with installing an ancient version of java either.

I suspect that you used the "Easy" Install option which, in my opinion, is always a bad choice as you then get shafted with lots of options that you would either deselect or change when using the "Advanced" install. Certainly, during "Advanced" install you get the chance to change both HOME and PROGRAMS locations - and any software selected for installation respects those changes.

Regards

Pete


Title: Re: Java for os2
Post by: Joop on 2011.07.19, 21:08:43
Hi Joop

The HOME directory does not have anything to do with LVM - except for the fact that the drive its on is created by LVM - and LVM does not use HOME at all so does not give a damn where it is. Nothing to do with installing an ancient version of java either.

I suspect that you used the "Easy" Install option which, in my opinion, is always a bad choice as you then get shafted with lots of options that you would either deselect or change when using the "Advanced" install. Certainly, during "Advanced" install you get the chance to change both HOME and PROGRAMS locations - and any software selected for installation respects those changes.

Regards

Pete



Yes, you are right, it was TCPIP in which the version 1.1.8 seems to be hardcoded. Sorry, it was a 50/50 guess on my side. No, I used the advanced install, but with 1.2 there is still a part on which you can't decide. Don't know about 2.0 or 2.1, but the installation procedure seems to be much improved.
Title: Re: Java for os2
Post by: Joop on 2011.07.19, 21:15:02
Can someone tell me what happened with pages 4 and 5? They are grayed out on my system, just the OS/2World.Com head and the rest is gray. I use FF 4.0.1 for if that matters.
Title: Re: Java for os2
Post by: miturbide on 2011.07.20, 01:58:00
Joop , there is bug we have with the Joomla and SMF forum integration.
Visit this forum thread directly from os2world.com/forum
or
http://www.os2world.com/forum/index.php/topic,3092.msg20228.html#msg20228

You will see all the missing/broken pages accessing directly the SMF forum script.
Title: Re: Java for os2
Post by: abwillis on 2011.07.20, 02:26:48
Joop , there is bug we have with the Joomla and SMF forum integration.
Visit this forum thread directly from os2world.com/forum
or
http://www.os2world.com/forum/index.php/topic,3092.msg20228.html#msg20228

You will see all the missing/broken pages accessing directly the SMF forum script.
I keep seeing messages about being able to view it directly but have never had that make a difference.
Title: Re: Java for os2
Post by: Joop on 2011.07.20, 22:56:34
I tried for some time now the Java program "JOE" which stands for Java Outline Editor or in short "JOE". I have errors with *ALL* versions 1.8.10.whatever. I had to go back to 1.8.9.2 to get it working. I did know I had it working once, so I tried every version and if it fails try one version before and so on. I want to know if you have also problems with version 1.8.10.whatever. The Java version is irrelevant because even the latest should do it with Java 1.4.2. I have now 1.8.9.2 running with Java 1.4.2. The versions can be downloaded from this page http://sourceforge.net/projects/outliner/files/outliner/ .
Title: Re: Java for os2
Post by: miturbide on 2011.07.30, 14:36:23
I still can not make Jajuk Advanced Jukebox to run.
http://jajuk.info

It gave me this message:

java.lang.NoClassDefFoundError: org/jdesktop/swingx/util/OS
        at org.jajuk.util.UtilSystem.<clinit>(UtilSystem.java:165)
        at org.jajuk.Main.setSystemProperties(Main.java:254)
        at org.jajuk.Main.main(Main.java:85)
Caused by: java.lang.ClassNotFoundException: org.jdesktop.swingx.util.OS
        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)
        ... 3 more
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/log4j/Priority
        at org.jajuk.Main.main(Main.java:237)
Caused by: java.lang.ClassNotFoundException: org.apache.log4j.Priority
        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)
        ... 1 more

Title: Re: Java for os2
Post by: miturbide on 2011.07.30, 16:15:23
Stendhal is working nice with Java.
http://arianne.sourceforge.net/game/stendhal.html
Title: Re: Java for os2
Post by: miturbide on 2011.07.30, 17:02:24
Buddi seems to work fine too, the only issue is that it does not lauch the browser for the reports, but it generate the reports on the \home\<user>\.buddi\reports\report\index.html directory.

http://buddi.digitalcave.ca/screenshots.jsp

"Buddi is a personal finance and budgeting program, aimed at those who have little or no financial background. "
Title: Re: Java for os2
Post by: gap on 2011.07.31, 06:40:09
I have sort of mad Jajuk run.

There was allot of jar files needed to do this.

One problem is the Swing screens do not refresh correctly. This seems to be a common problem.

The complete working set along can be pulled from
http://71.246.225.60/jajuk.html

here is the size:
7-31-11 12:27a    65,687,895      0 a---  jajuk.zip
Title: Re: Java for os2
Post by: miturbide on 2011.07.31, 17:01:08
I run jajuk.cmd and it loaded the JAva app and tried to run the WinOS2 Media Player ;)

The swing screens don't load/look fine as you say.

Which components did you find it was missing? Is it a problem of the OpenJDK or is it that JAJUK uses something that we still don't have ported?
Title: Re: Java for os2
Post by: Andi on 2011.07.31, 17:02:50
Openfire seems to run fine. This is a free jabber server. There's a bug in trac about crashes. Maybe I've to less traffic here to reproduce it. Anyway this is my .cmd to start it -

@echo off
REM ***************************************************************************
REM
REM OS/2 - eComStation script to launch OpenFire Jabber server
REM
REM   20110731 Andreas Buchinger - inital
REM
REM ***************************************************************************


REM ***************************************************************************
REM setting up JAVA enviroment via external script, something like this -
REM set libpathstrict=T
REM set path=p:\java6\bin;%PATH%
REM SET JAVA_HOME=P:\Java6
REM set BEGINLIBPATH=%JAVA_HOME%\bin;
REM ***************************************************************************

call envjava6.cmd


REM ***************************************************************************
REM
REM set up needed enviroment and startup variables
REM
REM CHANGE THE PATH TO YOUR OPENFIRE INSTALLATION HERE
REM
REM ***************************************************************************

set OPENFIRE_HOME=p:\openfire

set OPENFIRE_LOGDIR=%OPENFIRE_HOME%\logs
set OPENFIRE_LIB=%OPENFIRE_HOME%\lib
set OPENFIRE_OPTS=-DopenfireHome=%OPENFIRE_HOME% -Dopenfire.lib.dir=%OPENFIRE_LIB%
set LOCALCLASSPATH=%OPENFIRE_LIB%\startup.jar;%CLASSPATH%


REM ***************************************************************************
REM
REM   and start openfire server
REM
REM ***************************************************************************

java -server %OPENFIRE_OPTS% -classpath %LOCALCLASSPATH% -jar %OPENFIRE_HOME%\lib\startup.jar
Title: Re: Java for os2
Post by: Andi on 2011.07.31, 17:28:21
Jajuk does not work for me but leaves a popuplog.os2 entry -

------------------------------------------------------------

07-31-2011  17:26:38  SYS3175  PID 00b5  TID 0004  Slot 0156
P:\JAVA6\BIN\JAVA.EXE
c0000005
1c40cb11
P1=00000001  P2=00000000  P3=XXXXXXXX  P4=XXXXXXXX 
EAX=00000000  EBX=00000000  ECX=ffffffeb  EDX=0523f4d0
ESI=0523f4d0  EDI=0523f6c0 
DS=0053  DSACC=f0f3  DSLIM=ffffffff 
ES=0053  ESACC=f0f3  ESLIM=ffffffff 
FS=289f  FSACC=00f3  FSLIM=00000fff
GS=0000  GSACC=****  GSLIM=********
CS:EIP=005b:1c40cb11  CSACC=f0df  CSLIM=ffffffff
SS:ESP=0053:0523f484  SSACC=f0f3  SSLIM=ffffffff
EBP=0523f49c  FLG=00010246

JVM.DLL 0001:0034cb11
Title: Re: Java for os2
Post by: miturbide on 2011.07.31, 18:11:33
JMCAD seems to run fine.

"JMCAD is an program for the modeling and simulation of complex dynamic systems."
http://jmcad.sourceforge.net/
Title: Re: Java for os2
Post by: Andi on 2011.07.31, 20:19:37
I run jajuk.cmd and it loaded the JAva app and tried to run the WinOS2 Media Player ;)

The swing screens don't load/look fine as you say.

Which components did you find it was missing? Is it a problem of the OpenJDK or is it that JAJUK uses something that we still don't have ported?


You have to configure the path to mplayer. Then it starts working. Not played very much with it so can't say if all works.
Title: Re: Java for os2
Post by: RobertM on 2011.08.01, 20:11:41
I run jajuk.cmd and it loaded the JAva app and tried to run the WinOS2 Media Player ;)

The swing screens don't load/look fine as you say.

Which components did you find it was missing? Is it a problem of the OpenJDK or is it that JAJUK uses something that we still don't have ported?


You have to configure the path to mplayer. Then it starts working. Not played very much with it so can't say if all works.

Another alternative that will help system-wide is to add the mplayer paths into your config.sys *before* the WinOS2 paths.
Title: Re: Java for os2
Post by: gap on 2011.08.02, 00:29:46
I run jajuk.cmd and it loaded the JAva app and tried to run the WinOS2 Media Player ;)

The swing screens don't load/look fine as you say.

Which components did you find it was missing? Is it a problem of the OpenJDK or is it that JAJUK uses something that we still don't have ported?


Originally jajuk had this jar:
jajuk.jar

These were added to make it work:
animation-1.2.0.jar
basicplayer-3.0.jar
commons-collections-3.2.1.jar
commons-io-2.0.1.jar
commons-lang-2.6.jar
contrib_junit_junit-4.6.jar
jaudiotagger-2.0.3.jar
jcommon-1.0.16.jar
jfreechart-1.0.13.jar
last.fm-bindings.jar
lobo-pub.jar
lobo.jar
log4j-1.2.16.jar
miglayout-3.7.4-swing.jar
substance-5.3.jar
swingx-core-1.6.2-2.jar
vldocking_3.0.0.jar

and everything is the ext directory. The one jar I know was used from this directory is:
cobra-no-commons.jar


greg

Title: Re: Java for os2
Post by: miturbide on 2011.08.02, 16:18:42
I also tested CADEMIA.

http://www.cademia.org/frontend/index.php?sub=29

"CADEMIA is a modern CAD system with a full functionality for civil engineering and architecture".

Title: Re: Java for os2
Post by: miturbide on 2011.08.02, 16:20:47
I had posted more screenshots of Java apps tested with OpenJDK 6 under eCS.
http://www.os2world.com/gallery/v/progs/java/ (http://www.os2world.com/gallery/v/progs/java/)

Keep posting more tests.
Title: Re: Java for os2
Post by: miturbide on 2011.08.02, 16:21:30
I had posted more screenshots of Java apps tested with OpenJDK 6 under eCS.
http://www.os2world.com/gallery/v/progs/java/ (http://www.os2world.com/gallery/v/progs/java/)

Keep posting more tests.
Title: Re: Java for os2
Post by: Andi on 2011.08.02, 20:57:53
Jajuk
I can only start a song in Jajuk but it stops playing after about 10 second with an error message 'Failure when playing. Maybe mplayer...timeout' (or similar, translated from german). Seems although mplayer runs it does not communicate with Jajuk. Any special options needed for mplayer? Does it work for anyone else?

Using the latest mplayer version from hobbes.
Title: Re: Java for os2
Post by: Francesk_os2 on 2011.08.04, 03:44:35
any news about JAVA 1.6 support in current firefox implementations?
Title: Re: Java for os2
Post by: diver on 2011.08.04, 12:17:44
just follow the timeline on http://svn.netlabs.org/java/timeline you will see when we do some work on that.
but right now we still lack some funding.
Title: Re: Java for os2
Post by: gap on 2011.08.13, 03:10:11
On the jajuk I posted there is a change to the java environment which makes the screens work.

There is a cmd file "setvm6.cmd" which is run before jajuk.cmd
which read:
SET CLASSPATH=
SET JAVA_HOME=D:\java16
SET SWING_HOME=
SET PATH=D:\java16\bin;%PATH%
set BEGINLIBPATH=D:\java16\bin;%BEGINLIBPATH%

the correct lines should be:
SET CLASSPATH=
SET JAVA_HOME=
SET SWING_HOME=
SET PATH=D:\java16\jre\bin;%PATH%
set BEGINLIBPATH=D:\java16\jre\bin;%BEGINLIBPATH%

greg
Title: Re: Java for os2
Post by: Joop on 2011.09.02, 03:20:32
RavenLite runs also fine, but without ripping CD's and without record function because javasound seems not implemented in Open JDK v6.0ga.

Raven Lite is a free software program that lets users record, save, and visualize sounds as spectrograms and waveforms. Raven Lite is intended for students, educators, and hobbyists, and can be used for learning about sounds, as an aid in birdsong recognition ,and in musical instruction. Please read  http://help.ravensoundsoftware.com/forum/showthread.php?t=844 (http://help.ravensoundsoftware.com/forum/showthread.php?t=844) first!
Title: Re: Java for os2
Post by: Joachim on 2011.09.02, 14:05:37
RavenLite runs also fine, but without ripping CD's and without record function because javasound seems not implemented in Open JDK v6.0ga.

Raven Lite is a free software program that lets users record, save, and visualize sounds as spectrograms and waveforms. Raven Lite is intended for students, educators, and hobbyists, and can be used for learning about sounds, as an aid in birdsong recognition ,and in musical instruction. Please read  http://help.ravensoundsoftware.com/forum/showthread.php?t=844 (http://help.ravensoundsoftware.com/forum/showthread.php?t=844) first!

Hi Joop,

nice job on this product. However, as far as I can tell, JavaSound *is* actually implemented, see for example http://svn.netlabs.org/java/ticket/67 (http://svn.netlabs.org/java/ticket/67)

Regards,

Joachim
Title: Re: Java for os2
Post by: miturbide on 2011.09.02, 17:24:29
Hi Joop

The forum thread link you posted said that CD-Ripping and opening MP3 uses Apple Quicktime. And I understand it don't work on the linux version too.

According to that post, wave and aiff sound files uses JavaSound, but for linux it says it relays in Tritonus (http://www.tritonus.org/). Maybe the problem goes that way.
Title: Re: Java for os2
Post by: Joop on 2011.09.02, 20:58:49
RavenLite runs also fine, but without ripping CD's and without record function because javasound seems not implemented in Open JDK v6.0ga.

Raven Lite is a free software program that lets users record, save, and visualize sounds as spectrograms and waveforms. Raven Lite is intended for students, educators, and hobbyists, and can be used for learning about sounds, as an aid in birdsong recognition ,and in musical instruction. Please read  http://help.ravensoundsoftware.com/forum/showthread.php?t=844 (http://help.ravensoundsoftware.com/forum/showthread.php?t=844) first!

Hi Joop,

nice job on this product. However, as far as I can tell, JavaSound *is* actually implemented, see for example http://svn.netlabs.org/java/ticket/67 (http://svn.netlabs.org/java/ticket/67)

Regards,

Joachim

Actual playing goes well, its the recording which don't work. In Laoe it also don't work. As far as I can understand from the given info its only partial implemented. I have to ask for sure.
Title: Re: Java for os2
Post by: Joop on 2011.09.02, 21:01:39
Hi Joop

The forum thread link you posted said that CD-Ripping and opening MP3 uses Apple Quicktime. And I understand it don't work on the linux version too.

According to that post, wave and aiff sound files uses JavaSound, but for linux it says it relays in Tritonus (http://www.tritonus.org/). Maybe the problem goes that way.
Yes, that's true, because in Linux Javasound is also NOT implemented. So they wrote tritonus. I've looked through tritonus, but there is a lot in the source which looks to me something like Linux only. It should be possible to take the source and rewrite it for OS/2-eCS, but I think its a hell of a job.
Title: Re: Java for os2
Post by: Joop on 2011.09.02, 21:15:24
Hi Joop

The forum thread link you posted said that CD-Ripping and opening MP3 uses Apple Quicktime. And I understand it don't work on the linux version too.

According to that post, wave and aiff sound files uses JavaSound, but for linux it says it relays in Tritonus (http://www.tritonus.org/). Maybe the problem goes that way.

Another view.
Most of you are possible not familiar with recording nature sounds. Today all recorders available for the amateur are digital recorders and we like that because we finally get rid of that analog tape hiss in the background. Most recordings are not that well, most sounds are very thin and can be recorded only with full amplification and even then its just above the noise floor of the analog tape. So, digital get rid of that problem. Because recordings are now made on digital equipment means also that the songs recorded are kept on a digital medium, ie a memory card (all others are history). And on these cards you can write the songs in WAV or MP3 format. Both are directly usable in Raven. So why bother the recoding facility in the package? Every laptop is far much more complex in the field than a small package hanging on the shoulder and build just for that purpose. In the answer on my comments on the forum you can read that they are not going to change the program. For help and websites they say that there are ways around it.

I downloaded flac, which is not a part of the Raven Lite package. I altered the line for loading and added the flac jar to it. After loading the Raven Lite package I could see that there was one error less in the screen  ;D.
Title: Re: Java for os2
Post by: miturbide on 2011.09.11, 06:13:09
JSesh worked too.
http://sourceforge.net/projects/jsesh/
Title: Re: Java for os2
Post by: Joop on 2011.09.11, 16:59:50
The program FidocadJ 0.23.6 gives lots of errors. Notified the author. FidocadJ 0.23.5 just runs fine.
Title: Re: Java for os2
Post by: Joop on 2011.09.11, 17:54:07
JPO Java Picture Organizer works fine, http://j-po.sourceforge.net/installation.php#local (http://j-po.sourceforge.net/installation.php#local)

Title: Re: Java for os2
Post by: Joop on 2011.09.11, 17:56:43
I'm busy with Frinika, its a free complete music workstation software containing sequencer, midi support, soft synthesizers, audio recorder, piano roll/tracker/notation editing and more.

I have a hard time to get it going.
Title: Re: Java for os2
Post by: Joop on 2011.09.11, 17:59:56
RavenLite runs also fine, but without ripping CD's and without record function because javasound seems not implemented in Open JDK v6.0ga.

Raven Lite is a free software program that lets users record, save, and visualize sounds as spectrograms and waveforms. Raven Lite is intended for students, educators, and hobbyists, and can be used for learning about sounds, as an aid in birdsong recognition ,and in musical instruction. Please read  http://help.ravensoundsoftware.com/forum/showthread.php?t=844 (http://help.ravensoundsoftware.com/forum/showthread.php?t=844) first!

Hi Joop,

nice job on this product. However, as far as I can tell, JavaSound *is* actually implemented, see for example http://svn.netlabs.org/java/ticket/67 (http://svn.netlabs.org/java/ticket/67)

Regards,

Joachim

Actual playing goes well, its the recording which don't work. In Laoe it also don't work. As far as I can understand from the given info its only partial implemented. I have to ask for sure.
I asked and JavaSound is there, however it relies on the ODIN code and recording sound was not compiled due to making choices what first. We have to wait until its coded in ODIN. So everything which records sound will not work in present Java.
Title: Re: Java for os2
Post by: Joop on 2011.09.11, 18:13:43
Grip is working fine, can be found here http://www.grelf.net/download_app.html#N1179668 (http://www.grelf.net/download_app.html#N1179668)

GRIP was originally designed to stack together astronomical photos taken with a digital SLR camera on a fixed tripod from a light-polluted urban site so that as much faint detail as possible could be seen. Since it started in 2001 it has grown to be a comprehensive image processing and measurement tool that can also be used for working with professional images, such as from space projects, to be found on the Internet.
Title: Re: Java for os2
Post by: Joop on 2011.09.13, 23:42:08
I also tried makagiga, a to do manager and notepad.

http://makagiga.sourceforge.net/

...seems to work fine.
Not on all things, if you choose another skin you get lots of errors.
Title: Re: Java for os2
Post by: miturbide on 2011.09.23, 22:44:11
StorYbook is also working.
http://www.novelist.ch/joomla/

"Storybook is a free Open Source novel-writing software for creative writers, novelists and authors which will help you to keep an overview of multiple plot-lines while writing books, novels or other written works."

The issue is that you have to install it on Windows and copy all the installed files to OS/2.
Then it runs by "java -Xmx192m -jar lib/storybook.jar".

The other issue is that I have to invent a complete history with characters, locations and timing to test it out ;)
Title: Re: Java for os2
Post by: miturbide on 2011.09.27, 04:22:08
Geonext seems to work fine.
"javaw.exe -cp geonext.jar geonext/Geonext lang=en"

"The dynamic mathematics software Geonext establishes new ways of teaching and learning mathematics. It offers opportunities of visualisation that can't be realised on paper or blackboard and with traditional construction tools. "

http://geonext.uni-bayreuth.de/index.php?id=2453

Title: Re: Java for os2
Post by: miturbide on 2011.09.27, 04:39:45
GeoGebra seems to work too.

http://www.geogebra.org/cms/en/installers

"Free mathematics software for learning and teaching. Interactive graphics, algebra and spreadsheet. From elementary school to university level. Free learning materials"

Title: Re: Java for os2
Post by: Ben on 2011.09.28, 22:27:48

I finally got around to giving JAVA 6 a go.

No real problem with installing it using the *.WPI file from Hobbes.

I got JSESH working without too much effort. 8)

However, with JCAD (http://sourceforge.net/projects/java-3d-cad/) I'm at a loss. :-\

Good job(s) people.

Title: Re: Java for os2
Post by: gap on 2011.09.29, 17:26:29
I compiled the Jcad java application.

Not worth any time.

Java code from 2000 that used old style java and barely works on any Ecomstation java
1.3  1.4.1 1.4.2 6.0

greg
Title: Re: Java for os2
Post by: Ben on 2011.09.29, 19:41:09

It required compiling?

That's why I couldn't get it to work.

Thanks for the heads-up, Greg.

Title: Re: Java for os2
Post by: Joop on 2011.10.05, 21:19:38

It required compiling?

That's why I couldn't get it to work.

Thanks for the heads-up, Greg.


No, it required Java 1.4.2 ;-) I've running it here and its not a toy program, however I don't use it.

Regards,
Joop
Title: Re: Java for os2
Post by: Ben on 2011.10.05, 23:14:16

OIC.

Well then, the question now changes; "how I can get JAVA 1.42 and JAVA 1.6 to work together on the same machine?"

Once I have answered that one, I'll have to give JCAD another try.


Title: Re: Java for os2
Post by: Joop on 2011.10.05, 23:32:56

OIC.

Well then, the question now changes; "how I can get JAVA 1.42 and JAVA 1.6 to work together on the same machine?"

Once I have answered that one, I'll have to give JCAD another try.



They don't work together. Make separate directories and start programs with a command file. Your config.sys is occupied with settings for 1.1.8 anyway and can't be used this way. With a command file you have a flexible solution in order to meet every programs desire.

example cmd file;
@echo off
rem Java 1.4.2
SET JAVA_HOME=[drive:]\JAVA\JAVA142
set BEGINLIBPATH=[drive:]\JAVA\JAVA142\bin
set path=[drive:]\JAVA\JAVA142\bin
rem @echo off
rem Java 1.5.009
rem SET JAVA_HOME=[drive:]\JAVA\JAVA150
rem set BEGINLIBPATH=[drive:]\JAVA\JAVA150\bin
rem @echo off
rem Java 1.6.0
rem set BEGINLIBPATH=[drive:]\JAVA\JAVA160\bin
rem set path=[drive:]\JAVA\JAVA160\bin
[program drive:]
cd [program drive:]\CAD\Jcad
java.exe -jar jcad.jar

As far as I know Jcad has an update under the name 3dmatrix.
Title: Re: Java for os2
Post by: Pete on 2011.10.06, 01:33:32
Hi Joop

I recommend deleting all java related lines from config.sys except set classpath - and that should be modified to this:-

SET CLASSPATH=.\.;L:\OS2\JAVAAPPS\LVMGUI.ZIP;L:\TCPIP\java;

Obviously the above drive letter should reflect the correct drive for your system.

Why anyone would want java1.1.8 installed I have no idea... Shame that eCS insist on installing that old crap if you totally deselect java during eCS install. Mind you, eCS manages to muck up quite a lot during installation; deselect DOS/Win16 support and you then spend time deleting unwanted DOS lines from the config.sys file. Maybe 1 day that will get put right but I'm not holding my breath waiting.

Instead of using a command file to start java apps I simply create a program object with the required Drive:\Path\java(w).exe in File and path name and -jar Drive:\Path\filename.jar as Parameters.

Regards

Pete



Title: Re: Java for os2
Post by: Joop on 2011.10.06, 02:11:06
Hi Joop

I recommend deleting all java related lines from config.sys except set classpath - and that should be modified to this:-

SET CLASSPATH=.\.;L:\OS2\JAVAAPPS\LVMGUI.ZIP;L:\TCPIP\java;

Obviously the above drive letter should reflect the correct drive for your system.

Why anyone would want java1.1.8 installed I have no idea... Shame that eCS insist on installing that old crap if you totally deselect java during eCS install. Mind you, eCS manages to muck up quite a lot during installation; deselect DOS/Win16 support and you then spend time deleting unwanted DOS lines from the config.sys file. Maybe 1 day that will get put right but I'm not holding my breath waiting.

Instead of using a command file to start java apps I simply create a program object with the required Drive:\Path\java(w).exe in File and path name and -jar Drive:\Path\filename.jar as Parameters.

Regards

Pete
This is not a wise solution. You need Java 1.1.8 for tcp/ip, it seems hardcoded at some point. A program object does not have enough options to store some settings found in some Java apps. I have setups which are complicated and are not started with a simple filename.jar. Next you don't have the room to do some smart things with the -d command. So you always use the home directory which goes the way like seen with Windows and we all know where that ends. Which idiot ever choose to do so didn't know anything about OS systems. With the -d command you can setup the home directory in the program directory. So you don't pollute your OS drive which will stand for more stability. Some Java apps have there own parameters and you can't setup a bugtracker in Java for redirecting the bugs to a separate file. Of course its up to you, I tried, the program object does not have enough options to accommodate all.

Regards,
Joop
Title: Re: Java for os2
Post by: Pete on 2011.10.06, 16:51:33
Hi Joop

Sorry but I disagree with you on a couple of points:-

1] java118 is *not* required for tcp/ip - here I think you are referring to the tcpip configuration notebook; that has not needed java118 for years.

2] My HOME directory is on a drive dedicated to storing data and configuration files (usually for linux or java apps). Neither PROGRAMS or HOME is on the same drive as the OS - a setup that makes a lot of sense to me as it means that I can update(or backdate if necessary) the operating system without worrying about installed software and stored data.


I do, however, agree that setting up java program objects will not work for all java apps but the only app I have had installed that needs a command file is Borland JBuilder due to the length of the required Classpath. Using a program object does work well for java apps that do not require an extensive classpath or over long command line.


Regards

Pete


Title: Re: Java for os2
Post by: miturbide on 2011.10.10, 22:33:16
Jalmus is running but it does not sound.

http://www.jalmus.net/
"Jalmus is a free, open source music education software helping the musicians, specially pianists, to improve their sight-reading. You can train to read music with both exercises on notes or rhythms."

But the strange thing is that on OS2-eCs it does not show to install the "Java SoundBank" component, while in Windows it worked. Maybe it is a dependency on the Sun JRE or on the platform. Anybody with Linux with OpenJDK can try it ?
Title: Re: Java for os2
Post by: Joop on 2011.10.11, 00:50:13
Jalmus is running but it does not sound.

http://www.jalmus.net/
"Jalmus is a free, open source music education software helping the musicians, specially pianists, to improve their sight-reading. You can train to read music with both exercises on notes or rhythms."

But the strange thing is that on OS2-eCs it does not show to install the "Java SoundBank" component, while in Windows it worked. Maybe it is a dependency on the Sun JRE or on the platform. Anybody with Linux with OpenJDK can try it ?

Jalmus DOES sound on my system, there is no installation of a Java Soundbank. From the packs.info I could lift this: "Soundbank is required for JRE install on Windows.ppt." Standard the prefs are on NO MIDI, so you may have to change it. This doesn't mean that this program hasn't troubles within eCS, its not totally OpenJDK proof, I get these errors which tells me so;

Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
        at net.jalmus.Jalmus$8.mousePressed(Jalmus.java:967)
        at java.awt.Component.processMouseEvent(Component.java:6133)
        at java.awt.Component.processEvent(Component.java:5901)
        at java.awt.Container.processEvent(Container.java:2105)
        at java.awt.Window.processEvent(Window.java:1836)
        at java.awt.Component.dispatchEventImpl(Component.java:4497)
        at java.awt.Container.dispatchEventImpl(Container.java:2163)
        at java.awt.Window.dispatchEventImpl(Window.java:2478)
        at java.awt.Component.dispatchEvent(Component.java:4323)
        at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:649)
        at java.awt.EventQueue.access$000(EventQueue.java:96)
        at java.awt.EventQueue$1.run(EventQueue.java:608)
        at java.awt.EventQueue$1.run(EventQueue.java:606)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:105)
        at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:116)
        at java.awt.EventQueue$2.run(EventQueue.java:622)
        at java.awt.EventQueue$2.run(EventQueue.java:620)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:105)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:619)
        at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:275)
        at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:200)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:185)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:177)
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:138)

It has some troubles with the mouse.

Regards,
Joop
Title: Re: Java for os2
Post by: miturbide on 2011.11.01, 04:22:23
I was testing OmegaT, a Java translator tool, but I still can not find a way to translate the text. I need to read the manual to understand how to use it.

http://www.omegat.org/

Title: Re: Java for os2
Post by: Joop on 2011.11.01, 23:01:12
I was testing OmegaT, a Java translator tool, but I still can not find a way to translate the text. I need to read the manual to understand how to use it.

http://www.omegat.org/


It's a CAT program, ie Computer Assisted Translation, or in other words, it don't translate for you, you have to translate yourself, but with this package it will assist you with already know words, ie your translation will be more consistent and you will not use different translations for one specific word. Is this handy? Sure, if you have to translate manuals, help files, the text which appears in your program, menu's etc. So You have to translate manual. There is a large set of help, introduction files etc. So, as ever, RTFM  and try before cry. Thanks for finding this tool.

Title: Re: Java for os2
Post by: lpino on 2011.11.01, 23:06:18
Is anyone trying to make Netbeans (v.6.9.1) work under OpenJava?. I had have some success and it starts and run, but it's very unstable and it crashes constantly.
Title: Re: Java for os2
Post by: diver on 2011.11.02, 11:41:34
if not already done, please open a ticket with all steps to reproduce the crash.

regards
Silvan
Title: Re: Java for os2
Post by: lpino on 2011.11.02, 19:17:59
if not already done, please open a ticket with all steps to reproduce the crash.

regards
Silvan
I guess you mean a ticket to the developers of OpenJava. I'll try to submit the case. Still it's not very simple since it happens randombly without much error sign but a log that I could attach as evidence.

Thanks
Title: Re: Java for os2
Post by: diver on 2011.11.02, 21:01:30
if it only happens in the os/2 port of OpenJDK you have to open the ticket at svn.netlabs.org/java
if it also happens on other os, it's a general problem. please check this first if possible.

regards
Silvan aka _diver
Title: Re: Java for os2
Post by: miturbide on 2011.11.07, 05:19:24
I'm trying to run Jomic (Java open source Comic book reader) but I think I'm runing it wrong.

http://jomic.sourceforge.net/ (http://jomic.sourceforge.net/)

Anyone tried it?
Title: Re: Java for os2
Post by: miturbide on 2011.11.07, 05:52:59
I also tried JPedal, It seems to work fine.
JPedal is a commercial PDF reader.
http://www.jpedal.org/

Title: Re: Java for os2
Post by: Joop on 2011.11.09, 03:49:57
I'm trying to run Jomic (Java open source Comic book reader) but I think I'm runing it wrong.

http://jomic.sourceforge.net/ (http://jomic.sourceforge.net/)

Anyone tried it?
I tried it, it seems that this is not a total package, there are some specific os related components. I won't load because its missing something which I can't find in the libs. Next you need at least 1Gb, so its very memory hungry. Deleted the package.
Title: Re: Java for os2
Post by: Joop on 2011.11.18, 04:24:44
Discovered today Simple Image Editing Tool, works fine, no errors. SIET, the Simple Image Editing Tool, is a simple-to-use, handy and free application for such tasks as resizing, cropping, retouching, watermarking, etc... Batch processing is also provided. Download http://sourceforge.net/projects/siet/files/0.1.0/siet-0.1.0-linux.zip/download (http://sourceforge.net/projects/siet/files/0.1.0/siet-0.1.0-linux.zip/download). This is the contents of my cmd file;

@echo off
set path=c:\JAVA160\bin
set BEGINLIBPATH=c:\JAVA160\bin
set CLASSPATH=
c:
cd c:\siet
java -Duser.home=c:\siet -jar lib/siet-launcher.jar

It uses your homedirectory with files and it has its own directory in the home directory.

Enclosed an icon for the program.

Title: Re: Java for os2
Post by: miturbide on 2011.11.29, 17:17:20
I'm trying to run YaCy with no luck.

"YaCy is a free search engine that anyone can use to build a search portal for their intranet or to help search the public internet."
http://yacy.net

The linux version seems to use OpenJDK 6 to run. But Im not sure if it will run on OS/2-eCS.
It is supposed to load a http service on "http://localhost:8090"
Title: Re: Java for os2
Post by: miturbide on 2011.12.11, 19:11:11
I had been trying this two java mouse Android solutions.
The idea is that you install the java app on the host, and with an Android phone or tablet you control the mouse cursor connected to a Wifi network.

1) LoSoft RCServer
Seems to work the mouse pointer, but it moves in a strange way.
the mouse clicks do not work.
URL: http://rcserver.losoft.org/download/#Windows

2) RemoteDroid
Seems that it is not grabbing my IP to make the mouse.
http://remotedroid.net/

Anyone with an Android device to test it on eCS is welcome.

Title: Re: Java for os2
Post by: miturbide on 2012.01.04, 05:59:10
I'm trying Datacrow but it just freeze after loading.

"Data Crow is the ultimate media cataloger and media organiser. Always wanted to manage all your collections in one product? You want a product you can customize to your needs? Your search ends here! Using Data Crow allows you to create a huge database containing all your collected items. You can use the excellent online services to retrieve the information instead of typing all the information yourself. "

http://www.datacrow.net/index.html
Title: Re: Java for os2
Post by: Pete on 2012.01.04, 19:18:40
Hi Martin

I'm trying Datacrow but it just freeze after loading.

Well, that is 1 step further than I get: The app starts, asks me what language to use and I select English then the app closes.

However, that was trying to use javaw.exe to run the app.

I changed that to java.exe and now see in the cmd window that there are problems which seem to revolve around this error:-

     java.lang.NoClassDefFoundError: plugins/about (wrong name: plugins/About)


Reading the datacrow\readme\readme.txt I see this:-

    -dir:<installation directory>
     Use this parameter when Data Crow starts incorrectly and complains
     about missing directories (non Windows platform only).

Well, datacrow\plugins\about.class could be the missing plugin that is being moaned about in the error messages so I tried adding the datacrow installation directory to the command to start datacrow. I now have a program object with the following:-

Path and filename:  J:\JAVA\OPENJDK6\BIN\JAVA.EXE
Parameters: -jar -Xmx256m -dir:J:\Java\datacrow J:\Java\datacrow\datacrow.jar

No good, that simply fails to start the app, no error messages displayed - until I uncheck the program object Properties, Session, Close window on exit. I now see:-

Unrecognised option: -dir:J:\Java\datacrow
Could not create the java virtual machine.


So, looks like the -dir parameter in the readme is wrong; maybe there should be a space in the dir parameter ie
Parameters: -jar -Xmx256m -dir: J:\Java\datacrow J:\Java\datacrow\datacrow.jar

Well that gets rid of the above "Unrecognised option" error but results in this instead:-
"Unable to access jarfile J:\Java\datacrow"

At that point I gave up and emailed the datacrow guys asking what is going wrong. Hopefully I'll get a reply at some point.


Regards

Pete




Title: Re: Java for os2
Post by: Pete on 2012.01.05, 20:20:44
Hi Martin

What does the \datacrow\data\data_crow.log show there?


Regards

Pete
Title: Re: Java for os2
Post by: ivan on 2012.01.06, 00:00:28
Hi Pete.

Shouldn't
Quote
Path and filename:  J:\JAVA\OPENJDK6\BIN\JAVA.EXE
Parameters: -jar -Xmx256m -dir:J:\Java\datacrow J:\Java\datacrow\datacrow.jar
the parameters be:

Parameters: -Xmx256m -dir:J:\Java\datacrow -jar J:\Java\datacrow\datacrow.jar

All the options should appear before -jar

ivan
Title: Re: Java for os2
Post by: Pete on 2012.01.06, 01:51:02
Hi ivan

Must admit that I am not that up on starting java apps with lots of parameters and had not realised that the options should appear before the "-jar" bit. However, there is a datacrow.cmd file supplied with the app that contains just this line:-

java -jar -Xmx256m DataCrow.jar

Looks like the developer also does not know that options come before the "-jar" bit...

Having tried it I can report that the -dir parameter does not work as using that parameter results in:-

Unrecognised option: -dir:J:\Java\datacrow
Could not create the java virtual machine.

To get around that I used a datacrow.cmd file containing:-

SET DATACROW_HOME=J:\Java\datacrow
J:\JAVA\OPENJDK6\BIN\JAVA.EXE -Xmx256m -jar J:\Java\datacrow\datacrow.jar


Trying the cmd file results in the original errors based around:-

java.lang.NoClassDefFoundError: plugins/about (wrong name: plugins/About)


Interestingly the data_crow.log does not mention the above errors but does indicate a possible cause of the problem here:-

 INFO [main] (DataCrow.java:237) - Thu Jan 05 23:37:17 GMT 2012 Starting Data Crow.
 INFO [main] (DataCrow.java:239) - Using installation directory: J:/Java/datacrow/
 INFO [main] (DataCrow.java:240) - Using data directory: J:/Java/datacrow/data/
 INFO [main] (DataCrow.java:241) - Using images directory: J:/Java/datacrow/webapp/datacrow/mediaimages/
ERROR [main] (Setting.java:348) - An error occurred while converting [] to a valid settings value
java.lang.StringIndexOutOfBoundsException: String index out of range: -1
   at java.lang.String.substring(String.java:1949)
   at net.datacrow.core.settings.Setting.setStringAsValue(Setting.java:277)
   at net.datacrow.core.settings.Settings.setString(Settings.java:194)
   at net.datacrow.core.settings.SettingsFile.load(SettingsFile.java:87)
   at net.datacrow.settings.Settings.load(Settings.java:53)
   at net.datacrow.settings.DcApplicationSettings.<init>(DcApplicationSettings.java:75)
   at net.datacrow.settings.DcSettings.<clinit>(DcSettings.java:51)
   at net.datacrow.core.DataCrow.main(DataCrow.java:245)
 INFO [main] (DataCrow.java:828) - Data Crow 3.9.11
 INFO [main] (DataCrow.java:829) - Java version: 1.6.0-ga
 INFO [main] (DataCrow.java:830) - Java vendor: Sun Microsystems Inc.
 INFO [main] (DataCrow.java:831) - Operating System: OS/2


I have no idea what the ERROR line is about...

I have sent the log to the developer in the hope that he will have some idea of the cause of the problem.

As this app seems to run in Windows and *nix without problems - based on what I've read online rather than personal experience - I'm starting to suspect that something may not be implemented in our version of java6 that this app requires.


Regards

Pete

Title: Re: Java for os2
Post by: Pete on 2012.01.06, 02:54:43
Hi All

Just to add that datacrow does *not* start in my WindowsXP installation - which is running in VirtualPC - and gives the same errors as when trying to start in an OS/2 environment.

Looks like datacrow contains the problem rather than java6...

Regards

Pete


Title: Re: Java for os2
Post by: ivan on 2012.01.06, 12:38:09
I tried it last night and got as far as being able to select the language then it died on me with the following in popuplog:

01-06-2012  00:37:01  SYS3175  PID 00e4  TID 0004  Slot 00b8
C:\OPENJDK6-GA\BIN\JAVAW.EXE
c0000005
1d66cf61
P1=00000002  P2=05231000  P3=XXXXXXXX  P4=XXXXXXXX 
EAX=0522f221  EBX=0522f190  ECX=fffffee5  EDX=0522f3b0
ESI=05230ff8  EDI=05231000 
DS=0053  DSACC=f0f3  DSLIM=ffffffff 
ES=0053  ESACC=f0f3  ESLIM=ffffffff 
FS=2897  FSACC=00f3  FSLIM=00000fff
GS=0000  GSACC=****  GSLIM=********
CS:EIP=005b:1d66cf61  CSACC=f0df  CSLIM=ffffffff
SS:ESP=0053:0522f174  SSACC=f0f3  SSLIM=ffffffff
EBP=0522f5f8  FLG=00012206

LIBC063.DLL 0001:0005cf61

I Started it from a program object with the following:

Path and Filename: c:\openjdk6\bin\javaw.exe
Parameters: -Duser.home=h:\open\datacrow -Xmx256m -jar datacrow.jar
Working Dir: h:\open\datacrow

I don't know if this will help anyone.

ivan
Title: Re: Java for os2
Post by: Pete on 2012.01.06, 16:25:03
Hi All

I've finally got datacrow to the same stage as Martin - freezes immediately after starting.

I did this by downloading and installing the Installer version - I had been trying to run the Zipped version.

This seems to indicate that the contents of the 2 packages are more different than the Installer package simply has some extra bits to perform the installation.

The only response I've had from the datacrow guy to date does not leave me expecting to see this app running anytime in the future here.


Regards

Pete


Title: Re: Java for os2
Post by: miturbide on 2012.01.07, 04:00:18
Hi

Im running it as simple as possible with Java -jar datacrow.jar.

Here it is the log.

ERROR [main] (Setting.java:348) - An error occurred while converting [] to a valid settings value
java.lang.StringIndexOutOfBoundsException: String index out of range: -1
   at java.lang.String.substring(String.java:1949)
   at net.datacrow.core.settings.Setting.setStringAsValue(Setting.java:277)
   at net.datacrow.core.settings.Settings.setString(Settings.java:194)
   at net.datacrow.core.settings.SettingsFile.load(SettingsFile.java:87)
   at net.datacrow.settings.Settings.load(Settings.java:53)
   at net.datacrow.settings.DcApplicationSettings.<init>(DcApplicationSettings.java:75)
   at net.datacrow.settings.DcSettings.<clinit>(DcSettings.java:51)
   at net.datacrow.core.DataCrow.main(DataCrow.java:245)


ERROR [AWT-EventQueue-0] (DcSwingUtilities.java:194) - java.lang.NullPointerException
java.lang.NullPointerException
   at net.datacrow.util.DcSwingUtilities.setRenderingHint(DcSwingUtilities.java:183)
   at net.datacrow.console.windows.DcFrame.paint(DcFrame.java:135)
   at javax.swing.JFrame.update(JFrame.java:469)
   at com.jtattoo.plaf.BaseRootPaneUI$1.run(Unknown Source)
   at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:226)
   at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:647)
   at java.awt.EventQueue.access$000(EventQueue.java:96)
   at java.awt.EventQueue$1.run(EventQueue.java:608)
   at java.awt.EventQueue$1.run(EventQueue.java:606)
   at java.security.AccessController.doPrivileged(Native Method)
   at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:105)
   at java.awt.EventQueue.dispatchEvent(EventQueue.java:617)
   at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:275)
   at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:200)
   at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190)
   at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:185)
   at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:177)
   at java.awt.EventDispatchThread.run(EventDispatchThread.java:138)

Title: Re: Java for os2
Post by: Pete on 2012.01.07, 19:42:59
Hi All

@Martin

That looks the same as the log generated here after I installed the "installer" version and tried to run it.


@ivan

1] This app will not get past the language selection when using javaw.exe, it seems to require java.exe

2] You will only get the app to start and appear onscreen when you have installed using the Installer package - which indicates that the installer package contains something different to the standard zip package other than the installer related bits.


@All

As I said before I do not have much hope that whatever the problem is will be fixed by the developer - which is a shame as it looks like it could have been useful app.


Regards

Pete


Title: Re: Java for os2
Post by: miturbide on 2012.01.09, 17:03:48
I'm also trying FreePlane

"Freeplane is free and open source software to support thinking, sharing information and getting things done at work, in school and at home." (Open Source GNU GPL V2)
http://freeplane.sourceforge.net

I changed the .bat file to make it run, very quick and dirty to test if the app runs. It runs but It was a little bit unstable at first, it generated me the error on "hs_err_pid90.log". But the second time I run it seems more stable.

Title: Re: Java for os2
Post by: miturbide on 2012.02.06, 05:30:42
Here I'm trying a game called "Settlers of Catan"

http://sourceforge.net/projects/jsettlers2/

JSettlers2 is a web-based version of the board game Settlers of Catan written in Java. This client-server system supports multiple simultaneous games between people and/or AI bots. Replaces the old project (http://sourceforge.net/projects/jsettlers).

In my case I have a little display issue on the main window where the chat is supposed to be.
I still need to learn more about the game.

Title: Re: Java for os2
Post by: xchris on 2012.02.08, 22:21:33
jAMOS ( AMOS BASIC reimplementation in Java ) runs very well too!

http://sourceforge.net/projects/javaamos/ (http://sourceforge.net/projects/javaamos/)



Title: Re: Java for os2
Post by: miturbide on 2012.02.09, 05:48:07
I also tried TightVNC Java Viewer 2.1. (January 27, 2012)

"It's a fully-functional TightVNC remote control program written entirely in Java. Open Source GNU GPL"
http://www.tightvnc.com/download.php

The logon window to put the server name and port, does not looks right, but if you put the number there the software works to take control with VNC.
Title: Re: Java for os2
Post by: Blonde Guy on 2012.02.09, 06:24:18
VNC has a client and a server. Is that just a client, or does it have a server, too? If it has both, did they both work with eCS? If not did you use PMVNC as the server? How well did transmitting control-escape work (that's a limitation of PMVNC)?

I use VNC a lot, and while our client and server aren't perfect, I'd like to see some more information on other products.
Title: Re: Java for os2
Post by: miturbide on 2012.02.09, 14:54:33
HI Blonde Guy

TightVNC Java viewer is only the VNC client.

I had only tested it on eCS to take control over a machine that uses Windows and TightVNC server (native). I didn't tested it against a OS/2 host with PMVNC to see if it is compatible.
Title: Re: Java for os2
Post by: miturbide on 2012.03.06, 05:38:03
Any luck with Nevernote (Nixnote) ?

"This is an open source clone of Evernote.  This program has been run on Linux, Windows, and OS-X, but the primary goal is to proved a Linux client.  While this is designed to work with Evernote, it is in no way connected with or supported by Evernote."

http://nevernote.sourceforge.net/index.htm (http://nevernote.sourceforge.net/index.htm)
Title: Re: Java for os2
Post by: Pete on 2012.03.08, 03:19:17
Hi Martin

Which package did you download?

I picked on nixnote-1.2_i386.tar.gz from the "Current" download option and it looks like the usual *nix mess; not sure if I can figure out how to get a working app from this package...

I suspect that it will need a cmd file version of nixnote.sh as trying to run the nixnote.jar results in a Java Virtual Machine Launcher error:-

Failed to load Main-Class manifest attribute from J:\Java\nixnote\usr\share\nixnote\nixnote.jar


Regards

Pete



Title: Re: Java for os2
Post by: ivan on 2012.03.08, 13:04:11
Hi Pete

I tried it with just the jar file (at the top of the file list) and get the same error that you do so it could be a problem with the package.

ivan
Title: Re: Java for os2
Post by: miturbide on 2012.03.08, 14:44:12
Yes, I'm using the same one "nixnote-1.2_i386.tar.gz" with the same error, no manifest file.

I'm trying to look around. Possible it is not platform independent.
Title: Re: Java for os2
Post by: miturbide on 2012.03.09, 22:30:24
Hi

I also had been trying Rachota 2.4 (2011-01-07), it seems to work fine.

"Rachota is a portable application for timetracking different projects. It runs on Windows, Linux, Solaris and Mac. It displays time data in diagram form, creates customized reports or invoices and provides suggestions to increase your effeciency."

URL: sourceforge.net/projects/rachota/ (http://sourceforge.net/projects/rachota/)
Title: Re: Java for os2
Post by: miturbide on 2012.05.22, 23:46:08
I remember I run SmartSVN and SmartVS for testing, but I'm having problems running SmartGit.

I'm trying[

  java -Xmx512m -Dsun.awt.noerasebackground=true -Dsmartgit.checkIncompatibleJava=false -jar ..\LIB\smartgit.jar

But I get the famous "Failed to load Main-Class manifest attribute from ..\LIB\smartgit.jar"

Any tip to make SmartGit run? Thanks.
Title: Re: Java for os2
Post by: Andi on 2012.05.23, 20:43:15
I run SmartGit2.1.6 with the following script -
Code: [Select]
@echo off
rem OS/2 script for SmartGIT, requires JAVA 1.6 installed

rem #########################################################################
rem call external script which set up java6 enviroment
rem #########################################################################
call envjava6.cmd

set JAVA_EXE=java
SET JAVA_OPT="-Dsmartgit.checkIncompatibleJava=false"
set SMARTGIT_HOME=.
set SMARTGIT_LIB=%SMARTGIT_HOME%\lib
set SMARTGIT_MAIN_JAR=%SMARTGIT_LIB%\smartGIT.jar

%JAVA_EXE% %JAVA_OPT% -mx256m -jar %SMARTGIT_MAIN_JAR% %1

My envjava6.cmd is like -
Code: [Select]
set JAVA_HOME=P:\Java6
set path=%JAVA_HOME%\bin;%PATH%

set libpathstrict=T
set BEGINLIBPATH=%JAVA_HOME%\bin;
Title: Re: Java for os2
Post by: miturbide on 2012.05.23, 22:45:13
Thanks Andi.

I'm trying smartgit-generic-3_0_4.tar.gz, with your script it shows the same

"Failed to load Main-Class manifest attribute from
.\lib\smartGIT.jar"

...uhm.. maybe the 3.0.4 is not working.
Title: Re: Java for os2
Post by: miturbide on 2012.05.23, 22:51:15

I tried SmartGit 2.1.8 and it worked.
(http://www.syntevo.com/smartgit/download-archive.html)

My guess is that SmartGit 3 does not run cause it is using SWT, which is not ported to OS/2-eCS, but that's only a guess checking v3 changelog.
Title: Re: Java for os2
Post by: miturbide on 2012.06.27, 00:03:21
I'm not able to run MegaMek with OpenJDK 1.6.
http://megamek.info/downloads

I'm getting this error:

Quote
[D:\JAVATEST\MEGAMEK-V0.34.10]java -jar megamek.jar
Redirecting output to megameklog.txt
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x1cb9012a, pid=107, tid=701236
6
#
# JRE version: 6.0-b24
# Java VM: OpenJDK Client VM (20.0-b12 mixed mode os2-x86 )
# Problematic frame:
# V  [JVM+0xc012a]
#
# An error report file with more information is saved as:
# D:\JAVATEST\MEGAMEK-V0.34.10\hs_err_pid107.log
SYS1808:
The process has stopped.  The software diagnostic
code (exception code) is  0000.


The log says:
Quote
Starting MegaMek v0.34.10 ...
Compiled on Wed Jan 25 18:23:28 EST 2012
Today is Tue Jun 26 16:59:11 EDT 2012
Java vendor Sun Microsystems Inc.
Java version 1.6.0-ga2
Platform OS/2 20.45 (x86)
Total memory available to MegaMek: 253,440 kB

Starting GUI AWT. args: []
Title: Re: Java for os2
Post by: Joop on 2012.06.27, 22:55:41
I'm not able to run MegaMek with OpenJDK 1.6.
http://megamek.info/downloads

I'm getting this error:

Download the game, unzipped it in a new directory, used one of my cmd files, changed it a little so it understands the directory and filename. Did start it, did run into errors because hadn't setup properly. This is with most programs a first time problem. Tried it again and the game just start. Didn't read anything, but its a huge game, it is a net game, so you need to play it with others over the net. Can be risky.

I used this commandfile;

@echo off
set BEGINLIBPATH=[drive:]\JAVA\JAVA160\bin
set path=[drive:]:\JAVA\JAVA160\bin
set CLASSPATH=
[drive:]
cd [drive:]\Spelletjes\MegaMek
java.exe -Duser.home=[drive:]\Spelletjes\MegaMek -jar megamek.jar 2>megamek-bugs.txt

Change [drive:] into a proper drive letter.

Have fun
Joop
Title: Re: Java for os2
Post by: miturbide on 2012.07.01, 19:19:07
Nop.... I can not make megamek run.. I got the same error.

I had been trying also Vassal engine, which is a Java board engine.
http://www.vassalengine.org/

It had several modules.
http://www.vassalengine.org/wiki/Category:Modules

Some of them seems to run fine. I'm still trying it out.
Title: Re: Java for os2
Post by: jep on 2012.07.02, 08:18:31
Nop.... I can not make megamek run.. I got the same error.

Me neither, it just barf at me with the same problem as described by martini.

______
(Firefox 10.0.5 and JDownloader doesn't seem to get along either on that computer, AMD Quad Core, as it cause a reboot after a sys3170 in popup.log). The same setup work (FF 10.0.5 and JDownloader) fine on a single core machine.  (MegaMek not tested there though)

//Jan-Erik
Title: Re: Java for os2
Post by: Joop on 2012.07.05, 03:06:14
# JRE version: 6.0-b24
# Java VM: OpenJDK Client VM (20.0-b12 mixed mode os2-x86 )


I use 6.0-b22 version, single core.
I have removed the game from system due to the problem that you can find "confidential" information in the file "MegaMek\logs\megameklog.txt".
Title: Re: Java for os2
Post by: Andi on 2012.07.06, 19:17:23
Anyone tried/success with regain? http://regain.sourceforge.net/download.php

ok, got it started, seems to prepare index now. Let's see if it's usable then....
Title: Re: Java for os2
Post by: Joop on 2012.07.29, 12:15:22
I'm trying to look around. Possible it is not platform independent.
It needs also qt from trolltech.

NN_CLASSPATH=$NN_CLASSPATH:$NIXNOTE/lib/qtjambi-linux32-4.5.2_01.jar
NN_CLASSPATH=$NN_CLASSPATH:$NIXNOTE/lib/qtjambi-linux32-gcc-4.5.2_01.jar
NN_CLASSPATH=$NN_CLASSPATH:$NIXNOTE/lib/qtjambi-linux64-4.5.2_01.jar
NN_CLASSPATH=$NN_CLASSPATH:$NIXNOTE/lib/qtjambi-linux64-gcc-4.5.2_01.jar

So it might be possible that 2 of these four files (the linux32 bit) need to be rewritten so it can run in the qt environment of OS/2.
Its a very difficult installation, most Java programs are much easier.

screenprint of the problem;
Exception in thread "main" java.lang.NoClassDefFoundError: com/trolltech/qt/gui/QMainWindow
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:634)
        at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
        at java.net.URLClassLoader.defineClass(URLClassLoader.java:277)
        at java.net.URLClassLoader.access$000(URLClassLoader.java:73)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:212)
        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)
Caused by: java.lang.ClassNotFoundException: com.trolltech.qt.gui.QMainWindow
        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)
        ... 11 more
Could not find the main class: cx.fbn.nevernote.NeverNote. Program will exit.

Its a big program, it will not work because we have to change 2 files which searches hard coded for qt on a place we don't use. I removed the stuff from hd.

If you want to experiment, here my cmd file, I used JAVA GA1 because this is stable on my system together with latest Odin, GCC and LIBC;
@echo off
set path=[drive java:]\JAVA\JAVA160\bin
set BEGINLIBPATH=[drive java:]\JAVA\JAVA160\bin
set CLASSPATH=[drive programs:]\PROGRAMS\nixnote;[drive programs:]\PROGRAMS\nixnote\lib
[drive programs:]
cd [drive programs:]\PROGRAMS\nixnote
java -Xms256M -Xmx512M -cp nixnote.jar;apache-mime4j-0.6.jar;commons-codec-1.5.jar;commons-compress-1.2.jar;commons-lang3-3.0.jar;commons-logging-1.1.1.jar;evernote-api-1.20.jar;h2-1.3.158.jar;httpclient-4.1.1.jar;httpcore-4.1.jar;httpmime-4.1.1.jar;jaxen-1.1.3.jar;jazzy.jar;jtidy-r938.jar;libthrift.jar;log4j-1.2.14.jar;pdfbox-app-1.6.0.jar;poi-3.7-20101029.jar;poi-ooxml-3.7.jar;poi-ooxml-schemas-3.7-20101029.jar;poi-scratchpad-3.7-20101029.jar;tika.jar;xmlbeans-2.3.0.jar;xsdlib-20060615.jar;qtjambi-linux32-4.5.2_01.jar;qtjambi-linux32-gcc-4.5.2_01.jar cx.fbn.nevernote.NeverNote 2>nixnoteproblems.txt

I did flatten the total structure, one more time to show that we don't have to go to the new installer for OS/2;

nixnote
-applications
-images
-lib
-man
-qss
-spell
-translations
-xml

Joop
Title: Re: Java for os2
Post by: miturbide on 2012.08.01, 04:16:57
Hi

How is your experience with OpenJDK 1.6.0 Build 25 GA3 and IceTea ?

I had been trying to run IceTea but I didn't have good results on Firefox 10.0.4.

First I wanted to run IBM Download Director, but it is not working fine. First it didn't show the "text box" to select the download directory and after that it crashed the browser.

What other places are you testing with Java and IceTea??
Title: Re: Java for os2
Post by: Joop on 2012.08.11, 17:46:51
I've found a new victim for running under Java in OS/2-eCS  :)

I found diy-layout creator http://code.google.com/p/diy-layout-creator/ (http://code.google.com/p/diy-layout-creator/)

Download the zip diylc-3.7.0-beta.zip, unpack it in a directory, I called mine diylc. Delete diylc.exe and run.sh  

Make a commandfile with the following contents;

@echo off
set BEGINLIBPATH=[drive with Java:]\JAVA\JAVA160\bin
set path=[drive with Java:]\JAVA\JAVA160\bin
set CLASSPATH=[drive with programs:]\CAD\diylc\lib
[drive with programs:]
cd [drive with programs:]\CAD\diylc
java -Xms128m -Xmx512m -jar diylc.jar 2>diylc-3_70_beta-bugs.txt

I managed to load a thing or two, its not all okay because it generates a small bug file. I did it with ODIN 0.7.1 and Java 1.6.0 GA1. I get severe errors with ODIN 0.8.x like missing menu bars, no drives or files in dropdown menu's etc. The Combi ODIN 0.7.1 and Java 1.6.0 GA1 works up to now for all things I start.

Quest, in case you want to help me, is a replacement for "lochmaster". This is a stripboard designer with all known stripboards available in Europe and off course components. The worst thing about it is that it has to run in Windows 98 (version 3.0) or XP or worse (version 4.0), but the most nasty thing is that it addresses virtual non existing memory which is possible in Windows, that's why Windows sucks, but which creates severe errors in ODIN, because that program does the right thing. So the quest is a stripboard designing program which has to run under OS/2-eCS. Its okay if it runs in Java or for that matter in Odin. Of course native is also oaky, but I don't think such exists, but you can never know. Its a big world out there...

Have fun,
Joop



Title: Re: Java for os2
Post by: guzzi on 2012.08.12, 01:01:18
Would qelectrotech be able to do the same? (on netlabs)
Title: Re: Java for os2
Post by: Joop on 2012.08.12, 03:46:23
Would qelectrotech be able to do the same? (on netlabs)
No, you can only use it for an electric diagram, not for placing parts on a stripboard which is actually the next step in the process. First you make a diagram, the schematics. Next you make a print which holds the components. Because this is a process with chemicals you have order it with a specialized firm which manufacture such boards. At home this is mostly forbidden due to environmental rules. A stripboard is something in between and here a special program comes in to help with it and to make the most of it. Mission critical applications still need the route via a specialized firm.