ibmi-brunch-learn

Announcement

Collapse
No announcement yet.

How to control which JVM is started

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • How to control which JVM is started

    Hello,

    How do I control which JVM is started on the V6R1?

    We have for jdk1.4, jdk1.5 and jdk6. They each have a rt.jar.

    Thank You

  • #2
    Re: How to control which JVM is started

    Code:
    java -Djava.version=1.4 MyClass
    Update: For iSeries (AS400) V7R1 Java version and setup click here First find out what java version is the default when you sign on The...

    Comment


    • #3
      Re: How to control which JVM is started

      Using "java.version" (as suggested by dhanuxp) only works for the "classic" JVM. (And, in my opinion, was a mistake on IBM's part in the first place!)

      Newer versions of Java on IBM i are not available as a "classic" JVM, they are only available using the J9 technology, and will not work with "java.version". Instead, you should use the same way you select a JVM on all other platforms, the JAVA_HOME environment variable. This method is also much more versatile because you can, for example, set it system-wide and control the default JVM version for everyone.

      Take a look here:


      And also look in the Information Center for your release of the IBM i operating system.

      Comment

      Working...
      X