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

.jar-file fails to start on fedora

form terminal, when I try to run a .jar-file I receive: $ java -jar ./RemoteDroidServer/RemoteDroidServer.jar Exception in thread "main" java.awt.HeadlessException at java.awt....
0
votes
1answer
17 views

how to get error from running shell script in java?

i'am using java to run shell script it works great . now i want to get errors from this script for example i have a script and there is an error i want to get the line and a message of that error ...
0
votes
1answer
23 views

Executing A .jar File In Deepin

I recently received a Minecraft 1.5.2.jar file and downloaded it as seen in the picture below. I used the command java -jar minecraft.jar but it returns the error Can anyone help me out with ...
0
votes
0answers
36 views

Unable to import a certificate into java keystore

I am trying to import a certificate into java keystore. This is what I have done. Created the keystore: # keytool -keystore keystore.jks -storepass password -alias tomcat -genkeypair -validity 730 -...
0
votes
0answers
11 views

Is this output from dpkg-query -L openjfx what is should be?

I am struggling to run openjfx and getting desperate. I thought I was ok troubleshooting in linux and java, but I've never been stuck for such a long time. As usual with linux, there is lots of ...
1
vote
0answers
49 views

Java Compiling on Linux

I am trying to compile a basic java file but I receive this message when I try Command 'javac' not found, but can be installed with: sudo apt install default-jdk (You will have to enable ...
2
votes
1answer
23 views

When does Fedora provide extended support releases for Java?

I'm trying to run a jar file which checks the installed version of Java explicitly: *** The version you have requested to build requires Java versions between [Java 8, Java 12], but you are using ...
-1
votes
1answer
37 views

Can't reach Tomcat default page in localhost:8080 for Ubuntu 16.04 Docker container

I'm trying to run a simple Tomcat server. But I can't see the Tomcat default page. 1) I ran this command to run the container docker run -it --entrypoint bash e36658dffbd8 2) I opened up localhost:...
0
votes
1answer
38 views

Which of these Java install locations do I use to set the Java_Home path?

I am following this tutorial to install Android Studio on my Linux Mint. I have reached the stage where I have to set the JAVA_HOME environment variable to the location of my JDK installation. I was ...
0
votes
1answer
30 views

JVM memory + dose heap size Xmx values have impact on consuming memory

we have linux redhat machines with service ( service is based on java ) for now service consume 1.5G memory , and the heap size set to Xmx2G let say we increase the heap size to Xmx10G dose this ...
0
votes
0answers
28 views

lsusb listing the device but not accessible on serial port

I connected a device using USB port. The device drivers are installed. I would like to access it from serial port. Using lsusb it lists the device as: Bus 001 Device 002: ID 106f:0003 ...
1
vote
1answer
38 views

Switch Java version when starting program

I have a CentOs machine where Java 8 and Java 11 is installed. Some (command line) programs need Java 8 because they did not moved to Java 11 yet, others need Java 11. Is there a way to switch Java ...
0
votes
0answers
601 views

How to install Java 8 on Alpine Linux?

When I look at package lists they suggest that all sorts of Java 8 packages exist for Alpine, but when I try to install them I always get: apk add openjdk8 ERROR: unsatisfiable constraints: ...
0
votes
0answers
53 views

Ran Java program via bash script on CLI / How do I interact with it?

I am trying to set up a Minecraft server on a CentOS distro, and got everything working. I made a script to execute my Java instance to get the heap right, but after initiating the script, I can no ...
0
votes
0answers
20 views

Install Compendium Challenge

Looking for powerfull method to adress wicked problems, I recently discovered "Compendium". This software looks very powerful (have a look here to have an idea of how necessary this soft is) but it ...
0
votes
1answer
57 views

Redeploying a Spring Boot app init.d service

I followed this guide to setup my Spring Boot app as an init.d service. https://docs.spring.io/spring-boot/docs/current/reference/html/deployment.html#deployment-initd-service My website is working ...
1
vote
0answers
72 views

Installing Java 6 on Alpine

I need to install Java 6 (preferably OpenJDK vs Oracle) in Alpine docker (latest) and I can't find an Alpine repository containing it. Any ideas?
0
votes
0answers
16 views

Is it possible for “service status” to be wrong?

We're running centos 6.7, it doesn't have systemctl. We are using Wowza streaming engine which runs on Java, I'm reporting this issue to wowza as well, maybe it's a bug from their end. Sometimes when ...
1
vote
0answers
27 views

Under Fedora 31 All Java apps barely responsive until I open a dialog

I use a fair number of swing applications under fedora 31 (and 30 before it). Since fedora 30, I often find swing UIs, like in Intellij products, or DbVisualizer to be very, very unresponsive; almost ...
2
votes
0answers
65 views

A process is being stopped by SIGTTIN. Is there a good way of tracing what process (or kernel) sent this and why?

One of my Java processes is being stopped because it receives a SIGTTIN when processing a request. I can reproduce this issue. But I am unable to figure out why this is happening. I tried running ...
1
vote
1answer
31 views

Set minimal JRE version to deb package dependency

I want to bundle Java application into a .deb package. Inside it is a jar launched with a java -jar $path/app.jar script. I need to specify in the package dependencies that it will require JRE >= 11. ...
0
votes
1answer
15 views

Red dirs alert in bin folder, jvm dirs

I was just hanging around in my dirs and I found some dirs that are displaying a red alert, all of them are related with jvm. I supposed that it could be a problem with jdk or some wrong installation ...
0
votes
0answers
182 views

Installing java.xml.bind and Contiki-ng

I'm trying to install a program called Contiki-NG onto a Ubuntu build sitting in VMware on a Windows 10 station. In the process, I need to build an app called Cooja. I'm getting the following results: ...
0
votes
1answer
122 views

Can't install Oracle JDK in Linux Mint 19.2

I have downloaded Oracle JDK 11 and I'm trying to install it on my Linux Mint (x64). After downloading the tarball, I extracted it to my /usr/lib/jvm and exported it to PATH: export PATH=$PATH:/usr/...
0
votes
1answer
28 views

Are there downsides to setting path locations to symlinks?

I'm setting JAVA_HOME and using the alternatives location of /usr/lib/jvm/jre Which is a simlink to the absolute path of the current active installation. Are there downsides to using this symlinked ...
1
vote
1answer
56 views

When would [[ ]] test fail and [ ] succeeds for the same test?

I came across a script that has the line: java_version=$($JAVA_HOME/bin/java -version 2>&1 | awk -F '"' '/version/ {print $2}' | cut -d '_' -f 1,3) followed by the test: if [[ -n "$...
0
votes
1answer
383 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
421 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
55 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
1answer
40 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 ...
12
votes
1answer
590 views

Why was Java 8 left out from Debian Buster?

Double checked: you can simply install the java8 from the Stretch repo. It works pretty fine in productive settings months ago. There is no reason to delay the upgrade for that. (@peterh) Recent ...
0
votes
0answers
60 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
175 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
303 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
108 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
25 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
15 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
120 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
68 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
35 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
123 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
28 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
37 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
97 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
43 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
92 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
73 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
22 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
290 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
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
2 3 4 5
15