31 votes

How to find path where jdk installed?

On RHEL7, you can use locate: locate openjdk or find: find / -iname "*openjdk-*" and it led me to the /usr/lib/jvm/ directory which contained the directories: java-1.8.0-openjdk-1.8.0.161-...
r17n's user avatar
  • 411
29 votes

Why is PDFTK saying it can't find files that are right there?

TL;DR Snaps access right management appears to be the source of the issue. To solve this, you can either: Do your work from your $HOME folder. Note that symlinks will not work. Install pdftk from ...
AxelVoitier's user avatar
21 votes
Accepted

Is there any way to tell if a shell script was killed with signal 9

The exit status of a killed command should be the signal number plus 128. So you can use the exit status to find out which signal killed you process. I tested it like this on Linux in the shell: ...
Lucas's user avatar
  • 2,845
20 votes

Running unsigned javaws code

Allow unsigned JARS TO: .java/deployment/deployment.properties ADD: deployment.security.level=ALLOW_UNSIGNED NOTE: .java/deployment is an alias to .config/icedtea-web Allow weakly ...
Paul-K's user avatar
  • 301
19 votes
Accepted

Adding a root certification authority to a java application

Simply copy your certificate files to this directory on CentOS 7.x: $ sudo cp <cert file> /etc/pki/ca-trust/source/anchors/ Once the certificate files put into this directory, run this command ...
slm's user avatar
  • 370k
18 votes

configure java daemon with systemd

Here's some minor modifications: Since it listens on a network socket, make it a dependency of network.target. nohup is not needed since systemd will daemonize the executable for you. I think a ...
Yun-Chih Chen's user avatar
15 votes
Accepted

Installed Oracle Java but when installing software I get `Your version of Java is not supported.`

The software you're installing is looking for Java 1.8, also known as Java 8. You need to pick choice 3 in the alternatives configuration.
Stephen Kitt's user avatar
14 votes

jetbrains-toolbox loads to a blank screen

Just launch with --disable-seccomp-filter-sandbox and it should work. I found it in https://bbs.archlinux.org/viewtopic.php?id=229859
Elkana Bardugo's user avatar
14 votes
Accepted

Why was Java 8 left out from Debian Buster?

Debian's general policy is to only have one version of a software package in a release. So, absent exceptional circumstances, there would only be one version of OpenJDK; buster has OpenJDK 11. ...
derobert's user avatar
  • 110k
12 votes

allowing user to run systemctl/systemd services without password

There are three ways to do it: Put appService.service in ~/.config/systemd/system/ and remove the User= line. Then you can control it with: systemctl --user start appService.service systemctl --...
Stewart's user avatar
  • 13.7k
10 votes
Accepted

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

I am using the distrubution offered by adoptium, called temurin-8-jdk mkdir -p /etc/apt/keyrings wget -O - https://packages.adoptium.net/artifactory/api/gpg/key/public | tee /etc/apt/keyrings/...
realtebo's user avatar
  • 917
9 votes

Use certain version of JRE / JDK for certain programs

ArchLinux keeps the different JDKs in the /usr/lib/jvm directory, changing the default JDK is a matter of modifying the symbolic links there: # ls -al /usr/lib/jvm lrwxrwxrwx 1 root root 14 ...
mwohlf's user avatar
  • 121
9 votes

openjdk-8-jre-headless : Depends: ca-certificates-java but it is not going to be installed

It is not working from Jessie backports. I tried stretch and it got installed. echo 'deb http://ftp.au.debian.org/debian/ stretch main contrib non-free' > /etc/apt/sources.list.d/stretch.list &...
Jay's user avatar
  • 191
9 votes

How to install Java 8 on Alpine Linux?

openjdk is in the community repo. It seems that you didn't enable community repo. Go ahead and first enable community repo by uncommenting the community repo in /etc/apk/repositories, then run apk ...
Surajit Karmakar's user avatar
8 votes
Accepted

Why do I see "Unable to locate tools.jar. Expected to find it in ...." when I run ant (on RHEL 6.6) even though the path is set

I later discovered that tools.jar wasn't in the jdk directory. I ran the command yum install java-1.8.0-openjdk-develand lib/tools.jarbecame available in the java folder. When I ran the ant command ...
a_sid's user avatar
  • 247
8 votes

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

Thorsten Glaser provides a repository which includes OpenJDK 8, built using the Debian OpenJDK 8 package (see also Debian bug #989736). To install it on Debian 12, download the appropriate repository ...
Stephen Kitt's user avatar
7 votes
Accepted

Arch: Java "ugly" font bug

Add _JAVA_OPTIONS='-Dawt.useSystemAAFontSettings=on' to your /etc/environment file. If you are running java applications from console, add export _JAVA_OPTIONS='-Dawt.useSystemAAFontSettings=on' to ...
minerals's user avatar
  • 280
7 votes
Accepted

How to install java in NixOS?

There are two Java compilers available via Nixpkgs: OpenJDK and OracleJDK, named openjdk and oraclejdk, respectively. Note that the OracleJDK doesn't seem to be available in the top-level expression,...
Emmanuel Rosa's user avatar
7 votes
Accepted

jstat not found even though we installed java JDK

You haven’t installed the JDK; to install the JDK, which includes jstat, you need to install java-1.8.0-openjdk-devel.
Stephen Kitt's user avatar
7 votes
Accepted

Arch linux - Error during update of packages: jdk-openjdk and jre-openjdk are in conflict

For this sort of thing, always check out Arch Linux News. In this case, we want Incoming changes in JDK / JRE 21 packages may require manual intervention: Incoming changes in JDK / JRE 21 packages ...
terdon's user avatar
  • 242k
6 votes
Accepted

Is the openjdk-r ppa trustworthy enough to install on server?

Installing openjdk-8 from this Launchpad PPA is safe. To install OpenJDK 8 execute the following commands : sudo add-apt-repository ppa:openjdk-r/ppa sudo apt update sudo apt install openjdk-8-jdk
cl-netbox's user avatar
  • 871
6 votes
Accepted

Can I indicate that a .deb package depends on Java, but not specify what implementation (e.g. OpenJDK, IcedTea, Oracle)?

The standard way of indicating that a .deb package requires a Java runtime environment (the JVM, not the JDK) is to specify a dependency on default-jre or default-jre-headless (the former for programs ...
Stephen Kitt's user avatar
6 votes
Accepted

Fedora24, trying to install java (JDK)

You will find javac in the java-1.8.0-openjdk-devel. Install using dnf install java-1.8.0-openjdk-devel Source information: koji: http://koji.fedoraproject.org/koji/rpminfo?rpmID=7988964
Jakuje's user avatar
  • 21.4k
6 votes
Accepted

Java 8 JDK install on OpenSUSE - Update Alternatives

The process of executing this install is easier than most think and surprisingly there is not much good or direct info out there on how to do this. The above answer is correct, but has some elements ...
Jason Wolf's user avatar
6 votes
Accepted

Install Java JDK and JRE on Debian 8

You’ll find OpenJDK 8 in Jessie backports (thanks to Willian Paixao for reminding me): echo deb http://http.debian.net/debian jessie-backports main > /etc/apt/sources.list.d/jessie-backports.list ...
Stephen Kitt's user avatar
6 votes

Set up for Android Studio gets stuck

I had the same problem, and after a few minutes it continued with other files, and doing the same repeating status with other files. I suspect because these are very large files that it's only (poorly)...
Mike's user avatar
  • 61
6 votes

How to get pid number and folder where it works

On Linux, you can find the working directory of a process in /proc/$pid/cwd. It's a magic symlink that points to the working directory. /proc/$pid/cmdline gives the command line of the process, but it'...
ilkkachu's user avatar
  • 139k
6 votes
Accepted

Package 'openjdk-7-jre' has no installation candidate

OpenJDK 6 and 7 were both removed from Ubuntu at the 16.04 development cycle. OpenJDK 6 was removed on March 29, 2016, because OpenJDK 7 and 8 had superseded it (this is referenced in Ubuntu Bug #...
Thomas Ward's user avatar
  • 2,718

Only top scored, non community-wiki answers of a minimum length are eligible