[MacPorts] #58098: Install openjdk8 as default JVM

MacPorts noreply at macports.org
Tue Feb 19 17:04:22 UTC 2019

#58098: Install openjdk8 as default JVM
  Reporter:  giansalvo    |      Owner:  (none)
      Type:  enhancement  |     Status:  new
  Priority:  Normal       |  Milestone:
 Component:  ports        |    Version:  2.5.4
Resolution:               |   Keywords:
      Port:  openjdk8     |

Comment (by giansalvo):

 Replying to [comment:3 breun]:
 > The standard way of setting your default JVM is by setting the
 `JAVA_HOME` environment variable.
 > When you install the `openjdk8` port this message is displayed
 explaining this:
 > {{{
 > If you have more than one JDK installed you can make JDK 8 the default
 > by adding the following line to your Bash shell profile
 >     export
 > }}}
 Yes I know. This is true for java applications that you launch from the
 terminal/shell. But I need to "link" the JVM with a macOS bundled java
 application (Arduino.app in the `/Applications` folder). As far as I could
 see the `JAVA_HOME` shell variable set in the Bash profile configuration
 file doesn't affect the .app application.

 Furthermore as you can see from the third attached image, the .app file
 contains already the entire `openjdk8` JRE.

Ticket URL: <https://trac.macports.org/ticket/58098#comment:4>
MacPorts <https://www.macports.org/>
Ports system for macOS

More information about the macports-tickets mailing list