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

1
vote
0answers
10 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
21 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
866 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 ...
1
vote
0answers
11 views

Socket timeout from an upstream DNS server nxfilter

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 ...
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 ...
3
votes
1answer
39 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 ...
0
votes
0answers
9 views

Tomcat variables in jcrontab.properties [migrated]

I have a Tomcat7 and java webbapp with jcrontab. Can I use $CATALINA_BASE variable in jcrontab.properties? For example: ...
11
votes
1answer
533 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 ...
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
0answers
25 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
0answers
14 views

Keep all jars in a folder running on jvm's as services [migrated]

On a remote server I'm having a folder which contains serveral jars. Each of it will represent an application, which will open up a port, on which a web-application is served. It might look like ...
0
votes
1answer
27 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
958 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
27 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
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 ...
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
5k 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
43 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: ...
0
votes
0answers
197 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 ...
0
votes
2answers
51 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
36 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
0answers
18 views

set -xmx and -xms fail how to fix?

i have one problem with Minecraft and I can't set more ram like 1 GB per server. Error: root@vm:/opt/minecraft# java -Xms234M -Xmx10G -Xincgc -jar server.jar Picked up _JAVA_OPTIONS: -Xms500M ...
1
vote
1answer
626 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
49 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
274 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
33 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?
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 ...
6
votes
4answers
45k 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
93 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.
0
votes
0answers
12 views

How to monitor Java JRE 8 on Zabbix via JMX technology?

How to monitor Java JRE 8 that is running on Tomcat 8 via JMX technology? Server is running Ubuntu 14.04 LTS and the monitoring platform is Zabbix 2.2.
1
vote
1answer
59 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
33 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
33 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
75 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
65 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
40 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
19k 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 ...
1
vote
0answers
69 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
343 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 ...
0
votes
0answers
33 views

how to run android dex from command line in ubuntu 14.04

I write a program which has ant build file with this command: <exec executable="dx" dir="${workdir}"> <arg value="-JXmx${env.JavaHeap}"/> <arg value="--dex"/> <arg ...
0
votes
0answers
57 views

Unresponsive Java Application with ssh X forwarding

I have an X session forward via ssh. I run a Java jar application (Apache JMeter) on the remote server. It functioned really well with acceptable lag until today. Recently has become really ...
0
votes
2answers
48 views

How to emulate Oracle Java with OpenJDK?

I have a java app, which does not wont to work: Please install Java JRE 1.7.0_45 or a more recent version I think it checks java version and vendor. Does openJDK have special option to emulate ...
1
vote
1answer
1k 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. ...
0
votes
0answers
85 views

Linux Mint 17.3: Minecraft Forge install error

I have JRE8. I have the latest version of minecraft and have run the client. I've made sure the forge.jar file can execute as a program. However when I go into command line to install Forge I get the ...
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 ...
0
votes
2answers
115 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 ...
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 ...