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



Not really -- you could have one Java program spawn another though.




TitanRebel <TitanRebel@xxxxxxxxxxx> 
Sent by: java400-l-bounces@xxxxxxxxxxxx
03/08/2005 20:32
Please respond to
Java Programming on and around the iSeries / AS400 
<java400-l@xxxxxxxxxxxx>


To
Java Programming on and around the iSeries / AS400 
<java400-l@xxxxxxxxxxxx>
cc

Subject
Can I detect Java version before my java program starts?






I am starting a Java application on the iSeries.  I don't really care 
which version of Java the iSeries is using as default (as long as it's 
above 1.3.1).  The problem is that in the CL program that uses the JAVA 
command to start he application, I have to "hard code" the classpath to 
include a reference to the tools.jar file found in the JAVA_HOME 
directory.  As you know this path changes based on the version of Java 
being used.

Is there a way that I can detect the version of java prior to program 
start and add the appropriate classpath entry then?  Right now, a CL is 
starting the Java program "directly" with the JAVA command.  This could 
be changed to use a QSHELL script, but I still don't know how I would do 
this in a shell script either.

Any help would be appreciated.

Thanks,

Ken


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.