Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How does Fedora JDK assign permissions to java.sh

2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

In this issue, the editor will bring you about how Fedora JDK assigns permissions to java.sh. The article is rich in content and analyzes and narrates it from a professional point of view. I hope you can get something after reading this article.

Fedora JDK is still quite commonly used, so I studied Fedora JDK and took it out here to share with you. I hope it will be useful to you. Fedora JDK (Fedora JDK-1_5_0_02-linux-i586.rpm) has been successfully installed on Fedora Core 3, and the process is simple:

1. First download Fedora JDK from the Internet (Fedora JDK-1_5_0_02-linux-i586.rpm.bin,Fedora JDK-1_5_0_06-linux-i586.rpm.bin is also successful), recommend SUN's official website http://java.sun.com/javase/downloads/index.jsp, download it in the / home directory, of course, other places will do.

Enter the installation directory # cd / home#cp Fedora JDK-1_5_0_02-linux-i586.rpm.bin / usr/local#cd / usr/local to add executable permissions to all users # chmod + x Fedora JDK-1_5_0_02-linux-i586.rpm.bin#./Fedora JDK-1_5_0_02-linux-i586.rpm.bin will generate the file Fedora JDK-1_5_0_02-linux-i586.rpm at this time

Also add executable permissions to all users # chmod + x Fedora JDK-1_5_0_02-linux-i586.rpm installer # rpm-ivh Fedora JDK-1_5_0_02-linux-i586.rpm installation protocol, etc., press accept.

two。 Set the environment variable. # vi / etc/profile add in * side

# set java environment JAVA_HOME=/usr/java/Fedora JDK-1_5_0_02 CLASSPATH=.:$JAVA_HOME/jre/lib/rt.jar PATH=$JAVA_HOME/bin:$PATH export JAVA_HOME CLASSPATH PATH

Save exit.

To make Fedora JDK available to all users (chenlb: do not use this, the previous step has been implemented), you can go like this: vi / etc/profile.d/java.sh enter the following in the new java.sh:

# set java environment JAVA_HOME=/usr/java/Fedora JDK-1_5_0_02 CLASSPATH=.:$JAVA_HOME/jre/lib/rt.jar PATH=$JAVA_HOME/bin:$PATH export JAVA_HOME CLASSPATH PATH

Save exit and assign permissions to java.sh: chmod 755 / etc/profile.d/java.sh

3. Use the echo command at the terminal to check the setting of the environment variable.

# echo $JAVA_HOME # echo $CLASSPATH # echo $PATH

4. Check that Fedora JDK is installed successfully. # java-version is installed successfully if you see the JVM version and related information

This is how the Fedora JDK shared by the editor allocates permissions to java.sh. If you happen to have similar doubts, you might as well refer to the above analysis to understand. If you want to know more about it, you are welcome to follow the industry information channel.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report