Re: Different Java for different apps

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Frode Petersen wrote:
Hi. If I want to use a different Java VM (incl. libraries) for specific programs than what is set up through the alternatives system, do I have to use a shell script or is there a way to set up an environment that I can associate somehow with those programs? I probably need two different environments: The default one and Sun's for a few apps.

If using scripts, do I need to change anything other than the equivalents of the entries in the alternatives system?

Java normally figures everything out from the JAVA_HOME environment setting, so you need to manually or in a shell wrapper set that to where the Sun version is installed and give the full path if you are invoking java/jar/javac directly so you start the right one.

--
  Les Mikesell
   lesmikesell@xxxxxxxxx


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux