Questions tagged [java]

Java is a general-purpose programming language and a computing platform called the Java Virtual Machine (JVM). Use this tag when you are dealing with a java program, installing java, or configuring a java installation.

Filter by
Sorted by
Tagged with
0
votes
1answer
2k views

Cannot install default-jre - package 'default-jre' has no installation candidate

If I type java -version I get Command 'java' not found, but can be installed with: sudo apt install default-jre sudo apt install openjdk-11-jre-headless sudo apt install openjdk-8-jre-headless (...
1
vote
1answer
449 views

jstat not found even though we installed java JDK

We installed the following RPMs (part of the Java development kit), on Red Hat Enterprise Linux 7.5: $ rpm -qa | grep jdk java-1.8.0-openjdk-headless-1.8.0.171-8.b10.el7_5.x86_64 java-1.8.0-openjdk-1....
0
votes
0answers
16 views

(Can I/) How do I switch to a Java program started by another user on Ubuntu?

I am running a Minecraft server on an Ubuntu Server. To start the server I used ssh to login from Windows Subsystem for Linux. I then run the minecraft server using screen bash (script for starting ...
9
votes
2answers
2k views

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

I'm trying to compile a bunch of PDFs into a single document. ls shows the files are in the directory that I'm in and they're readable (-rw-r--r--). But when I try to run pdftk 2017.pdf cat output ...
1
vote
1answer
93 views

Why does my bash terminal startup run the same set of commands twice?

I'm on a Mac and whenever I start up my terminal app the initial startup prints the following: Picked up _JAVA_OPTIONS: -XX:MaxPermSize=4G -Xmx4G Java HotSpot(TM) 64-Bit Server VM warning: ignoring ...
1
vote
0answers
21 views

How to make redirect go to alternate web page if Shift key is being held?

I am trying to make a secret alternate redirect on a web page that redirects to an alternate page when holding down the key, otherwise it redirects to the regular redirect page. Example/Clarification:...
0
votes
2answers
277 views

Using FreeBSD Ports & Packages, Installing Tomcat on FreeBSD 12 installs Java 8 rather than my already-installed Java 12

On FreeBSD 12, I already installed Java 12 successfully using: sudo pkg install openjdk12 And I edited etc/fstab as directed by the text emitted by that installer. Then I set the PATH to include ...
1
vote
1answer
186 views

Installing Java on FreeBSD: `sudo pkg install openjdk11-11.0.4+11.1` fails to find package despite being listed in the “FreeBSD Ports Search” page

On the FreeBSD Ports Search page, I see results listing an item openjdk11-11.0.4+11.1. When I try to install that: $ sudo pkg install openjdk11-11.0.4+11.1 …I get error saying the package could ...
0
votes
0answers
145 views

Bringing a running java program back to foreground

I was experimenting with the java language and accidentally got a running java program that has a foreground GUI to become a background process. I ran this command to locate the PID of the process ...
0
votes
1answer
58 views

I can check output of a command in shell script but I cannot do the same in crontab

I can run my script as .sh file in ubuntu shell but it does not work when it is called from cron job.I run my script into an ubuntu container (using docker) as if [ `java -jar /path/to/my.jar |grep -...
0
votes
1answer
42 views

Getting trouble installing HPjmeter

I'm trying to install HPjmeter console on centos 7 desktop in order to monitor my web app GC status . I've follwed all the steps mentioned on the official user guide but when executing this command ...
1
vote
0answers
35 views

weblogic cluster between two different server

I have two server (for example 1.1.1.1 , 1.1.1.2). I want to have one administrator tools and two managed servers (one on 1.1.1.1 and another on 1.1.1.2) and cluster these two nodes. Is the base of ...
0
votes
0answers
15 views

Javapackager for Java 8 arm32 doesn't exist?

I can't find javapackager in Java 8 JDK for arm32 jdk-8u211-linux-arm32-vfp-hflt. It doesn't exists?
0
votes
2answers
54 views

Is it possible to list everything a specific process is trying to do? [duplicate]

I have a web app in a jboss application server that gives a not understandable error. I’m 100% sure it is because it is trying to access a forbidden file system location. Is it possible to profile ...
0
votes
1answer
149 views

Linux start screen and run a java program and detach it?

I have the following script that should do the following: Stop screen "server" if exists Start screen "server" Run a java program and detach screen. However, when I firstly run the script, the ...
2
votes
0answers
4k views

E: Unable to locate package oracle-java8-installer

I've been using the below Dockerfile to install java8. However, all of a sudden while creating the docker image it breaks with error E: Unable to locate package oracle-java8-installer E: Unable to ...
0
votes
3answers
145 views

How to completely uninstall java from RHEL?

When I do which java I get the following output: which java /dir/java/bin/java I have already uninstalled java rpm using the following `rpm -qa | grep -i java` rpm -e rpm-name Still java is not ...
0
votes
1answer
200 views

Elasticsearch fails to start with 'permissions read' error even though read permissions exist

I have a symlink at /etc/elasticsearch/analysis that points to a mounted drive at /elasticdata/fileshare/analysis on Ubuntu 16.04 LTS Azure VM. When I try and start elasticsearch I am getting the ...
1
vote
1answer
472 views

How to check java version on multiple servers? [duplicate]

I have 100 servers and i need to login to them with ssh from central server using script: i tried below with this i should get the version redirected to the file which will be stored at central server....
0
votes
0answers
594 views

Fedora 29 with KDE - Xorg / QT - QXcbConnection: XCB error: 3 (BadWindow)

When running Katalon Studio or other Java apps with UI and i select an object of type combobox or list, an interface turns black and the application freezes and crash mai 26 16:21:04 tuxzao kwin_x11[...
0
votes
0answers
93 views

Where can I find the Application-Library-Allowable-Codebase Attribute for Java?

I am using Ubuntu to run an amazon webpage, the page is trying to load a java program and it fails when it tries to open. This opens perfectly in Chrome on Windows but we are looking to go Linux. the ...
0
votes
0answers
35 views

Automatically java run if it stopped [duplicate]

Can i check java process using crontab (or other way) and if java process does not exist automatically perfom command: nohup java -jar /home/ec2-user/sringTestBoot-1.0-SNAPSHOT.jar
0
votes
1answer
72 views

Different behavior between running command with sudo or directly as superuser - PATH is same

I'm trying to install eclipse on xubuntu, I installed java with sudo gdebi <java-package>.deb, I added it to the /etc/environment to both PATH and "JAVA_HOME" then reloaded the environment and ...
0
votes
1answer
314 views

My Atom says: “bash: javac: command not found”

Atom not finding JAVAC command. Current Java version openjdk version "11.0.3" 2019-04-16 OpenJDK Runtime Environment (build 11.0.3+7-Ubuntu-1ubuntu218.04.1) OpenJDK 64-Bit Server VM (build 11.0....
0
votes
3answers
112 views

Invisible mouse pointer in Java application window

I have played a Java-based game (salem the game) on Windows 7 with the Java 8 Runtime Environment, and it works properly. However, on Debian Linux, I can launch the game, but the mouse pointer is ...
0
votes
2answers
3k views

Debian 8 -bash: /usr/bin/java: No such file or directory

On a new Debian system I installed JRE using sudo apt-get install default-jre Then I downloaded a jar-file and tried running it: java -jar server.jar The file threw an exception: java.lang....
0
votes
2answers
1k views

Can't open .jar file from ubuntu

I have the Jodin3 jar file installed: JOdin3CASUAL-r1035-dist.jar. Can't open it. java -jar JOdin3CASUAL-r1035-dist.jar does not work: Error: JavaFX runtime components are missing, and are required ...
0
votes
0answers
396 views

JAVA_HOME environment variable in arch Linux

Since arch have this native script archlinux-java which manages multiple java environments on the same system, do we still need to update the JAVA_HOME environment variable ? like JAVA_HOME=/use/...
0
votes
2answers
72 views

Installing older Java app on Linux

I was wondering how to install an older Java application: http://al.chemy.org/ I downloaded the package for Linux, unzipped and launched alchemy.jar inside the package. The original installation ...
0
votes
1answer
31 views

Is it possible to configure a .deb package, so it only installs on 32-bit operating systems, and not on 64-bit operating systems?

I have developed a Java 8 application. I have packaged it for Linux systems, self-containing the Java runtime, so users don't have to deal with Java installation. I have made a package with the 32-...
2
votes
1answer
665 views

Install Java command line - webupd8team PPA DISCONTINUED

Java can't be installed from webupd8team PPA since the Oracle JDK License has changed for releases starting April 16, 2019: https://launchpad.net/~webupd8team/+archive/ubuntu/java Oracle Java ...
0
votes
1answer
195 views

JavaFX on a 4k screen

I am using Ubuntu 18.10 and I am creating a javaFX application. I have used a lot of time to research google and found no way at all to make my program scale on linux. Here is how it looks like: I ...
-5
votes
2answers
743 views

Is a jps process a JVM process?

On Ubuntu, man jps says jps - Lists the instrumented Java Virtual Machines (JVMs) on the target system. What does a "instrumented Java Virtual Machine" mean? $ jps -v 29584 Jps -Dapplication.home=...
0
votes
0answers
388 views

OpenJFX not getting installed correctly

I have installed Java from this command: sudo apt-get install icedtea-8-plugin sudo apt install openjdk-8-jdk sudo apt-get install openjfx So I installed IcedTea, openJDK 8 and openJFX. For some ...
2
votes
3answers
2k views

Can tar extract jar files

From https://dzone.com/articles/java-8-how-to-create-executable-fatjar-without-ide tar xf ExecutableOne.jar but why do I get $ tar xf ExecutableOne.jar tar: This does not look like a tar archive ...
3
votes
1answer
266 views

How to depend on java 11 so it can be satisfied by openjdk or by Oracle java 11 packages?

I'm trying to create an rpm package with a dependency on java 11; however, it seems like the openjdk and Oracle java 11 packages don't provide any overlapping java virtual packages. OpenJDK Java 11 ...
3
votes
1answer
99 views

Time zone: Host. What does that mean?

I know that there is several ways to setup system timezone on CentOS host. What I would like to know is the meaning of this Host timezone which seems to be set by default and is reported by ...
1
vote
1answer
204 views

MySQL Java connector still using old java version?

Installing mysql-connector-java-8.0.15-1.el6.noarch.rpm (available here ) shows libgcj package as a dependency. Installing libgcj creates below file: /usr/bin/gij $/usr/bin/gij -version java version ...
0
votes
1answer
879 views

How to add and configure JDK 11 on Linux mint 19

I'm having trouble to configure oracle JDK 11 to the system. I have extracted the JDK and ran the following in the terminal ~$ export JAVA_HOME=/opt/jdk-11.0.2 ~$ export PATH=$PATH:$JAVA_HOME/bin ...
2
votes
1answer
2k views

Can't install openjdk8-jre in Docker Alpine Linux image

Alpine 3.7 and 3.9. apk add htop works fine. apk add openjdk8-jre hangs forever. Problem step: (25/36) Installing openjdk8-jre-lib (8.201.08-r0) usr/ (dir) usr/lib/ (dir) usr/lib/jvm/ (dir) usr/lib/...
2
votes
2answers
2k views

java JAR file works in Windows but not Linux (centos-7.6)

I have a STIGViewer-2.8.jar file. This works fine in Microsoft Windows 7 or 10, but does not work in Centos-7.6 linux. In linux when doing java STIGViewer-2.8.jar I get Error. Could not find or ...
1
vote
2answers
388 views

How do I run Jenkins with a specific working directory and a specific user account?

I am executing below jenkins.war with below command jenkins -jar jenkins.war But I want to specify to use below path while executing the war `/data/jenkins` and it should run as jenkins user . ...
1
vote
0answers
842 views

Add openjfx class path in debian for Java11

Distribution is Kali Linux Java11 is installed: java -version openjdk version "11.0.2" 2019-01-15 OpenJDK Runtime Environment (build 11.0.2+9-Debian-3) OpenJDK 64-Bit Server VM (build 11.0.2+9-Debian-...
3
votes
2answers
5k views

Start Jar in Linux “javafx/application/Application”

System Information is: sudo update-alternatives --config java Selection Path Priority Status ---------------------------------------------------------...
0
votes
1answer
2k views

How do I set a RPM package to require Java 8 or higher, whose dependencies can be satisfied by Java 11

I'm trying to package an RPM that requires any Java version above Java 8. The RPM works fine if there's no Java installed, or if JRE/JDK for 8 is installed. HOWEVER if I install OpenJDK 11, when I ...
2
votes
0answers
106 views

AIX : NOFOLLOW_LINKS is not supported on this platform

I have an AIX 7.2 machine. I am trying to run a Java program on it. It gives me this error: NOFOLLOW_LINKS is not supported on this platform. It is because I am using this call in the program: Files....
0
votes
1answer
36 views

linux + compare between two folders

under /usr/lib/ambari-metrics-get folder and /usr/lib/ambari-metrics-put we have jar files /usr/lib/ambari-metrics-get/stax-api-1.0.1.jar /usr/lib/ambari-metrics-get/stringtemplate-3.2.1.jar /usr/...
0
votes
1answer
168 views

SSL Cert in Keystore and Browser cert are different

Bitbucket and Jenkins, in-order to talk to each other we have installed SSL certs in Bitbucket server. Issue started when Jenkins team used to mess up with their configuration and end up changing ...
1
vote
1answer
484 views

How can I reload java module

We are building a java source. When we build it with the official repo of Ubuntu it actually installs 10.0.2. see -------- which javac --------------- /usr/lib/jvm/java-11-openjdk-amd64/bin/javac ---...
0
votes
1answer
113 views

How can I set the Java heap size for elasticsearch on Nixos?

It seems these should go in the ${configDir}/jvm.options"} (/var/lib/elasticsearch/config/jvm.options ?) looking at the package at https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/services/...

1
2
3 4 5
15