Forum Stats

  • 3,874,195 Users
  • 2,266,681 Discussions


Mac OSX application bundle - select java runtime

Hey all,

I have an existing java app (not mine) which doesn't have a bundled JRE inside.

When I open it, it launches using the (I assume) default java.

Is there any way I can "tell" the app what java to use?

I have java 6, 7, and 8 installed and I want to switch between them.

Right now it always launches with java 6 no matter what I do.

I tried exporting JAVA_HOME, PATH but nothing works.

This discussion has been closed.