|
There are a couple of different things you can do depending on who you want to effect. 1). To affect just your compile, and only adjusting the javac command: javac -J-Djava.version=1.3 ... NOTE: You do not qualify the path name to javac - specifying the java version to use via -J-Djava.version=1.3 picks up things correctly for you. 2). To affect just you compiles, without adjusting javac command each time: Create file SytemDefault.properties in directory /home/yourUserProfile (or whatever directory is specified for your user.home) and add the line "java.version=1.3" (without the double quotes). E.g.: mkdir '/home/yourUserProfile' where yourUserProfile is your As/400 user profile name edtf '/home/yourUserProfile/SystemDefault.properties java.version=1.3 PF3 twice to save and exit 3). To effect everyone on the system, add (or change) the line "java.version=1.3" (without the double quotes) to file /QIBM/UserData/Java400/SystemDefault.properties (create the file using editf if it does not exist). For more information for items 1 and 2, see http://publib.boulder.ibm.com/iseries/v5r1/ic2924/info/rzaha/config.htm (System property configuration heading) in the iSeries info center. Frances Stewart WebSphere Application Server for iSeries 400 IBM Rochester magaziner_barry@j pmorgan.com To: java400-l@midrange.com Sent by: cc: java400-l-admin@m Subject: How to set the default Java version idrange.com 11/10/2002 09:54 AM Please respond to java400-l Can anyone advise how I can set the Default Java version on the AS400. We have three versions: 1.1.8, 1.2 and 1.3 and it looks as if the default version is 1.1.8. I am compiling my programs under 1.3, using the command /QIBM/ProdData/Java400/jdk13/bin/javac ServletSample.java When I execute a java program in QShell using the java command, I' getting run-time errors that would not occur under jdk 1.3. When I check the version with the QShell command: java -version, I see 1.1.8. Thanks This communication is for informational purposes only. It is not intended as an offer or solicitation for the purchase or sale of any financial instrument or as an official confirmation of any transaction. All market prices, data and other information are not warranted as to completeness or accuracy and are subject to change without notice. Any comments or statements made herein do not necessarily reflect those of J.P. Morgan Chase & Co., its subsidiaries and affiliates. _______________________________________________ This is the Java Programming on and around the iSeries / AS400 (JAVA400-L) mailing list To post a message email: JAVA400-L@midrange.com To subscribe, unsubscribe, or change list options, visit: http://lists.midrange.com/cgi-bin/listinfo/java400-l or email: JAVA400-L-request@midrange.com 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 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.