--
************************************************************************************************************
Bob Bencivenga (OS/2 Die Hard)
Cruising at Warp Speed on a Cable Modem with OS/2 WARP SERVER for
E-BUSINESS /
eComstation / Lotus Smart Suite 1.72 / Warpzilla / Injoy 2.3 & Injoy
Firewall 1.4 /
PmView PRO / Warp Zip 2.4 / PMfax Pro for OS/2 v3.2
Hoy! Yaaaa!!!!!
Remember to support Shareware Vendors.
Reply to "benji0001(at)comcast(dot)net"
This OS/2 system uptime is 0 days 16 hours 48 minutes (en).
************************************************************************************************************
> I currently have the Golden Code java, IBM's lates 1.3.1, Innotek's
> java, and IBM's 118. My question is how do I set a program to use a
> specific java version. One example is Norman Anti Virus requires IBM's
> 118. I would like to leave the Golden Code 1.4.2 as the default Java.
> Any ideas?
>
The default Java version is the one mentioned 1st in the LIBPATH
statement in your config.sys. Put the 'x:\java142\bin;' before the
'x:\Java11\dll;' and 'x:\java131\jre\dll;' statements.
I don't know if it makes a difference, but I like to keep the LIBPATH
and PATH statements in the same order in each.
I have NVC v5.60.29 and it works the same if either the Java11 or the
Java131 is the default RT.
To use a specific Java version, place a '*.cmd' file in the Java\bin
directory that you want to run the program in. Put a CLASSPATH statement
in it to point to the programs directory, and the java program to run. I
have attached a sample that works on my system to start JWaveEdit with
the Java11 RT.
Hope this helps.
I have the same setup, almost. Golden Code 1.4.2, IBM 1.3.1 and 1.1.8
The default is set to 1.1.8
This is an example that uses Java 1.3.1
======
REM *** This runs XNap with Java 1.3.1 ***
SET JAVA_HOME=C:\Java131\jre
SET HOME=E:\Programs\XNap
C:\Java131\jre\bin\java -Duser.home=E:\Programs\XNap -jar xnap.jar
======
This is an example that uses GoldenCode's Java (yes, I know, it's in the
1.4.1 directory).
======
REM *** This starts Arachnophilia with Java 1.4.2 ***
SET JAVA_HOME=C:\Java141\jre
SET HOME=E:\Programs\Arachnophilia
C:\Java141\jre\bin\java -Duser.home=E:\Programs\Arachnophilia -jar
Arachnophilia.jar
======
Hope this helps.
Isaac
Is GC Java at 1.4.2 ?
I'm using the "Innotek" java142_02 sdk, I have java118 installed just
for the tcpip configuration notebook app and do not have java131
installed anymore.
I do not have a "Default Java".
I used the Feature installer to uninstall java131.
I added the necessary libpath and classpath to tcpcfg2.cmd and include
the full java118 path in the command line:-
@echo off
setlocal
cd G:\TCPIP\java
REM ***** Add Java11 paths for this session
set BeginLibPath=g:\java11\bin;g:\java11\dll;
SET
CLASSPATH=G:\TCPIP\java\tcpauth.jar;G:\TCPIP\java\JVC2.JAR;G:\TCPIP\java\ddnssgui.jar;G:\TCPIP\java\tcpcfg2.jar;G:\TCPIP\java\%tcplang%\cfg2res.jar;G:\TCPIP\java\NETDIVER.JAR;G:\TCPIP\java\%tcplang%\tcpares.jar;
REM ***** Next line modified (full path) to work with Java11 now Java142
is Default- original:- java COM.ibm.raleigh.tcp.tcpcfg2.client.Tcpcfg2c
%tcplang% local notrace ***** End REM
g:\java11\bin\java COM.ibm.raleigh.tcp.tcpcfg2.client.Tcpcfg2c %tcplang%
local notrace
endlocal
@EXIT
If copying the above watch out for any line wrap; The SET CLASSPATH is
all one line and so is the REM delimited line.
I usually greate a program object for other java apps (those without
extra large classpath and libpath requirements) with the necessary
details eg:- for PostArmor
Path and File name : G:\JAVA142\JRE\BIN\JAVAW.EXE
Parameters : -jar J:\POSTARMOR\postarmor.jar
Some apps I find it necessary to create a small cmd file eg:- for
Borland JBuilderX Foundation
REM /* jbuilderx.cmd */
REM /* To run Borland JBuilder X Foundation ("for Windows") */
REM /* on OS/2 based systems that have Innoteks' version of */
REM /* Sun Java142_02 SDK ("for Windows") installed */
REM /* Locate in \JBuilderX\bin */
SetLocal
SET
CLASSPATH=G:\Java142\lib\tools.jar;../lib/activation.jar;../lib/ant.jar;../lib/beandt.jar;../lib/BorlandLookAndFeel.jar;../lib/dbswing.jar;../lib/dbswingdt.jar;../lib/dbtools.jar;../lib/DoctypeChanger.jar;../lib/dt.jar;../lib/dtdparser.jar;../lib/dx.jar;../lib/help.jar;../lib/JarManifestFix.jar;../lib/javac.jar;../lib/jbcl.jar;../lib/jbuilder.jar;../lib/jdbcx.jar;../lib/jds.jar;../lib/jdsremote.jar;../lib/jdsserver.jar;../lib/lawt.jar;../lib/linuxDesktopConfigurator.jar;../lib/mail.jar;../lib/optional.jar;../lib/primetime.jar;../lib/resolver.jar;../lib/sanct2.jar;../lib/sanctuary.jar;../lib/SequencedEventFix.jar;../lib/TabbedPaneFix.jar;../lib/unittest.jar;../lib/webservices.jar;../lib/xercesImpl.jar;../lib/xmlParserAPIs.jar;../lib/XPTreeUIFix.jar;
G:\java142\bin\java
-Xbootclasspath/p:../lib/lawt.jar;../lib/TabbedPaneFix.jar;../lib/SequencedEventFix.jar;../lib/javac.jar;../lib/JarManifestFix.jar;
-Xverify:none -Xms128m -Xmx512m
-Dborland.exportenv=D:/jbuilderX/jbenv.txt com.borland.jbuilder.JBuilder
EndLocal
Yet again watch out for line wrap; SET CLASSPATH is one line as is the
line starting G:\ and finishing with JBuilder.
Hope that gives you a few ideas :-)
Pete
> To use a specific Java version, place a '*.cmd' file in the Java\bin
> directory that you want to run the program in. Put a CLASSPATH statement
> in it to point to the programs directory, and the java program to run. I
> have attached a sample that works on my system to start JWaveEdit with
> the Java11 RT.
> Hope this helps.
With GC Java, there is no need for this;l you simply invoke the right
java runtime and it works out the LIBPATH, etc. automatically.
»I currently have the Golden Code java, IBM's lates 1.3.1, Innotek's
»java, and IBM's 118. My question is how do I set a program to use a
»specific java version. One example is Norman Anti Virus requires IBM's
»118. I would like to leave the Golden Code 1.4.2 as the default Java.
»Any ideas?
The way I do it is - for each program:
1. I drag a program object off the program object template
into the directory of the program I want to run under java.
2. In the 'Path and filename' field, I put the full path to
the java.exe program I want to run. For example (for
goldencode): E:\gcdjava\java141\jre\bin\java.exe
3. In the 'Parameters' field, I put in the info that java
needs to run the program.
For example: -jar photomesa13.jar
4. In the 'Working directory' field, I put in the full path
to the directory that the program resides in. For example:
E:\photoMesa
5. On the 'Session' page, I tell it to start minimized.
(What starts minimized is not the program, itself, but the
OS/2 command window that opens up as a result of this
program object.)
6. On the 'Icon' page, I drag an appropriate icon into the
'Current icon' field and give an appropriate name in the
'Title' field.
7. I close the Properties notebook; click the program
object, and away I go.
--
________________________________________________________
[RJ] OS/2 - Live it, or live with it.
rj friedman Team ABW
Taipei, Taiwan r...@yyyindoserv.com
To send email - remove the `yyy'
________________________________________________________
> I currently have the Golden Code java, IBM's lates 1.3.1, Innotek's
> java, and IBM's 118. My question is how do I set a program to use a
> specific java version. One example is Norman Anti Virus requires IBM's
> 118. I would like to leave the Golden Code 1.4.2 as the default Java.
> Any ideas?
What I do, is leave JAVA 1.1.8 as default (which keeps NORMAN, and the
OS/2 utilities, happy), than I use the RUN_JAVA program, from HOBBES,
to manage which JAVA gets used for everything else. Very simple
solution.
> http://hobbes.nmsu.edu/pub/os2/util/wps/run_java__20020707.zip
Hope this helps...
--
From the eComStation 1.1 of Doug Bissett
doug dot bissett at attglobal dot net
(Please make the obvious changes, to e-mail me)
Thanks again
Bob Bencivenga
Peter Brown <lose...@ntlworld.com> wrote in message news:<e7O1c.3444$zu.1147@newsfe1-win>...