Questions tagged [jdk]

67 questions
15
votes
4 answers

Uninstall JDK rpm to reinstall

Where do I find the JDK install to uninstall? @terdon had explained using an rpm type download so it would be easier to uninstall, but I cannot find it.
cea
  • 1,523
  • 8
  • 30
  • 45
13
votes
1 answer

what's the difference between "java" located inside jdk/bin/ and jdk/jre/bin

After downloading the Oracle JDK and unzipping it, I can see that there exists two "java" executables in two different directories. Which one should be used as primary basis. Or, both are the same in two different locations?
TheManish
  • 163
  • 2
  • 9
11
votes
3 answers

How to set JAVA_HOME correctly on CentOS?

I am trying to set JAVA_HOME so that I can install Apache Solr with the help of this tutorial. I am connected to my server using ssh with root user To allow the running sh script to install Apache Solr: mount | grep noexec Re-mounting file system…
Waqleh
  • 269
  • 1
  • 2
  • 10
9
votes
2 answers

use different java version to run two programs

I installed two JAVA JREs on my new CentOS since Cassandra needs java7u25 or later while iReport needs to work with 1.6. Now how do I launch each program from command line telling each program which version to use? Do I have to change the…
Irene
  • 193
  • 1
  • 1
  • 5
8
votes
2 answers

Java JDK missing libjli.so path in dependency list, Debian

I am scripting the creation of chroot jails and part of that automation includes copying various executables and their dependencies into the jail. I am using the following bash line to parse the file paths out of a list of dependencies (for java,…
Rip Leeb
  • 347
  • 2
  • 4
  • 9
6
votes
2 answers

How can I install Java 8 on Debian 12 (bookworm)?

Under Debian 11, we typically use OpenJDK from adoptopenjdk.net. This organization will no longer provide new releases: https://adoptopenjdk.jfrog.io/ui/native/deb/dists/ Is there a way to install Java 8 JDK (not the runtime) on a Debian 12?
realtebo
  • 799
  • 9
  • 23
6
votes
2 answers

How can I install Sun JDK on a Debian based system?

I can't find any .deb packages for Sun's Java Development Kit. How can I install it on my Debian machine without causing conflicts with the already installed openjdk packages?
terdon
  • 234,489
  • 66
  • 447
  • 667
5
votes
3 answers

Install Java JDK and JRE on Debian 8

I installed Debian 8, I would like to install Java JRE and JDK. I use this method and it works. But, I am afraid because it's a script hosted in a repository. I would like to understand why it doesn't work when I put the extract of this JRE in…
user220063
5
votes
1 answer

What is the difference between these three java installations?

yum install -y java-1.7.0 yum install -y java-1.7.0-openjdk.x86_64 yum install -y java-1.7.0-openjdk-devel I have referred few more and this Link. There is a comment openjdk.x86_64 installs only jre. I don't find the exact differences of…
Gibbs
  • 395
  • 2
  • 5
  • 12
5
votes
1 answer

How to find out which JRE being used?

I have a Java .jar running in my system. How can I know which JRE is being used by that .jar? I have multiple JRE's in multiple location. The which java command produces /usr/bin/java $JAVA_HOME is set to /usr/java/jdk-1.6.0 ps -ef produces \xyzusr…
Vishwanath gowda k
  • 594
  • 1
  • 5
  • 11
4
votes
1 answer

How do I install jdk on SUSE Linux with ansible?

I need to install java on one of my VMs running SUSE Linux using ansible. Below is the playbook code I am using: - name: Download Java become_user: "{{user}}" command: "wget -q -O {{java_archive}} --no-check-certificate --no-cookies --header…
4
votes
2 answers

Java 8 JDK install on OpenSUSE - Update Alternatives

I have searched many OpenSUSE forums for an answer to this, but so far I have not found one. Long story short, when installing the RPM for the JDK from Oracle, I receive the following: > sudo zypper install jdk-8u111-linux-x64.rpm [sudo] password…
mrUlrik
  • 45
  • 1
  • 1
  • 7
4
votes
1 answer

Fedora24, trying to install java (JDK)

I've installed openjdk Installed Packages java-1.8.0-openjdk.x86_64 1:1.8.0.101-1.b14.fc24 @updates java-1.8.0-openjdk-headless.x86_64 1:1.8.0.101-1.b14.fc24 @updates javapackages-tools.noarch 4.6.0-14.fc24 …
razor
  • 143
  • 4
4
votes
2 answers

How to verify if Java is installed on rhel

I stood up rhel VM. I was curious if JDK is installed or not so that I ran a command from a shell (bash). whereis java It returned: java: /usr/bin/java So I navigated to the path in order to verify Java program. ls -l java Which…
DaeYoung
  • 865
  • 4
  • 10
  • 15
3
votes
1 answer

jdk install on centos

On Ubuntu I can do: sudo apt-get install default-jdk What is the equivalent of that on CentOS? If I do yum install default-jdk tt says No package default-jdk available. Error: Nothing to do
user3079275
  • 131
  • 1
1
2 3 4 5