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.
-1
votes
0answers
22 views
kill a java process after it was running for one hour
I need a script that will murder java processes that have been on for more than one hour, Can someone please help?
Thank you!
So I am trying this
timeout -k 10s nohup cpulimit -l 40 -- java -jar ...
1
vote
0answers
25 views
Disable java update popup “Your Java Version is out of date” on Ubuntu
I want to disable Java update on Linux OS, I'm using Oracle Java and tried to disable update check from "Java Control Panel" but control panel doesn't have "Update" tab as windows Java control panel ...
1
vote
1answer
23 views
CPU limit on individual runable jar files
I have a .sh script with many jar files in it. Each jar file has unique launch arguments. I must limit all the jar files to not use more than %5 CPU each.
nohup java -a dsasda -p adss
nohup java -a ...
-3
votes
1answer
36 views
How to switch Unix super user using java code? [closed]
i am trying to switch unix super user through java code. but getting authentication failure error, please help to switch user using java.
1
vote
1answer
24 views
Debian Linux - run script/app on boot
I have a .jar file which I run like this:
java -jar server.jar 4242
So I have a script java-server.sh to launch it:
#!/bin/sh
java -jar server.jar 4242 &
server.jar should start working on ...
0
votes
1answer
44 views
centos 7: all command not found, except cd
I use to run a Minecraft server on Centos 7 with oracle jdk 8.
Sometimes the system crashes and most of the commands are not found, except for example cd and the commands that you can see in this ...
1
vote
0answers
66 views
Install Oracle Java 8
I'm trying to install Java 8 on a GitLab Runner like this:
apt-get --quiet update --yes
apt-get --quiet upgrade --yes
apt-get --quiet install --yes software-properties-common python-software-...
1
vote
1answer
22 views
Setting classpath in Java
I was trying to use a tool a tool written in java called "fastqc" (for people who are interested in what is fastqc.
when I tried typing the command :" fastqc"
I got the error:
Exception in thread "...
1
vote
0answers
18 views
Calling Java programs without the .class suffix
This is a sequel to my other question, Getting Java programs start without calling with Java. I can already start Java programs from the terminal by just setting them executable and calling the X....
2
votes
2answers
52 views
Two web servers running in one linux machine?
Problem: I have two web applications which were created by using JAVA and PYTHON respectively.
The JAVA application runs using Tomcat server on the port number 8000. The PYTHON application uses web....
3
votes
2answers
199 views
Getting Java programs start without calling with Java
It would be handy to be able to start Java programs by just calling the class file from the terminal (and have it running it the terminal when double-clicked in GUI, but this is less important). I so ...
0
votes
0answers
39 views
How to Uninstall/Downgrade Java on Mac?
I have been following the Oracle documentation instructions to uninstall Java 1.8 from my Mac as it has compatibility issues with Android Studio and I would like to downgrade to Java SE 1.7.
As per ...
0
votes
0answers
43 views
JCE provider usable as root but not regular user
I am trying to install the nCipher JCE provider and have done the following -
Copied the nCipherKM.jar file to $JAVA_HOME/jre/lib/ext
Updated
$JAVA_HOME/jre/lib/security/java.security with the line
...
1
vote
1answer
71 views
How to set a path variable without root acess? [duplicate]
My college currently uses a very old (like 3 years old) openJDK 1.7 distribution. And being a student, obviously I don't have root privileges. I wanted to use a much later version downloaded a much ...
0
votes
1answer
59 views
Error opening eclipse in archlinux
So I am running archlinux.
On java -version my output is:
java version "1.7.0_101"
OpenJDK Runtime Environment (IcedTea 2.6.6) (Arch Linux build 7.u101_2.6.6-1-x86_64)
OpenJDK 64-Bit Server VM (build ...
0
votes
2answers
29 views
How can I get a dependency of “default-jre” to work for .rpm packages?
After asking the question Can I indicate that a .deb package depends on Java, but not specify what implementation (e.g. OpenJDK, IcedTea, Oracle)?, I was helpfully informed that I could include a ...
0
votes
1answer
49 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 ...
-1
votes
1answer
87 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
29 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 ...
0
votes
1answer
97 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
37 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
40 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
32 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
25 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
0answers
139 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
53 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
574 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
101 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
46 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 ...
1
vote
2answers
148 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
81 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
105 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
32 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
33 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
321 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
65 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
137 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
48 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
114 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
76 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
0answers
135 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
75 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
81 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
75 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
155 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
89 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
169 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
57 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
207 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
137 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 ...