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.

learn more… | top users | synonyms

0
votes
1answer
1k views

NetBeans IDE - Warning

I'm using Linux Mint 17.3. I installed NetBeans on it and whenever I open the Netbeans App, I receive this warning message: The package containing the class javax.swing.JComponentBeanInfo was ...
0
votes
0answers
5 views

Package installs old version of Java [duplicate]

I have installed Java 8 on my debian (manually, not with apt) and have removed openjdk-7* and icedtea* (with apt-get). I try to install maven (with apt-get) but that package requires Java (default-...
3
votes
2answers
97 views

Handling duplicate programs names bash

I'm wondering if $PATH cascades entries. You'll all need to take a leap of faith with me here, but here it goes. Let's say we have a Java executable at /usr/bin/java but this version is very old and ...
0
votes
1answer
41 views

Java problem - RHEL

I have RHEL in a test environment and I wanted to install a program that initiates a script that mandates java. The script tests for Java binaries folder. I tried first to choose the java/bin ...
0
votes
2answers
216 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) ...
0
votes
1answer
542 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 ...
1
vote
1answer
608 views

Could not find libjava.so

So I'm trying to install and run the jdk/jre on linux to run app project compilation/signing/etc. actions from the command-line. To install, I used the following command: yum install java-1.8.0-...
0
votes
1answer
19 views

Upgrading Java on CentOS

I'm currently working on a production server, and I can't get my Java program to be executed on it because of an incompatibility between the versions. Java 7 is installed on the server, while the ...
3
votes
3answers
373 views

What is the default encoding for javac in Linux?

javac says If the -encoding option is not specified, then the platform default converter is used. I guess the default encoding in Linux is UTF-8, how to get the default encoding in Linux?
1
vote
0answers
171 views

Install Java 8 on ARM Nas (Debian Wheezy)

I need Java 8 on my NAS (Arm7, 32bits, Debian Wheezy) for fim software. uname -a Linux ReadyNAS 3.0.101.RN_ARM.3 #1 Mon Dec 15 23:39:16 PST 2014 armv7l GNU/Linux I tried the packages way : sh -...
0
votes
0answers
30 views

Build fails as the Java not recognized (Amazon EC2)

My java path is set in .bashrc and we had to run source ~./bashrc when we run the build or the build fails saying java is not recognized . Any solution for this with out running the source bashrc ...
1
vote
0answers
147 views

Java Process hangs with .exec and ssh

EDIT: I believe the issue is that the ssh connection is creating background connections that are still open (cf. http://superuser.com/a/617670). I would run ssh with the -f flag, but I need to be sure ...
2
votes
2answers
3k views

How to set JAVA_HOME correctly on CentOS to install Apache Solr

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 ...
1
vote
1answer
50 views

Where does keytool command logs?

I want to know in which file keytool command logs all the information. i.e when i execute below command :- keytool -import -file ca-certificate.cer -alias sample -keystore /root/keystore.jks I ...
0
votes
1answer
70 views

Java-Application appears twice in dash/dock

First of all: no I'm not to lazy to search in google. I already tried a lot of things and that what all say should work does not work for me. I have manjaro with gnome shell 3.18.1 installed. Inside ...
1
vote
1answer
45 views

Using bash to make sure one program has had time to start before starting another

I have an issue with the following bash script: #Install and start application ./gradlew assemble java -jar bignibou-server/build/libs/bignibou-server.jar& #Run end2end tests node_modules/.bin/...
0
votes
1answer
38 views

Mouse unusable in Java programs under Gnome Shell

I am trying to use Oracle SQLDeveloper (sqldeveloper-4.1.2.20.64-no-jre.zip) under Gnome Shell (Fedora 23). The issue is that the mouse is completely unusable in that application. As-is, button ...
1
vote
2answers
136 views

Sudden shutdown happens only when I have PhpStorm opened

I've had this reoccurring sudden shutdown issue happening recently, and it always happens when I have PhpStorm opened, I'm not sure if it's related, but it still seems random, meaning that sometimes I ...
3
votes
1answer
198 views

Is there a problem using xdotool to direct keystrokes to Java windows?

I'm running Fedora 22 (Linux) and have a Java application written by others that I want to send keystrokes to. I have tried to use xdotool in various ways, but I can neither set focus to the Java app ...
0
votes
0answers
49 views

Dealing with broken pipes in ssh X11 forwarding with an intensive numerical simulation

I have a hydrodynamic code I inherited that has a java gui. It is quite user friendly but it is a nightmare to run through ssh because when I do X11 forwarding, if the connection experiences problems ...
1
vote
0answers
28 views

Java screen session starting

I am trying to launch a sh file wich starts a screen Session, but nothing happens. When I try to launch it manually it works fine. su minecraft -c "screen -S $1 -d -m sh start2.sh $2" and in the ...
0
votes
1answer
89 views

Java process seems to always be bound to a single CPU

This is a bit of a puzzler. I have 28 VMs, running on ESXi 5.5, each with 6 vcpus assigned to them. They're not particularly loaded, and they're not running anything other than a single java process ...
1
vote
0answers
31 views

the case of the missing /usr/bin/jexec

I was upgrading a package when I came across the following - $ sudo aptitude install openjdk-9-jre=9~b87-1 openjdk-9-jre-headless=9~b87-1 -y The following packages will be upgraded: openjdk-9-jre ...
0
votes
1answer
3k views

Any possibility to execute shell script from java file?

I have one Java file named app.java which extracts the servers in my application. I need to connect to every server in that list and extract the logs. In loop, I have to call script for connecting to ...
-1
votes
1answer
51 views

Java code help - help for exam [closed]

import java.io.*; class B_13 { public static void main(String[] args)throws Antifundamentalist,UnsupportedEncodingException { File file = new File("/rr"); String[] myFiles; int ...
0
votes
2answers
28 views

java installation in RHEL

while installing java in redhat i'm facing some problems..i've attached the screen print ..if anyone could help me with it it would be appreciable..thank u.. i unzipped the file using tar command ....
1
vote
1answer
271 views

Java SDK on NixOS for IntelliJ

I have recently installed NixOS on my machine, for Java development I have added IntelliJ CE 14.1.5 and the Oracle JDK 8. However IntelliJ does not automatically recognize the path to the Java SDK ...
0
votes
1answer
178 views

unable to login centos 7 after reinstalling java

I am using centos 7 and I had java 1.7 installed with openjdk in my system but I wanted java 8 so I removed java 1.7 by the command yum remove java-1.* Then I installed java normally by tar.gz ...
3
votes
1answer
681 views

Java plugin crashing in Firefox - Fedora 20

I have been wrestling with this for over a day now. I have a Fedora 20 physical system running Firefox 38.0.5. When I go to the java site to verify my version I get an error saying "The Java plugin ...
0
votes
0answers
237 views

JAVA_HOME set to /usr/lib/jvm/jdk1.8.0_60, yet when running java it does not work?

I needed to set JAVA_HOME and DATABASE_HOME to install Adempiere, so I did it by editing .bashrc as shown here, and then restarting virtual machine. [Linux version is Ubuntu 14.04.3]. When I run ...
0
votes
0answers
13 views

OpenDaylight and Java flavour

This is my first time installing OpenDaylight, and I never dealt with Java before. I'd like to understand what flavour of Java is required for the correct operation of OpenDaylight -- OpenJDK or ...
1
vote
2answers
56 views

Any way to force all java applications to use a particular java setting?

I need to add -Dsun.java2d.opengl=true to my java applications, otherwise they freeze up. Is there any way to force this system wide, so I don't have to modify the configuration file/script of each ...
0
votes
0answers
97 views

Check OpenSSL version in Android with java runtime or shell command

I have a problem with checking OpenSSL version in Android device. I've tried to: grep OpenSSL from system/lib/libssl.so with java runtime.exec. but it doesn't work? Anyone can help me, how to make a ...
2
votes
2answers
213 views

Debian and jdk 1.7

To run some applications on a server I require a version 1.7+ I tried to install JDK as shown in link. However, it did could not retrieve the newest package of Java 8. sudo apt-get install openjdk-8-...
0
votes
0answers
251 views

Why java and java based apps work fine when JAVA_HOME and PATH variables are not set?

I installed jdk8-openjdk in Arch Linux using official repositories. Actually it works fine even before JAVA_HOME and PATH environment variables are not set. javac print the usual output. also java -...
2
votes
2answers
395 views

How to delete comments for java project with sed?

I have a Java project, in which I have JavaDoc comments /** ... */ other multi-line-comments /* ... */ line comments // ... and my own "explanatory comments" //* ... When I release my code,...
1
vote
2answers
173 views

How to start the killed java process with its PID?

How to start the killed java process with its PID in Linux?
1
vote
0answers
158 views

Java related error met when installing COMSOL

I would like to install a software called COMSOL on Redhat (Red Hat Enterprise Linux Server release 6.4 (Santiago)) cluster. COMSOL is designed as a Windows software, and its installation requires X ...
0
votes
1answer
345 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 ...
1
vote
1answer
166 views

If I set java bin PATH Dockerfile Jar Command runs but tomcat doesn't

I'm creating a Docker file that FROM's the official TOMCAT 8 docker file and also seeks to use the jar command to extract content from a WAR file so I install openjdk-7-jdk. If I don't set the PATH ...
0
votes
0answers
155 views

Cannot install NetBeans 8 in Ubuntu 14

I am trying to install NetBeans 8 in Ubuntu 14. When I execute the .sh file using ( I have already set the file as executable ) ./netbeans-8.0.2-linux.sh I get this ( Out of memory error ) I ...
0
votes
0answers
30 views

Interrupted OpenCV building

I was following a tutorial on building opencv for java, but accidentally I interrupted it. Now everytime i want to run the same command to build it, it throws this error: CMake Error at /usr/share/...
0
votes
0answers
72 views

Linux capabilities for java to resolve symbolic links

I run a java program by a non-root user. The program has to resolve a symlink to the real file name, but the link is owned by a different non-root user. I used setcap to set capabilities to open root-...
0
votes
1answer
72 views

How do I find where the Java Development Kit is installed?

I installed the JDK on Scientific Linux 7. How can I find the location of the JDK where it was installed?
0
votes
0answers
93 views

Focus stealing under Xfce in Matlab (Java programs?)

I'm using Matlab R2015a under Debian Linux. I recently switched to Xfce 4.12 as my desktop environment, and since then I am experiencing weird focus behavior: When I try to interact with the ...
1
vote
1answer
136 views

JMagick Unable to Locate Java Directories

I am new to Linux and am working on a VM. I am trying to configure my JMagick installation, however when I run ./configure I receive an error saying that it is 'Unable to locate Java directories:' ./...
0
votes
1answer
424 views

How to install openjfx in Kali Linux?

Can anyone tell me how to install openjfx in Kali Linux to use javafx in my applications? I tried apt-get install openjfx but the package is unknown in the repository. If that package is ...
0
votes
1answer
98 views

Executing command in a script as other user takes 10-15 seconds before execution

I start a bash script (synchronously from java as a glassfish user) which starts a command as another user (let's say myUser): #!/bin/bash echo myPassword | su -c "command" myUser & When I ...
1
vote
1answer
304 views

Bash script (with a java command) does not exit (script 2)

I start a bash script (synchronously from java as glassfish user) which triggers another bash script: Script 1 executed from java: #!/bin/bash #Start script2 as myUser on myUser desktop echo ...
0
votes
1answer
729 views

Installing jre-8u51-linux-x64.rpm on SLES 11 SP3: Failed dependencies

I tried to update my Java installation on a SLES 11 SP3 system using rpm -i jre-8u51-linux-x64.rpm (for some reasons I want to run the original Java and not the IBM Java provided by SUSE) and I got ...