Setting JAVA_HOME automatically
Hello,
IS:
when I install openjdk-8-jdk I can run e.g. javac and can work with java.
When a framework like Hybris requires the env var JAVA_HOME to be set, it is not.
It will not run without a proper JAVA_HOME, so I need to set it myself (/etc/environment or .bashrc)
But when I need to change to let's say openjdk-7-jdk (for an older hybris version) I need to readjust
JAVA_HOME by hand, as it is not handled by update-alternatives
If I modified the alternatives according to http://
a new / different version of a jdk is installed or used.
WISH:
each jdk should define JAVA_HOME in a way it can be set by update-
Unfortunately I am very new to ubuntu so I have no point to start with this issue myself.
If someone could point me in the right direction (how to integrate alternative env vars in packages)
I could try to work on it.
Best wishes,
Alexander
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- Ubuntu openjdk-8 Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask hasgarion for more information if necessary.