java - Offical way to setup JAVA_HOME environment variable in Ubuntu server? -


Suppose I am compiling JDK to the download source from ORCL.

Now to JDK / opt / oracle / jdk /

I am exporting java_home and path environment variables in / etc / profile.

Is this the suggested way?

I am exporting path environment variables in JAVA_HOME and / etc / profile.

There is a way to do this but assume that different users (or individual applications) on the machine may need to use different Java installations, so other options users To set environment variables in their personal shell profiles, and the applications that you want to set in the wrapper script, "init.d" script or whatever.

Choose the "fit" method that best fits your needs best.


Comments

Popular posts from this blog

paypal - How to know the URL referrer in PHP? -

oauth - Facebook OAuth2 Logout does not remove fb_ cookie -

wpf - Line breaks and indenting for the XAML of a saved FlowDocument? -