Hi Tom,

I don't think JAVA_HOME worked on v5r2, did it?

There were issues in (maybe v5r2?) with not being able to control the way RPG started the JVM. It ignored CLASSPATH, and SystemDefault.properties, and you really couldn't get it to do anything. But, eventually (via PTF) they added support for all of that stuff.

You might try using QIBM_RPG_JAVA_PROPERTIES to see if that helps.

ADDENVVAR ENVVAR(QIBM_RPG_JAVA_PROPERTIES) +
VALUE('-Djava.version=1.4;')

This (like CLASSPATH) should be done in a fresh session before you've run any Java at all. So, if your program is being run interactively, sign off and back on again before setting the envvar. And don't run any RPG-calling-java programs until after the envvar is set.

If that doesn't work, then my guess is that you're missing the appropriate PTFs. Not sure if they're still available, though?

If they're not, your only other alternative is to start the JVM via the JNI APIs. Not fun. But, it would give you the ability to specify stuff like the JVM version.

But, what can you do? This is the price you pay for using an outdated OS.


On 4/20/2011 7:52 PM, Tom Hightower wrote:

Following the article, I've:
- created the /QIBM/UserData/Java400/SystemDefault.properties file; it has
one line: java.version=1.4
- created the JAVA_HOME environment variable with "ADDENVVAR
ENVVAR(JAVA_HOME) VALUE('/QOpenSys/QIBM/ProdData/JavaVM/jdk50/32bit')
LEVEL(*SYS) "

I also used qsh to check my java version:
qsh
$
java -version
java version "1.4.2"
$

Using wrklnk, I see that I have no JavaVM folder in /QOpenSys/QIBM/ProdData/
- is there some licpgm that I need to install to get the JavaVM?

Tom


-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx
[mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Morgan, Paul
Sent: Wednesday, April 20, 2011 4:08 PM
To: Midrange Systems Technical Discussion
Subject: RE: RPG2SQL - is there something in WebSphere that will do thesame
thing?

Tom,

Here's an article about setting the default JVM:

http://www-01.ibm.com/support/docview.wss?rs=0&dc=DB520&dc=D900&dc=D800&dc=D
A900&dc=DA800&q1=systemdefault.properties+AND+AS400KBXXYYZZRCH&uid=nas1699c5
bd1f701d04e862568f1006c7483&loc=en_US&cs=UTF-8&lang=all

It mentions the JAVA_HOME environment variable and the java.version system
property. You could set those globally or have local values for your
process.

Paul Morgan

Principal Programmer Analyst
IT Supply Chain/Replenishment

-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx
[mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Tom Hightower
Sent: Wednesday, April 20, 2011 4:32 PM
To: 'Midrange Systems Technical Discussion'
Subject: RE: RPG2SQL - is there something in WebSphere that will do thesame
thing?

Alrighty, I've read the article and uploaded the samples to our iSeries
(currently v5r2, btw with no maintence s/w or otherwise). I've worked up a
test program using one of his test programs as an example. The program
creates the database and table, but fails when inserting records with the
following message:

JDK Version 1.4 or later required!

In LICPGM, I see the following:
5722JV1 V5R2M0 Java Developer Kit 1.2
5722JV1 V5R2M0 Java Developer Kit 1.1.8
5722JV1 V5R2M0 Java Developer Kit 1.3
5722JV1 V5R2M0 Java Developer Kit 1.4

I'm not sure what I need to fix/remove/update.

Tom


-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx
[mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Alan Campin
Sent: Wednesday, April 20, 2011 9:57 AM
To: Midrange Systems Technical Discussion
Subject: Re: RPG2SQL - is there something in WebSphere that will do the same
thing?

Just use Scott's JDBC Api. Does what you want and the price is great, free!
I use it to go to Sql Server but all you need is the driver for MSQL.

On Wed, Apr 20, 2011 at 8:32 AM, Tom Hightower<tomh@xxxxxxxxxxx> wrote:


We've been using RPG2SQL for 5 years, very happily I might add. After
the first year, "The Power that Is" decided to let the maintenance on
RPG2SQL lapse. We're now about to purchase a new iSeries and upgrade
some of our PCs. This will require that we re-purchase the RPG2SQL
license, or pay a rather steep cost + penalty to maintenance up to date.
TPtI is not happy.

The iSeries side of RPG2SQL will submit an SQL-type of query to a
remote server (PCs running MySQL, in our case), the client software on
the PC will capture that request, perform the SQL retrieval from the
MySQL database and return the results to the iSeries. RPG2SQL is
capable of much more, but this is how we use it; not much else is needed.

I've been tasked with finding an alternative within WebSphere - is there?





--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing
list To post a message email: MIDRANGE-L@xxxxxxxxxxxx To subscribe,
unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx Before posting, please take
a moment to review the archives at
http://archive.midrange.com/midrange-l.



--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx To subscribe, unsubscribe,
or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx Before posting, please take a
moment to review the archives at http://archive.midrange.com/midrange-l.

--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx To subscribe, unsubscribe,
or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx Before posting, please take a
moment to review the archives at http://archive.midrange.com/midrange-l.




As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.