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
431 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
385 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 ...
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
267 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
166 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
29 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
130 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
2k 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
38 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
64 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
44 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 ...
0
votes
1answer
36 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
1answer
99 views

Sudden shutdown happens only when I have PhpStorm opened

I've had this reoccuring 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
165 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
45 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
72 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
27 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
46 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
27 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 ...
0
votes
1answer
230 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
150 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
630 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
225 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 ...
2
votes
2answers
47 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
89 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
194 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 ...
0
votes
0answers
227 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
344 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 ...
1
vote
2answers
158 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
141 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
313 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
141 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
150 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
28 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 ...
0
votes
0answers
65 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 ...
0
votes
1answer
65 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
101 views

Too many “ESTABLISHED” connection

I have a setup where my client talks to the server via CORBA connection. Both client and server runs on different machines. When I start my client a connection is "ESTABLISHED" with the server. Once ...
0
votes
0answers
84 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
131 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
343 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
93 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
291 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
652 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 ...
0
votes
1answer
37 views

Is there any advantages of using rpm-based distro for Java development?

I'm using Arch Linux now and everything seems okay. But I'd like to try using some rpm-based linux distro like Fedora or OpenSUSE. It seems that most Java server machines use Red Hat, which is ...
0
votes
0answers
23 views

Sending data from rs232 [duplicate]

I'm trying to write a loopback test with pins 2 and 3 connected. I am using Ubuntu OS and java for the code. The library that I'm working with is JSSC. I am able to read and write from the serial ...
1
vote
1answer
2k views

Why is Android studio complaining about OpenJDK?

I have latest version of Manjaro 64 bit, latest version of Oracle's JDk and Latest version of Android studio. Everything is up to date on my system. Android studio is complaining about OpenJDK ...
3
votes
2answers
537 views

foolproof way to detect if java process is running

I have a java process that runs continually that sometimes, for reasons I have yet to fully debug, craps out. So, I also have a cron job that looks for the process every 5 minutes and if it finds the ...