[JAVA] How to download Oracle JDK 8 rpm with curl

reference: ~~https://gist.github.com/P7h/9741922~~ https://gist.github.com/hgomez/4697585 https://gist.github.com/sdmcraft/2c5abbdeccf37e1642e5

JDK 8 commands

 curl -L -b "oraclelicense=a" http://download.oracle.com/otn-pub/java/jdk/8u131-b11/d54c1d3a095b4ff2b6607d096fa80163/jdk-8u131-linux-x64.rpm -O

Bonus: Preferences

sudo yum install jdk-8u131-linux-x64.rpm -y
echo "export JAVA_HOME=/usr/java/jdk1.8.0_131/" >> ~/.bash_profile
echo "export JRE_HOME=//usr/java/jdk1.8.0_131/jre" >> ~/.bash_profile
echo "export PATH=$PATH:/usr/java/jdk1.8.0_131/bin:/usr/java/jdk1.8.0_131/jre/bin" >> ~/.bash_profile

echo "export JAVA_HOME=/usr/jdk64/jdk1.8.0_112" >> ~/.bash_profile
echo "export JRE_HOME=/usr/jdk64/jdk1.8.0_112/jre" >> ~/.bash_profile
echo "export PATH=$PATH:/usr/jdk64/jdk1.8.0_112/bin:/usr/jdk64/jdk1.8.0_112/jre/bin" >> ~/.bash_profile

Recommended Posts

How to download Oracle JDK 8 rpm with curl
How to use Oracle JDK 9 EA with Travis CI
How to get jdk etc from oracle with cli
How to achieve file download with Feign
[Java] How to switch from open jdk to oracle jdk
How to Install Oracle JDK 1.8 in Ubuntu 18.04 LTS?
Organized how to interact with the JDK in stages
How to change from Oracle Java 8 to Adopt Open JDK 9
Install Oracle JDK 8 with Ansible
How to number (number) with html.erb
How to update with activerecord-import
Connect to oracle with eclipse!
How to install JDK8-10 (Mac)
How to scroll horizontally with ScrollView
How to get started with slim
How to enclose any character with "~"
How to use mssql-tools with alpine
How to get along with Rails
How to pass Oracle Java Silver
How to start Camunda with Docker
How to crop an image with libGDX
How to adjustTextPosition with iOS Keyboard Extension
How to share files with Docker Toolbox
How to compile Java with VsCode & Ant
[Java] How to compare with equals method
[Android] How to deal with dark themes
How to use BootStrap with Play Framework
[Rails] How to use rails console with docker
How to switch thumbnail images with JavaScript
[Note] How to get started with Rspec
[Talend] Switching from Oracle JDK to OpenJDK
How to do API-based control with cancancan
How to update related models with accepts_nested_attributes_for
How to set JAVA_HOME with Maven appassembler-maven-plugin
How to implement TextInputLayout with validation function
How to handle sign-in errors with devise
How to delete data with foreign key
How to test private scope with JUnit
How to monitor nginx with docker-compose with datadog
Download JDK with Gradle and make JRE
How to deal with Precompiling assets failed.
How to achieve file upload with Feign
How to run Blazor (C #) with Docker
How to build Rails 6 environment with Docker
[Java] How to test for null with JUnit
How to mock each case with Mockito 1x
How to mock each case with PowerMock + Mockito1x
How to use MyBatis2 (iBatis) with Spring Boot 1.4 (Spring 4)
How to save to multiple tables with one input
How to test interrupts during Thread.sleep with JUnit
How to use built-in h2db with spring boot
How to search multiple columns with gem ransack
How to use Java framework with AWS Lambda! ??
[Swift] How to link the app with Firebase
How to create multiple pull-down menus with ActiveHash
How to use Java API with lambda expression
How to get started with Eclipse Micro Profile
How to give your image to someone with docker
How to insert all at once with MyBatis
How to monitor SPA site transitions with WKWebView
How to write test code with Basic authentication