AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |
Back to Blog
Install java in linux4/3/2023 ![]() ![]() Download and install the certificate: wget -q -O /etc/apk/keys/ ġ0. Create simlink: ln -s /opt/java/jdkX.X.X_XXX /opt/java/currentĨ. Let's go to the catalog java: cd /opt/java and unpack the file: XXX-XXX-linux-圆4.tar.gz, tar -zxvf XXX-XXX-linux-圆4.tar.gzħ. Copy XXX-XXX-linux-圆4.tar.gz in the java directory: scp /home/username/XXX-XXX-linux-圆4.tar.gz /opt/java/Ħ. Сreate a directory in the root: mkdir -p /opt/javaĥ. Download XXX-XXX-linux-圆4.tar.gz and jce_policy-8.zip from official oracle suite.Ĥ. Edit vim /etc/profile, add the value before the string: append_path "/user/local/sbin", value: append_path "/opt/java/current/bin"ģ. NOTE: some users have reported they had to use this command to get it working:Īlternative installation of Oracle Java on Linux Alpine 1. You can do this for any other binary you need to use. If you have the JDK, you need to do the same to javac: Now in your /opt/java/XXX/bin folder, execute: Use this command to check if its installed: Ln -s /opt/java/jdk1.8.0_121 /opt/java/currentĮxecute this script or restart your shell: opt/java/jdk1.8.0_121, create a symbolic link as the current version: This guide assumes you're running as root.ĭownload XXX-XXX-linux-圆4.tar.gz from either the JRE or JDK section here: You may also want to install the JDK instead of the JRE depending on your needs. Using java requires having grsec play nice with the binaries. ![]()
0 Comments
Read More
Leave a Reply. |