Java is a general-purpose programming language and a computing platform called the Java Virtual Machine (JVM).

learn more… | top users | synonyms

6
votes
1answer
1k views

Java process freezes until I use 100% CPU

The issue I encounter When working on Android-Studio, Eclipse or even command-line Gradle, the Java software often freezes (even though usually it is after I update my system/change java). For ...
0
votes
1answer
16 views

Error starting Eclipse on Centos 6 (JVM terminated. Exit code=13)

After extract eclipse-jee-mars-1-linux-gtk.tar.gz and running eclipse I am getting following error. I have installed Oracle JDK. What would be the error and solution ? Java version [root@hithertech ...
2
votes
2answers
13k views

What is the command or hotkey for stopping a running program in DrJava?

I installed DrJava about a week ago. Its been working fine so far but I ran into an infinite loop and wanted a way to stop the program from running without having to force DrJava to quit. Is there a ...
0
votes
2answers
37 views

Can't run java 8u71 on Wheezy Iceweasel

What happened to “WebUpd8” team? Banks homepage asking me for java update but couldn't install update via aptitude. On jessie machine already managed to install and run it via java-package interface, ...
0
votes
0answers
17 views

Unable to load shared libraries in java

I have copied existing java to differentlocation and applied setcap on it. #setcap cap_net_bind_service=-epi /usr/lib/jvm/jre-1.7.0-openjdk.x86_64_test/bin/java Now, i got the below error and one ...
0
votes
1answer
761 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 ...
0
votes
1answer
2k views

Increasing `ulimit -u` settings temporarily in OSX Yosemite

I'm trying to temporarily (without restarting the machine, just for test that starts a JVM) increase the number of processes to 2048 in OSX Yosemite but I'm unable to do so. First, I tried calling ...
0
votes
0answers
11 views

Java Selenium path [closed]

I am using the Selenium API, but I got the error Exception in thread "main" java.lang.IllegalStateException: The path to the driver executable must be set by the webdriver.chrome.driver system ...
7
votes
2answers
2k views

Invoke Syscalls from Java

Is there a way to invoke syscalls directly from Java, or is it necessary to first call a native method?
0
votes
0answers
49 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
23 views

the problem when install Cytoscape on Opensuse 42.1

I want to install Cytoscape on my computer. I download the installation file from Cytoscape official site and I install it like this sudo sh Cytoscape_3_3_0_unix.sh but I get the wrong message ...
0
votes
1answer
20 views

JDK 1.4.2 - where can I download the source?

I want to install Java JRE 1.4.2 or JDK 1.4.2 on a recent Amazon Linux server. The best option so far seems to install from source. However - where can I download this? I believe 1.4 is still from the ...
0
votes
0answers
6 views

Amazon Linux 2015.09 + JRE 1.4?

I need JRE 1.4.2 for a script that calls several jars, which needs to run on an Amazon Linux 2015.09 server. How can I install that?
4
votes
2answers
260 views

How to make apt recognize an installed tar package?

I've installed Oracle Java. I want to be able to remove OpenJDK, but when trying to do so apt wants to install another version of Java. How can I configure apt so that it knows I already have a ...
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 ...
3
votes
2answers
85 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
1k views

Cannot Initialize RXTX drivers, in 64bit linux for Java SunSpot, gnu.io.RXTXCommDriver failed, although library binaries are present

I have some Java SunSpots (www.sunspotworld.com), The sunspots come with an SDK, which has a copy of all the needed libraries. I am able to build java application which use the RXTX driver to ...
1
vote
1answer
1k 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 ...
0
votes
1answer
35 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
1answer
128 views

Centos 7 - where is jfx library for openjdk8?

I have centos 7.1. And I installed openjdk8 and openjdk-devel8. However, when I tried to compile in netbeans my jfx application I get package javafx.* does not exist. After some investigation I see ...
0
votes
2answers
50 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
846 views

Java/malloc memory corruption error when running SDK Android Manager

I want to install Android SDK, so I manually installed Java JDK 7u51, downloaded SDK ADT bundle for Linux x64, and tried to run it. When I run android, the SDK manager windows hangs halfway through ...
0
votes
1answer
106 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
4answers
10k views

How to write a Java Program / Shell Script combination such that you can call the Java program as a remote command and yet supply a local file?

This is related to How to execute a remote command on a local file? I wrote a simple Java program that prints the first line of a file - import java.io.BufferedReader; import ...
1
vote
1answer
58 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
17 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
75 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?
0
votes
1answer
3k views

Cannot start Glassfish server on CentOS 5: port is supposedly in use, but it really isn't

I have a CentOS 5 server on which I plan to experiment with Glassfish. The server is up and running, I can ssh to it and have root access. So I installed Glassfish: I followed this link on the Oracle ...
1
vote
2answers
719 views

Java does not run with error “No such file or directory”, despite it exists and is x86_64

The file exists but bash complains it doesn't when asked to execute it. $ ./Libs/openjdk-1.8.0_60-eap/bin/java bash: ./Libs/openjdk-1.8.0_60-eap/bin/java: No such file or directory $ ls -l ...
2
votes
1answer
809 views

calling javac from CentOS 7

I want to be able to use the javac command on the CentOS 7 terminal. How do I set the PATH variable in order to accomplish this? The following explains relevant aspects of my current environment. ...
1
vote
2answers
295 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 ...
0
votes
0answers
128 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
25 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 ...
0
votes
1answer
114 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 ...
1
vote
0answers
65 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

Tomcat won't use setenv.sh

I have Tomcat installed as service. It's CATALINA_HOME and CATALINA_BASE are same: -Dcatalina.base=/usr/share/tomcat7 -Dcatalina.home=/usr/share/tomcat7 I added setenv.sh script to ...
0
votes
1answer
34 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
18 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
471 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
29 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
43 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 ...
1
vote
1answer
50 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
92 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
35 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
20 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
0answers
391 views

Remove duplicated Java packages

I'm on linux mint 12 I have installed Java, following the NetBeans instructions. It wasn't working on chrome, so I installed it like that: sudo echo 'deb http://www.duinsoft.nl/pkg debs all' ...
2
votes
0answers
512 views

can't open netbeans IDE in Fedora 17

my linux version is: Fedora 17 I installed Netbeans IDE 7.1.2 and it was working fine, but now, when I try to open it, nothing happens after double clicking on it. I think updating the kernel may be ...
9
votes
1answer
3k views

What is the safe way to allow Java 7 to run on SELinux

Short version: What is the most secure way to allow Java 7 to run on (with?) SELinux? Long version: Sorry in advance if I use incorrect terminology. I'm really just a Java developer with a meager ...
0
votes
1answer
154 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 ...
3
votes
1answer
407 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 ...