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

c# - sqlDecimal to decimal clr stored procedure Unable to cast object of type 'System.Data.SqlTypes.SqlDecimal' to type 'System.IConvertible' -

Calling GetGUIThreadInfo from Outlook VBA -

Obfuscating Python code? -