OS/2, eCS & ArcaOS - Technical > Setup & Installation

DB2 v. 6.1 / Java

(1/2) > >>

Per E. Johannessen:
It seems like DB2 requires an older Java version than the OpenJDK that comes with ArcaOS.
The DB2 java apps works with jre.exe and not java.exe.
Tried to install Java 1.4 but got some error.

Is there a work around to make DB2 work with OpenJDK, or any other solution?

ivan:
Would the java from the warp 4 merlin be the one you are looking for?  If so I can zip it from my merlin beta CD.

Per E. Johannessen:
Thanks, Ivan, but I just got Java 1.4.2 installed.
No success with db2cc.cmd;

/* JRE [options] CC "[-h {location of db2jd}] [db2jd port number]" */
'jre -mx128m -cp 'db2path'\cc;'db2path'\cc\db2cc.jar;'db2path'\java\swingall.jar;'db2path'\java\db2java.zip;'db2path'\cc\db2plug.zip CC -nojit "6790 %1"'

I've replaced "jre" in the above cmd with "java" and get some "NullPointerError"
Wonder if I have to try with an even older java version, like 1.1.8?

Thoughts are welcome.

Mentore:

--- Quote from: Per E. Johannessen on February 22, 2024, 11:23:45 pm ---Thanks, Ivan, but I just got Java 1.4.2 installed.
No success with db2cc.cmd;

/* JRE [options] CC "[-h {location of db2jd}] [db2jd port number]" */
'jre -mx128m -cp 'db2path'\cc;'db2path'\cc\db2cc.jar;'db2path'\java\swingall.jar;'db2path'\java\db2java.zip;'db2path'\cc\db2plug.zip CC -nojit "6790 %1"'

I've replaced "jre" in the above cmd with "java" and get some "NullPointerError"
Wonder if I have to try with an even older java version, like 1.1.8?

Thoughts are welcome.

--- End quote ---

Well that may even be. Java 118 and 142 are pretty much different in many aspects. Depending on the release date it may be the only way to go.

Mentore

Alex Taylor:
You may have the Java 1.1.8 runtime already installed in \OS2\JRE\Java11. If so, you can call it using a wrapper script that sets

--- Code: ---SET JAVA_HOME=x:\OS2\JRE\Java11
SET SWING_HOME=%JAVA_HOME%\SWING
SET BEGINLIBPATH=%JAVA_HOME%\DLL;
SET PATH=%JAVA_HOME%\BIN;%PATH%
SET CLASSPATH=%JAVA_HOME%\LIB\SecMA.jar;%SWING_HOME%\swingall.jar;%JAVA_HOME%\LIB\classes.zip;

--- End code ---
where x: is your system drive.

(Not tested so make whatever tweaks are needed.)

Navigation

[0] Message Index

[#] Next page

Go to full version