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
8
votes
4answers
49k views

How to set JAVA_HOME correctly on CentOS?

I am trying to set JAVA_HOME so that I can install Apache Solr with the help of this tutorial. I am connected to my server using ssh with root user To allow the running sh script to install Apache ...
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
48 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
1k views

Font bug in Java apps on Arch Linux

What happens with fonts in my JAVA apps? SOAP UI screen as example (see toolbox)... I have no idea where is the problem. SYS: up-to-date ARCH LINUX. $ archlinux-java status Available Java ...
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/...
2
votes
1answer
1k views

Java upgrade problem on CentOS 6.5

I want to upgrade my jdk on a CentOS server, after some simple searches I found some solutions. From this link, you can see that the instructions are simple. install your chosen jdk from rpm package ...
1
vote
1answer
31 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 ...
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]...
8
votes
1answer
344 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
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
43 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 "...
2
votes
1answer
3k views

Setting classpath for Java

I was trying to use a tool a tool written in java called "fastqc" (for people who are interested in what is fastqc. when I tried typing the command :" fastqc" I got the error: Exception in thread "...
0
votes
1answer
50 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
29 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 ...
2
votes
3answers
4k views

org.eclipse.swt.SWTError: No more handles [gtk_init_check() failed] while running spoon.sh in ubuntu

When I am running spoon.sh file in Ubuntu I am getting the following error: [santosh@sbx data-integration]$ ./spoon.sh /home/decathlon/Pentaho-5.0.1/data-integration org.eclipse.swt.SWTError: No more ...
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
2answers
2k views

Running JAVA in Cygwin through bash script

I've been encountering a problem with cygwin where I cannot run a jar file with an error that the file cannot be found. If it were easier i would "translate" the java source in bash, but ...
0
votes
1answer
26 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
1answer
984 views

screen command cannot find java executable

I'm trying to execute java from screen: screen -S my-java-app -d -m 'java -jar -Xms512m -Xmx2048m my-java-app.jar' but seems that screen does not know the java command. Running java without screen ...
0
votes
0answers
26 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 ...
2
votes
1answer
4k views

Minimal installation of Oracle Java 8 on Debian - headless, with no GUI

In another question here (Minimal Java installation for Linux with no GUI) I found some information about headless installation of OpenJDK, but I would need this with Oracle Java 8. I need Oracle ...
0
votes
3answers
2k views

Do I have duplicate packages?

I get the following error after running sudo apt-get update (Linux Mint 12): W: Duplicate sources.list entry http://www.duinsoft.nl/pkg/ debs/all i386 Packages (/var/lib/apt/lists/www.duinsoft....
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?
0
votes
1answer
49 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
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
257 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
91 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....
7
votes
2answers
11k views

use different java version to run two programs

I installed two JAVA JREs on my new CentOS since Cassandra needs java7u25 or later while iReport needs to work with 1.6. Now how do I launch each program from command line telling each program which ...
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
227 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
61 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 ...
0
votes
2answers
105 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
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:...
1
vote
1answer
75 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
59 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 ...
1
vote
1answer
1k views

Issues with Java in Linux

Firstly, I would like to apologize as I'm not quite sure whether this question is suitable to be on this site or Stackoverflow. I chose U&L eventually because the traffic here is much lower ...
0
votes
1answer
28 views

Deiconify an application does not update its content with Mutter and X11

I have a java graphic application using Swing library. If the application is minimized and the graphic content changes (color or whatever), I should see the modification when restoring the window. ...
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 -...
4
votes
3answers
52k views

How to find which version of Java in Java installed folder?

A version of java is installed on my Linux machine. When i try this: root@test$: javac -version It given the result as: javac jdk1.7.0_80. Now my problem is i don't know where that(1.7.0_80) ...
1
vote
1answer
3k views

Run Java in Firefox on Linux

It is my first time using Linux. What I would like is to run an app called SiteScope that requires Java. I have already installed Java on my Linux, however when I open the browser I still get the ...
3
votes
0answers
749 views

How to prevent cgroup: fork rejected

I run a Java application with OpenJDK 8 on Fedora 27, and since some time it logs this from time to time: kernel: cgroup: fork rejected by pids controller in /system.slice/my.service It then also ...
0
votes
1answer
973 views

Get an error when trying to install Matlab 2014a on Debian

I'm trying to install Matlab 2014a on Debian Testing. When I run the install script with sudo ./install -javadir /usr/lib/jvm/java-7-openjdk-amd64/jre/ I get this output Preparing installation ...