× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Hi Barbara

Thanks - this setup made it worked - thanks !!!

Jan




Barbara Morris <bmorris@xxxxxxxxxx> 
Sent by: java400-l-bounces@xxxxxxxxxxxx
2005-04-26 21:29
Please respond to
Java Programming on and around the iSeries / AS400 
<java400-l@xxxxxxxxxxxx>


To
java400-l@xxxxxxxxxxxx
cc

Subject
Re: Java enviroment problem






"Jan S. Kjær" wrote:
> 
> I have made a Java program that is placed in IFS and compiled with 
javac.
> (Using native STRQSH)
> I have placed a: SystemDefault.properties - under
> \\10.45.9.2\pdf\QIBM\UserData\Java400 - with content: java.version=1.4,
> because I'm using the split metode.
> Everything okey so fare.
> 
> But call the program from RPGLE program, creates an error, telling me,
> that it can't find the spilt metode:
> 

The java.version property in SystemDefault.properties is ignored by Java
when the JVM is created using JNI (which is how RPG creates the JVM). 
The only way to get a specific java.version is to use the
QIBM_RPG_JAVA_PROPERTIES environment variable:

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

Don't forget the final semicolon.

If you are on V5R1 or V5R2, you need a PTF to get the support for this
environment variable:
  V5R1: SI10069
  V5R2: SI10101

-- 
This is the Java Programming on and around the iSeries / AS400 (JAVA400-L) 
mailing list
To post a message email: JAVA400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/java400-l
or email: JAVA400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/java400-l.



As an Amazon Associate we earn from qualifying purchases.

This thread ...

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.