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

learn more… | top users | synonyms

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

All configuration files are embedded in jars?

What does it mean that All configuration files are embedded in jars. for the Apache Jakarta James e-mail server? Does that mean that config files must be placed back into the JAR file? Or, can ...
0
votes
0answers
16 views

After updating Ubuntu to 16.04 due to driver issues, NetBeans and Eclipse have stopped working

I just updated from Ubuntu 14.04 to 16.04 and it was a bumpy ride with damaged drivers along the way, probably because of the fact that 14.04 was missing two important drivers that 16.04 did have. ...
1
vote
0answers
18 views
+50

Is it possible to monitor JVM usage of Elasticsearch via Munin?

I'd like to use Munin to monitor the status of the JVM used by Elasticsearch, which is run via Java (output of ps follows): elastic+ 1083 1 3 09:29 ? 00:13:23 /usr/bin/java -Xms8g -Xmx8g ...
0
votes
1answer
256 views

archlinux cannot execute java after update

I 've updated raspberry pi b+ arch linux via pacman -Syyu and now I cannot run java anymore because of following error: [xxxx@pi ~]# java -bash: /usr/bin/java: cannot execute binary file: Exec format ...
0
votes
1answer
56 views

High Availability of Services

I want to monitor a couple of services in linux. In case they go down I want to restart them. I'm writing a crontab which will get the name of the services using jps command every 60 seconds, and if ...
0
votes
1answer
851 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
18 views

Linux equivalent of WinRun4J

Does anyone know of a linux equivalent of WinRun4J? Google isn't turning up anything. Specifically (from the WinRun4J aspect), I need the ability to pass additional/extended options to the JVM via an ...
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
24 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
39 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
18 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
834 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 ...
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
63 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
28 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
23 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
262 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
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
135 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
53 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
117 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
70 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
76 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
726 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
824 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
330 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
131 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
115 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
67 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
35 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
19 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
479 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
30 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
53 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
96 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
37 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
21 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 ...