The Stack Overflow podcast is back! Listen to an interview with our new CEO.

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
0answers
190 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
61 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
25 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
614 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
94 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
397 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
272 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
583 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
176 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
84 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
115 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
152 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
129 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
437 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
1k 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
1k 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
211 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
459 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-...
2
votes
1answer
3k views

Start Jar in Linux “javafx/application/Application”

System Information is: sudo update-alternatives --config java Selection Path Priority Status ---------------------------------------------------------...
0
votes
1answer
857 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
25 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
79 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
34 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
83 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
148 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
51 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
121 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
496 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
2k 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 ...
0
votes
0answers
185 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
167 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
2k 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
64 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
159 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 ...
0
votes
1answer
512 views

Java KVM Console with an SSH Tunnel Through a Jumphost

I'm trying to use a KVM Console via an SSH tunnel and I'm getting a Connection Refused Java Error. Here is what I'm doing: On my Macbook I am establishing an SSH tunnel to my remote server via a ...
0
votes
0answers
51 views

Generate KeyStore and TrustStore for SSL 1.2

I need to understand the process to generate keystore and truststore to setup a webservice with mutual ssl authentication. I generated a key and CSR openssl genrsa –out mykey.key 2048 openssl req -...
0
votes
1answer
157 views

Pass array to Java from Shell Script

I have data as below which I want to pass directly to Java main method from shell script at once. 1 firstfile.txt Success 2 secondfile.txt Failed 3 thirdfile.txt Success I know I can call ...
1
vote
1answer
75 views

how to find the higher java version on linux machine with bash or shell script

we need to test and compare java versions any suggestion for tricky way how to verify if $version > $New_version ? [root@master tmp]# version=$(java -version 2>&1 | awk -F '"' '/version/ {...
0
votes
1answer
272 views

javavm initial and max heapsize set to the same huge value

I'd like to ask about your opinion about starting up java process with an equal -Xms and -Xmx which, as java's help says are: -Xms<size> set initial Java heap size -Xmx<size> ...
0
votes
2answers
158 views

java -version In Bash Script. Giving integer error

I am trying to make this if..fi case work for the Java Version from wrapper.conf configuration file./ and from the system, If the output from wrapper.conf is java I would have two options; 1. ...
2
votes
0answers
182 views

jvm option -Xloggc with %p in systemd.unit gives wrong log filename [closed]

I have a java process that I want to run with the option: -Xloggc:/var/log/mylog_%p.gc.log so that the name of the log file contains the PID. For example, if the process has PID 3498, the logfile ...
0
votes
1answer
827 views

How to schedule to run testng.xml file on terminal on linux environment?

I have scripted a Selenium automation testcase. I have generated the testng.xml file which should be executed on the linux terminal at a particular time of my need. Say I want to schdule to execute ...
1
vote
2answers
208 views

why /proc/net/udp is showing wrong rx_queue size in CentOS server?

I have a java server application. while(true) { serverSocket.receive(receivePacket); process(receivePacket); serverSocket.send(sendPacket); try { ...
1
vote
1answer
359 views

Upgrade from openjdk-7 to openjdk-8 on debian

I have the following Java-related packages installed on my Debian 8 machine # sudo dpkg -l | grep -i java ii ca-certificates-java 20140324 all Common CA ...
0
votes
1answer
103 views

Piping PID into jstack

I've written a command line that effectively extracts the highest CPU java PID thread process from top -H (example code): top -H -n 1 | grep "java" | head -n 1 | cut -d' ' -f1 I want to inspect the ...
0
votes
1answer
247 views

How to run Java application in confined SELinux domain?

I am working with a Java app that has been labeled with its own SELinux type. Java executes it as unconfined_t instead of the labeled type. Java is labeled as bin_t (ls -Z /usr/lib/jvm/java-1.8.0-...
0
votes
1answer
784 views

zscaler certificate issue

Do any one have idea what could be error reason and how it can be resolved? [root@Linux ~]$ wget https://www.google.com --2018-10-19 07:46:25-- https://www.google.com/ Resolving www.google.com... ...
0
votes
1answer
3k views

Keytool utility not available

I know that in order to use keytool, JDK must be installed -- which it is in my server -- but the keytool utility is not available. [root@Linux ~]$ java -version openjdk version "1.8.0_181" OpenJDK ...
1
vote
1answer
5k views

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

I am trying to download XDM(xtreme download manager) on Ubuntu which requires openjdk-6-jre and openjdk-7-jre. But I couldn't install it: sudo apt-get install openjdk-7-jre Reading package lists... ...
2
votes
0answers
348 views

jar executed in a service not logging [closed]

I've wrapped a jar in a init.d service following the guide here. created the service file under /etc/init.d/ give proper permissions test the stop and start: sudo service myservice start/stop/restart;...