Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

0
votes
1answer
26 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 ...
-1
votes
0answers
12 views

tools.jar loading issue

I'm trying to install OpenDistro for Elasticsearch into my Linux 16.04 LTS machine with java 8. After installation and service start time getting below error: [unknown] uncaught exception in thread [...
1
vote
0answers
275 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
0answers
21 views

cannot run a simple java class [migrated]

I created a simple java class: package com.name; public class Main { public static void main (String [] args) { System.out.println("I have made it"); } } and save it in Main.java ...
0
votes
3answers
28 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
29 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 ...
0
votes
1answer
36 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
43 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
13 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
14 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
30 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
49 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
87 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
1answer
99 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
130 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
33 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
52 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
22 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-...
1
vote
1answer
489 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
0answers
46 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
130 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
119 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 ...
1
vote
3answers
123 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 ...
2
votes
1answer
115 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
73 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
71 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
0answers
64 views

Sending mail does not work from my Centos 7 server

In my java application I have a module that allows to send mails application.yml: ... mail: host: smtp.gmail.com port: 587 username: xxxxxx@gmail.com #Replace this field ...
0
votes
0answers
59 views

Choose right Java on JNLP

I have a problem running JNLP files (mostly for server ILOM consoles). ILOM consoles are different and run on different java versions, so I want to choose which java to use each time. I have 3 Oracle ...
0
votes
1answer
205 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
435 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
315 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
54 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
148 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-...
1
vote
1answer
789 views

Start Jar in Linux “javafx/application/Application”

System Information is: sudo update-alternatives --config java Selection Path Priority Status ---------------------------------------------------------...
0
votes
1answer
311 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 ...
0
votes
0answers
15 views

use ag to search for wildcard-pattern and grep to only print unique findings acc to the pattern

ag --java -Ui "@*" does already include the findings like @Controller @PointCut @Entity but also a lot of content around the findings. I'm trying to filter out all annotations used in several java ...
2
votes
0answers
66 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
32 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
53 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
43 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
0answers
20 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
vote
1answer
50 views

My Java environment variables seem to be a complete mess how do I make a clean start without reinstalling?

I am trying to get Janusgraph working on OpenSuse Leap 42.3 but I'm running into a multitude of problems. My understanding is that JanusGraph invokes other Java dependencies, including gremlin & ...
0
votes
0answers
258 views

The JNLP application is not fully signed

I am trying to run a .jnlp file using javaws. It produces this error: Caused by: net.sourceforge.jnlp.LaunchException: Fatal: Application Error: The JNLP application is not fully signed by a single ...
0
votes
0answers
1k views

How to fix Picked up _JAVA_OPTIONS: no options listed on Linux?

This issues is on Manjaro Deepin 15.9 linux DE. When I run java -version in terminal it outputs this: Picked up _JAVA_OPTIONS: java version "11.0.2" 2019-01-15 LTS Java(TM) SE Runtime ...
1
vote
0answers
61 views

Bring Java process to the foreground by its PID [closed]

I am using Ubuntu 16, and I am trying to have multiple Java processes which I can track each process by its PID. They each have an X11 window. Is there any way to bring the Java task's window to the ...
0
votes
0answers
158 views

Oracle Java 8 installation Not Found (404) Error [duplicate]

I wanted to install oracle-java8-installer and after adding the repository, give the command sudo apt-get install oracle-java8-installer. First the screen appears that is about agreement, after ...
1
vote
1answer
93 views

Messed up environment variables in Centos 7

When I am running my maven build I am getting this error: Error: JAVA_HOME is not defined correctly. We cannot execute /usr/bin/bin/java I have edited .bashrc, .profile, /root/.profile and /root/....
2
votes
2answers
1k views

Error 404 on JDK Download Debian 8

I'm trying to dowload and install the JDK 8 on my debian with the following command: apt-get install oracle-java8-installer This is the log I get: [...] Do you want to continue? [Y/n] Y Setting up ...
-3
votes
1answer
40 views

Java – Finding minimum and maximum values in an array [closed]

I can't find my error here? import java.util.Scanner; class Code { public static void main (String[] args) { Scanner a = new Scanner (System.in); ...
3
votes
0answers
104 views

How to avoid mouse cursor jumping while using xinput Coordinate Transformation Matrix when application releases mouse

I've got some high sensitivity mice that I need to lower the sensitivity on. The general solution to this seems to be to set the Coordinate Transformation Matrix to something acceptable. So I use the ...