Java path set in linux -
As shown in the image below, the linux environment is capable of setting the Java path, but when I put the Putty environment Again, the Java path is not set up ... so every time I open the bar, I have to set the Java path ... so how can I set it permanently ...? P>
[Route @ IP-177-31-21-182 /] # Exportable JAVA_HOME = // opt / jdk1.7.0_55 [Root @ IP-177-31-21-182] # Export Java_home = / opt / JDK1 7.0_55 [Route @ IP-177-31-21-182] # Export JAVA_HOME = / opt / jdk1.7.0_55 / JR [Route @ IP-177-31-21-182 / # Export Path = $ Path: /opt/jdk1.7.0_55/bin:/opt/jdk1.7.0_55/jre/bin [Route @ IP-177-31-21-182] #javac /opt/jdk1.7.0_55/bin/ Javac [root @ ip-177-31-21-182] # ^ c [root @ ip-177-31-21-182]] #
export javva_home = / opt / jdk1.7.0_55
for the current session only as a Java variable Jawa_Home will set up If you want to keep your changes consistently, you have to set it up in your user accounts. The .bash_profile file is located exactly at ~ / .bash_profile
This will make Baba to set up JAVA_HOME environment variable every time this user logs into the system.
Comments
Post a Comment