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
50 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 ...
-1
votes
0answers
33 views

Script that checks a process's running status

I need to make a script that checks if a java jar is running on a particular port or not.If the jar is not running then the script should run it automatically. let's say I want to check if my jar xyz....
0
votes
0answers
23 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 ...
-4
votes
2answers
80 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
23 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
2answers
54 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 ...
-1
votes
0answers
10 views

Launch JAR on Startup without being logged in

I programmed a JavaFX application which acts as a survey form. Users are able to enter their data with a mouse and keyboard. The OS is Ubuntu. The app itself always maxes out the screen and also ...
2
votes
0answers
63 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 ...
0
votes
0answers
12 views

Tomcat application stops intermittently due to virtual memory issue [closed]

We have Tomcat application hosted in three servers in which Tomcat applications stops intermittently only in one server with error could not reserve enough memory to initialise virtual memory heap. We ...
1
vote
0answers
40 views

Java code OK in AIX 3.5, fails in RHEL 7.5: It makes corrupt DOC, DOCX, XLS, XLSX files but good HTML files [migrated]

We have a Java process (see below) to generate DOC, DOCX, XLS, XLSX, and HTML and save it to our Linux PCs. It ran well in our old AIX 3.5 machine; but in our new RHEL 7.5 machine, Microsoft ...
-2
votes
1answer
32 views

Searching for a directory containing only .class files in Unix [closed]

How to write the following commands in Unix: looking for a directory which contains only files with extension: .class looking for a directory which contains only files with extension: .class under ...
0
votes
0answers
9 views

How do I find the SDK in MX Linux [closed]

I need to find the SDK In MX linux. I installed java and my java version is javac 11.0.2. I expect my sdk to be in /usr but it is not. I did a lot of googling and the only conclusion I can come up ...
0
votes
0answers
14 views

Eclipse: The SWT browser widget could not be created [migrated]

I have installed eclipse (4.10) on my Linux Machine (KDE Neon 5.15) and everything works quite well except for the JavaDoc. Whenever I view the JavaDoc-hover, I get a plain text representation and at ...
3
votes
1answer
70 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
49 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
21 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
18 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
92 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
158 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
97 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
35 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 . ...
0
votes
0answers
38 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-...
0
votes
1answer
123 views

Start Jar in Linux “javafx/application/Application”

System Information is: sudo update-alternatives --config java Selection Path Priority Status ---------------------------------------------------------...
0
votes
1answer
127 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
9 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
47 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
31 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
48 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
31 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
16 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
39 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
131 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
523 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
51 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
115 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
43 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
990 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
32 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
61 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
217 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
32 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
41 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
44 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
66 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
127 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
84 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
252 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
119 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
186 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
52 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 ...