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.
-4
votes
0answers
21 views
Differences in java installation methods in a Linux system [on hold]
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 ...
0
votes
1answer
15 views
Java - convert arraylist of object to arraylist of string [on hold]
Let's say i have arraylist that contain object (from class moon)
Arraylist<moon> moonList;
I need print (only) name of moon from that arraylist to screen, because last attempt it's just print ...
0
votes
1answer
24 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
32 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
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 ...
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 ...
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:
org.jcrontab.data.file=${catalina.base}/webapps/name_of_the_app/jcrontab/...
0
votes
0answers
44 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 this:...
0
votes
1answer
33 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 ...
11
votes
1answer
556 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
1answer
39 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 &.
...
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 ...
0
votes
2answers
71 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
51 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 ...
1
vote
0answers
64 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 ...
1
vote
1answer
47 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 ...
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
1answer
28 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 ...
0
votes
2answers
149 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 ...
2
votes
1answer
39 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 ...
1
vote
1answer
79 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 ...
0
votes
2answers
36 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 ...
1
vote
1answer
77 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
49 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 ...
1
vote
0answers
77 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 ...
0
votes
0answers
46 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
60 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
54 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 ...
0
votes
0answers
95 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 ...
0
votes
1answer
44 views
Install Java 1.4.2 on recent Amazon Linux [duplicate]
I need Java 1.4.2 on a up-to-date Amazon Linux 2015.09 server. I've tried to install j2sdk-1_4_2_19-linux-ia64-rpm.bin. When I execute this file, I get an error message:
line 442: ./install.sfx.12314:...
0
votes
2answers
94 views
Running JAVA in Cygwin through bash script
I've been encountering a problem with cygwin where I cannot run a jar file with an error that the file cannot be found.
If it were easier i would "translate" the java source in bash, but ...
1
vote
1answer
43 views
Shared libraries can't be found inside a screen session
I'm running a jetty-based Maven web application on Red Hat Linux. When I run it using the normal command, mvn jetty:run, it runs fine.
However, when I try to run this command under a screen session ...
0
votes
0answers
115 views
Symlink not working for /opt folder
I am in the midst of installing Java on red hat machine.
So I downloaded jre-1_5_0_10-linux-i586.rpm and copied it into /opt/local. Then I ran sh ./jre-1_5_0_10-linux-i586-rpm.bin and finally I ...
1
vote
1answer
89 views
How to debug an Out of memory crash
Recently one of my CentOS6 server crashed because of an Out of memory Error:
It seems to be related to the postgres database used by java web-applications (deployed on tomcat). But I cannot find ...
0
votes
1answer
209 views
Cannot run config.sh on server that is running Jira
I installed Jira on a Centos 7 VM. Jira is already running and it seems to be working well. I am trying to configure it to run through https. When I try to run config.sh I get an error that java is ...
1
vote
1answer
96 views
Jre installation have no /usr/bin/java file?
I need to install a specific older version of JRE on a RedHat machine.
So I downloaded jre-1_5_0_10-linux-i586.rpm and copied it into /opt/local. Then I ran sh ./jre-1_5_0_10-linux-i586-rpm.bin and ...
1
vote
1answer
78 views
CentOs 7 CronTab set JAVA_HOME
With the root user I configured the JAVA_HOME variable for crontab like this:
[root@localhost ~]# vim /etc/crontab
_______
SHELL=/bin/bash
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/opt/jdk1.8.0_71/bin
...
1
vote
2answers
52 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-...
2
votes
1answer
2k 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
1answer
29 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 ...
1
vote
1answer
104 views
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
27 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 ...
0
votes
1answer
202 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 ...
0
votes
0answers
82 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
2answers
71 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
86 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
2answers
149 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 ...