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
34 views

download java-1.8.0-openjdk-devel from epel repo

we have redhat machine - version 7.2 we installed the epel repo as the following rpm -ivh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm yum install epel-release yum ...
0
votes
1answer
47 views

Error running .jar on Ubuntu: Could not find ot load main class

I'm creanting an script to run an .jar on Ubuntu 18. The project was develop on Windows with Intellij IDEA. In windows the .jar runs correctly. But in Linux is show the error: Could not find or ...
1
vote
1answer
28 views

install java 10 using oracle jdk

I have updated my system, then add A Third Party PPA to Ubuntu, with the following commands sudo add-apt-repository ppa:linuxuprising/java but this is what I got can you guys help me to solve ...
2
votes
0answers
22 views

Opening .jar files with `pkexec` and using Desktop Entries to run commands

I am writing a bash script that automates installation of TLauncher (Minecraft launcher) and basic dependency management on USBs running Lubuntu 18.04. Part of the bash script creates a desktop ...
8
votes
1answer
339 views

Why was Java 8 left out from Debian Buster?

Recent stable version of Debian, Debian Buster, does not have Java 8 any more. However, Java 8 is still widely used in productive settings, and doing this is a huge fallback before any upgrade. ...
0
votes
0answers
49 views

systemctl stop not stopping all process in redhat

I am starting a service using systemctl ,but I am facing issue to stop the service in redhat system. the service file I am creating : [Unit] Description=/home/agenttest After=syslog.target [Service]...
0
votes
1answer
20 views

Having problems installing icedtea on CentOS 7

I'm changing over from Oracle Java to OpenJDK. I ripped out all traces of Java from the system regardless of vendor and started from scratch. I downloaded the latest OpenJDK tarball and put it in /opt/...
0
votes
0answers
35 views

Wildfly 17.0.1 not starting on Ubuntu 18.04.3 LTS

When I'm starting the service it executes without any error. But on checking of status of service I got the following things wildfly.service - The WildFly Application Server Loaded: loaded (/etc/...
1
vote
1answer
42 views

sed command not working on Centos in java code

I am running a java code which runs an sed command on a .txt file to remove BOM on Centos. I get the following Error: sed: -e expression #1, char 1: unknown command: `'' Java Code: String[]...
0
votes
0answers
22 views

Newly created partition number

I'm writing a program (in java) that slices a clean device onto a set of partitions, using parted mkpart to create the partitions. In order to create a next partition, I want to know a partition ...
0
votes
0answers
11 views

Installed Weblogic 10.3.6 in Vagrant box, not able to browse the console page in chrome

Could you please help me for the below issue, I have installed Weblogic 10.3.6 in Vagrant box "rhel7" after starting the application I'm unable to browse the url page in Chrome. config.vm.network "...
0
votes
1answer
49 views

ubuntu 18.04 java installation problem

Everytime I try to install java on Ubuntu 18.04 (on a VirtualBox VM) with the following command (I've tried several other commands/methods from other topics/forums): sudo apt install default-jdk No ...
0
votes
0answers
28 views

java.net.SocketException: Network is unreachable on my Red hat 7 linux Server

So I have a java app on a linux red hat server that is accessing login.microsoftonline.com and graph.microsoftonline.com. I can curl those domains and they respond. I have imported the certs for ...
0
votes
1answer
33 views

Script Integer getting prefixed with "

I am running a jar file using a very basic shell script (I literally just need this to run on startup of a NAS). However, I am getting some rather unexpected behavior: Script looks like this: java -...
0
votes
1answer
40 views

bash file contain executable/binary code

I found this tool and when I downloaded it is a bash executable that contains binary code. First of all I didn't know this is possible. Does anyone know who this can be done? Also I am not sure how ...
1
vote
0answers
22 views

Set path for non shell user

I have installed Adopt OpenJDK version of Java. I set it up so all users will have JAVA_HOME set and that the bin folder for Java is in the PATH. However the software I installed afterwards that ...
0
votes
1answer
15 views

puppet module not doing anything

I successfully installed the puppetlabs java module using command puppet module install puppetlabs-java. I created a puppet module using command puppet module generate ... I have two manifest files ...
1
vote
0answers
48 views

sudo root cannot find executable on path

I am on CentOS 7.5 and installing OpenJDK 11 from Adopt OpenJDK. It doesn't have an installer package so I am manually putting it in /usr/share. I then create the file /etc/profile.d/java.sh to set up ...
0
votes
1answer
25 views

What is the difference between java-openjdk and java-latest-openjdk?

I was looking at the packages available for Java on Fedora and saw this: java-openjdk is version 12.0.0.33-4 java-latest-openjdk is version 12.0.2.9-1 It's obvious that "latest" is the most recent ...
0
votes
0answers
25 views

How to display text file in zenity with formation?

Using RHEL 5.1,zenity 2.16.0, I have output of text file like below,I am using command zenity --text-info --title="File View" --filename=/root/Desktop/question --width=1400 --height=700 ...
0
votes
1answer
41 views

OpenJDK 8 support period in Debian Stretch 9

According to the Debian releases page Stretch 9 has support until ~2022. What does this mean for the OpenJDK 8 package? How long will security updates be available for OpenJDK 8?
1
vote
0answers
13 views

I am trying to setup Grails 4 in IntelliJ Ultimate in Ubuntu 19.04, but I don't know how. These are things I have completed/tried:

I use SDK manager to install Grails using this command: sdk install grails And I launched IntelliJ, selected Grails for the new project. Selected Java version 11.0.4 as Project SDK Selected /home/...
-1
votes
1answer
56 views

yum + dependencies not logical when installing openjdk

we are tryng to install the java-1.8.0-openjdk-devel-1.8.0.161-2.b14.el7.x86_64.rpm yum localinstall java-1.8.0-openjdk-devel-1.8.0.161-2.b14.el7.x86_64.rpm Loaded plugins: langpacks, product-id, ...
0
votes
1answer
245 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 (...
0
votes
1answer
83 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
14 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 ...
1
vote
0answers
205 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
60 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
20 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
103 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
72 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
58 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
36 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
0answers
24 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
28 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
12 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
50 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
50 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
3k 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
44 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
97 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
187 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
289 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
44 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
21 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
34 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
133 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
96 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
771 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
761 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 ...