× 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.



Found that there were properties for each admin instance:
So
set /QIBM/ProdData/OS/OSGi/LWISysInst/admin*/conf/i5OSStartup.properties
with string: engine.javaVersion=1.6
Where '*' is amin to admin6, changing the line only the instances where
i5OSStartup.properties already existed.
Still sitting at the same version =(...


On Wed, 2010-09-22 at 11:46 -0600, Ken wrote:

Thank you Alex,
I'd rather set it as the default than on a per user basis right now...
But I will try this:
under /home/user/ there is only one user "QIBMHELP"... the int app
server runs under user id "QLWISVR" so I created that folder, and added
the properties file and restarted.
The properties under HTTPAdmin for the app server still shows "JVM
version:1.5" instead of 1.6...
So... I also found this file (which I reached with
WRKLNK): /QIBM/ProdData/OS/OSGi/LWISysInst/admin2/conf/i5OSStartup.properties
Found the line:
engine.javaVersion=1.5
and changed to
engine.javaVersion=1.6
Restarted the app server with HTTPAdmin and still it shows 1.5 !!!


So now I have:
/QIBM/ProdData/OS/OSGi/LWISysInst/admin2/conf/i5OSStartup.properties
with string: engine.javaVersion=1.6
/home/user/QLWISVR/SystemDefault.properties with string:
java.version=1.6
/QIBM/UserData/Java400/SystemDefault.properties with string:
java.version=1.6

Maybe I'm not restarting it correctly?

On Wed, 2010-09-22 at 13:30 -0400, Alex Pinsky wrote:

Place SystemDefault.properties file in /home/user name who starts the server/ folder

That will override default settings at server startup time.

Alex Pinskiy
Aeropostale, Inc

-----Original Message-----
From: java400-l-bounces@xxxxxxxxxxxx [mailto:java400-l-bounces@xxxxxxxxxxxx] On Behalf Of Ken
Sent: Wednesday, September 22, 2010 1:16 PM
To: Java Programming on and around the IBM i
Subject: Re: How to Set Java Version

I've set up an "App server" using HTTPAdmin. The sub system for the app server is QHTTPSVR.
I did create the file /QIBM/UserData/Java400/SystemDefault.properties
with java.version=1.6 and restarted the app server but that did not change the version.

On Wed, 2010-09-22 at 10:57 -0600, Ken wrote:

Very basic question, how do I set the version of Java running by
default on an iSeries v6r1.

Most of the documentation I find talks about a SystemDefaut.properties
file but it is not at the specified location
â/QIBM/UserData/Java400/SystemDefault.properties , do I simply create
the file?

This document:
http://www.lansa.com/support/tips/t0357.htm
Mentions a STRJSM command but that does not run.

I have verified that at least Java 1.5 and Java 1.6 are on the system
but Java 1.5 is currently the default and I need 1.6 instead.










--
This is the Java Programming on and around the IBM i (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.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

CONFIDENTIALITY NOTE: The information contained in this email or fax is intended
only for the use of the individual or entity to whom it is addressed. If you are not
the intended recipient, you are hereby notified that any disclosure, copying,
distribution, printing or other use of, or any action taken in reliance upon, the
contents of this email or fax and the information contained therein is strictly prohibited.
Before opening or using attachments, check them for viruses and defects. Our liability
to you for viruses or defects associated with any email or fax is strictly limited to resupplying
any affected attachments. If you have received this communication in error, please immediately
notify the sender by telephone at (646) 264-6217 and delete the original message.
Thank you.



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.