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

How to set multiple versions of Java on linux

I have Java 1.6 installed on my Linux box and all users and programs used it. Now, I need to install a program which uses version 1.7. I want to install this version such that everyone else continues ...
0
votes
1answer
2k 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 ...
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
18 views

Can I indicate that a .deb package depends on Java, but not specify what implementation (e.g. OpenJDK, IcedTea, Oracle)?

I have a .deb package that contains an app, which requires Java to function. However, I don't care which implementation they have installed (e.g. OpenJDK, IcedTea, Oracle), and I don't want to force a ...
-1
votes
1answer
28 views

How to deploy war file in apache2 in ubuntu 14.04? [closed]

I want to run my application with the help of apache2. In tomcat we will put the war files in folder webapps. I am looking something similar in apache2.
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 ...
-4
votes
0answers
22 views

Differences in java installation methods in a Linux system [closed]

When installing java at the terminal with these methods: sudo apt-get install openjdk-7-jdk tar xvzf jdk-7u45-linux-i586.tar.gz What are the differences between these scenarios? Which location ...
7
votes
3answers
187k views

How to find path where jdk installed?

I've installed jdk1.7.0.rpm package in RHEL6. Where I do find the path to execute my first java program?
1
vote
1answer
55 views

Running Java GUI on Raspi without a connected display

I have a Java GUI app that runs fine on my windows PC and on a Raspi running Raspian when the Raspi has a monitor connected. I want to run the java app on the Raspi without a monitor attached. I'm ...
0
votes
2answers
271 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 ...
13
votes
2answers
2k views

How to fix Java applications mouse pointer offset in Awesome WM?

How to reproduce in Awesome WM v3.5.2 through 3.5.5 (so far): Install OpenJDK or Oracle Java 7. This bug has been observed with both. Start a new Awesome WM session with the default configuration. ...
0
votes
1answer
986 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
32 views

Is the openjdk-r ppa trustworthy enough to install on server?

We are running ubuntu 14.04, which still does not have openjdk8 yet. And I doubt they are going to fix this very soon. We need jdk8 very badly. Is this openjdk-r ppa safe enough?
0
votes
1answer
35 views

Pass filename from find and execute command

I'm trying to write a script which finds certain files and executes a command with the files it finds. Doesn't sound too hard, but I'm having a lot of trouble getting it to work. Basically this is ...
0
votes
0answers
33 views

Very slow RMI+SSL requests after added SSL certificate

I added a SSL certificate to a RMI based application, and it's working normally on test server, so after deploy it at production servers, all requests are waiting for SSL handshake, even local ...
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 ...
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 ...
1
vote
1answer
27 views

Compiled (?) java packages on Debian

I notice looking for the jinput library on Debian (I believe the "j" here implies this is a java specific library, and not a simple wrapper), that there are two packages that might apply: libjinput-...
1
vote
0answers
22 views

Minecraft acting differently when started from terminal compared to started by cron job at start-up

So I use a CentOS Linux 7.2.1511 server, where I host a couple of things, amongst them a Minecraft server. Since from time to time server is rebooted I scheduled a cron job to run minecraft server on ...
0
votes
1answer
29 views

redhat + how to find the oracle JRE version 1.7 from redhat site

I am searching the JRE 1.7.x version from red-hat site by yum command bot not find anything yum list | grep java | grep "1.7" | grep -i jre no such patch or maybe redhat not hold JRE 1,7 ...
4
votes
1answer
953 views

Running unsigned javaws code

For a KVM remote console I need to be able to run a jnlp file. When I run it I get: net.sourceforge.jnlp.LaunchException: Fatal: Initialization Error: Could not initialize application. at net....
1
vote
0answers
22 views

Socket timeout from an upstream DNS server nxfilter [closed]

We are using ubuntu 14.04 server and installed nxfilter latest version. After the run ./startup.sh script file, getting below error after the 2-3 minute and If i stop and start the again script then ...
3
votes
1answer
44 views

How to increase server load?

I am attempting to stress a server as much as I can before it goes into production. I’m using Jmeter and have been able to add a little more stress by modifying scripts. I’ve also modified JVM ...
11
votes
1answer
558 views

Is there any way to tell if a shell script was killed with signal 9

I have a bash script (called from a java program) that keeps getting killed. I always catch the signal 15 with trap but then some other signal comes along that I suspect is signal 9 but am in ...
0
votes
0answers
49 views

Launching JNLP file from Linux

There is a .jnlp file which can be launched from Windows. I now want to open it from Linux. The command is javaws file.jnlp. However, I get a segmentation fault and the verbose message is not ...
0
votes
1answer
35 views

Linux Mint Petra (16) Java Update from JRE 7 to JRE 8 breaks Graphics System?

(Note: I'm a firm believer in "if it works, you don't need to fix it." Which is why this laptop is still running Linux Mint 16 - so far it does everything I have needed, and wonderfully so.) I had ...
0
votes
1answer
43 views

How should I run a .java or a .class file using nohup? [closed]

For the first time I'm just playing around with nohup on top of an Ubuntu server. I read few docs about nohup and got to know about the running commands with options such as nohup ./server.sh &. ...
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 ...
1
vote
4answers
6k views

Apache Tomcat not working

I am a Linux beginner and have CentOS 6.4 installed on VMware. Recently installed Java SE8 and Apache Tomcat server but I cant't connect to the server by using `localhost:8080' browser says Unable to ...
1
vote
2answers
55 views

I am not able to connect tomcat in my centos browser but it starting in terminal

When I typed ./startup.sh i am getting: Using CATALINA_BASE: /home/ashok/apache-tomcat-7.0.56 Using CATALINA_HOME: /home/ashok/apache-tomcat-7.0.56 Using CATALINA_TMPDIR: /home/ashok/apache-...
0
votes
0answers
209 views

web container options for war file in CentOS 7

I know that Tomcat and NginX are both able to host web applications that are defined by war files. But can httpd also host a war-file-based web application on a CentOS 7 server? If so, how would you ...
0
votes
1answer
6k views

Running Java classes in a package --> Error: Could not find or load main class

I'm learning how to compile and run java classes in terminal using the commands javac and java. I have no problem compiling and running an individual class, however, when I put that class into a ...
1
vote
2answers
82 views

How to verify if Java is installed on rhel

I stood up rhel VM. I was curious if JDK is installed or not so that I ran a command from a shell (bash). whereis java It returned: java: /usr/bin/java So I navigated to the path in order to ...
1
vote
1answer
652 views

Editing the .profile file to access

I am trying to source my .profile file to easily access a directory of javatools. The bash code below seems like it should work but it does not. Any help troubleshooting this script would be very much ...
1
vote
0answers
71 views

Not Able to run simple Java Swing Program on Raspbian on Raspberry Pi 2 Headless connected using tight VNC

I am using a Raspberry Pi 2 model with Debian as the OS. I tried a simple java swing program that opens a JFrame on it, and it worked fine. Later, I wanted to use my Pi headlessly i.e. without ...
0
votes
1answer
299 views

Can't test Java installation as normal user

I have installed java and firefox. root@localhost:/home/debian# java -version java version "1.8.0_45" Java(TM) SE Runtime Environment (build 1.8.0_45-b14) Java HotSpot(TM) Server VM (build 25.45-b02, ...
1
vote
1answer
49 views

How can I run my jar file in the background [closed]

I have developed a quick HttpHandler java application (jar file) and I now need it to run. Basically my jar act as a web server and I need it to be running while my linux machine is on. How can I ...
9
votes
4answers
16k views

Command Line Tool for monitoring Java Heap

Is there any command line tool for monitoring the heap size usage of Java in CentOS?
6
votes
4answers
46k views

Java “Could not reserve enough space for object heap” even though there is enough RAM

I am currently having some issues running Java. It won't start because of heap issues. But I have more than 9 GB Ram free (or even 16 GB if you assumed the cache would be empty). This is the error I ...
0
votes
2answers
176 views

Is it possible to install both Gstreamer 0.10 and Gstreamer 1.0 at the same time?

I have a computer that runs Debian Stretch which has Gstreamer 1.0 installed. I am trying to run a Processing sketch that uses the Processing video library which in turn relies on Gstreamer 0.10. This ...
0
votes
1answer
31 views

Development setup on linux

On a linux system should we install and use our development tools and setup like java ee and hadoop as a root user or as user.
1
vote
1answer
81 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 ...
2
votes
1answer
40 views

Passing multiple arguments in middle of command with xargs

Is there a way to pass multiple arguments in the middle of a command using xargs? For example, I have a file javaoptions.txt which contains a default set of Java options. I would like to be able to ...
0
votes
2answers
38 views

how to properly log the output of a console program that frequently updates “parts” of the screen, resulting in a messy log file?

I have some Java executable (jar) that is run my some shell script from a cron job once every night. That executable does not print log statements "as usual" just by printing them out in a sequential ...
0
votes
1answer
92 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
1answer
83 views

javac showing different version on fedora 23

I have the following commands from my fedora 23 terminal installed in Oracle VM [root@localhost local]# java -version openjdk version "1.8.0_60" OpenJDK Runtime Environment (build 1.8.0_60-b27) ...
1
vote
0answers
51 views

How to run a jar together with faketime

I need run a certain jar file with a mock time for testing purposes. When I execute the jar in the usual way $ java -jar myjar.jar it runs perfectly. But when I try to run it together with ...
2
votes
2answers
20k views

Java code to copy files from one linux machine to another linux machine

I'm looking for java code to copy files to a remote linux system. I have tried Runtime.getRuntime().exec() function by passing an scp command, but each time I run the program it is asking for the ...
2
votes
0answers
82 views

TCP SYN,ACK Retransmissions

The following network trace was recorded on a Raspberry PI running Debian Linux. It seems the Raspberry is not seeing the data packet #36995 for some reason; it is just stupidly repeating his SYN,ACK ...
4
votes
1answer
354 views

How do I execute in background / return early?

For reference, I'm using phpseclib to control a remote SSH server using the 'root' account. I have to start/stop a java process which is ran in the background. Stopping works fine with killall java ...