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
vote
1answer
39 views
Java equivalent of strace
When I have an issue with a C application, one of the first tools I reach for is strace, I can easily see e.g. if it is blocking on a read from a socket, or for some file I/O or whatever else. But ...
2
votes
1answer
109 views
Problem with libx11.so.6: undefined symbol: xcb_wait_for_reply64
I have a problem with a one-day-old arch system. I accidentally moved /usr/lib/libX11.so.6 out of /usr/lib and then put it back. But now, I cannot launch Android Studio because of this:
/usr/lib/jvm/...
0
votes
1answer
39 views
How to install the latest R when this Java problem in Debian?
My proposal
su
apt-get purge r-base r-base-dev
exit
wget https://cran.r-project.org/src/base/R-3/R-3.3.1.tar.gz
tar -zxvf R-3.3.1.tar.gz
su
apt-get install libcurl4-openssl-dev # otherwise, ...
0
votes
0answers
2 views
Java netbeans hiding a jdesktoppane within a JTabbedpane
I am using a jtabbedpane and within it
3 jdesktoppane. Designing this project in netbeans.
Now I want to be able to hide one of the tabs that is a Jdesktoppane .
Now I thought just simply using
...
0
votes
0answers
12 views
how to use jsoup to parse several tables in a web page
I have tried to use Jsoup to parse the single table by using the identity of the elements (i.e. table id = "table1"), but now I want to extend my work, which means I could parse some complex web page. ...
1
vote
1answer
14 views
Where is “an appropriate place” for jar files on Debian, e.g. for a MariaDB JDBC connector?
I'm trying to install a JDBC Connector for MariaDB in the form of a JAR archive.
The instructions say to put the jar file in "an appropriate place".
Where should I put the jar file on Debian?
-1
votes
0answers
11 views
Error in update-alternatives scripts while installing Java
I am trying to install Java on my linux system but i am getting error in update-alternatives script itself.
I am executing following command
update-alternatives --install /usr/bin/java java /opt/...
0
votes
0answers
5 views
log4j:WARN No appenders could be found for logger (org.apache.commons.jcs.engine.control.CompositeCacheManager)
I have been trying to using josm -
└─[$] aptitude show josm
Package: josm
Version: 0.0.svn10966+dfsg-2
State: installed
Automatically installed: no
Priority: extra ...
3
votes
0answers
38 views
task java:14736 blocked for more than 120 seconds
I have a Java EE application running in Red Hat 6 with Java 7 and Wildfly 9. The application has been running well sometimes, suddenly the response time makes the application unusable and I have to ...
-1
votes
0answers
25 views
Help compile!Android NDK: WARNING: There are no modules to build in this project
I have a Debian Linux system. Linux linux 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt25-2 (2016-04-08) x86_64 GNU/Linux. I downloaded myself android NDK and launched ./ndk-build. Created environment ...
0
votes
0answers
8 views
Matlab (java app) window is missing in the tab list
Is there a workaround to the following wellknown bug (Ubuntu, gnome+compiz, xfce, Arch, since at least 5 years spooking around)?
After some interactions the windows of Matlab disappear in such a way, ...
1
vote
2answers
39 views
What user does a Linux script/app run as?
CentOS here, but I don't think that matters because this should be a core Linux question (methinks). While trying to install & run Apache Kafka (a Java executable) on a CentOS box, I thought of a ...
3
votes
2answers
41 views
On Debian, how do I make a script that will rerun a Java program after it has stopped or crashed?
I'm running a Java server program that needs to be started with a shell script. The script needs to start the Java program again if it happens to crash or be stopped manually.
I found this script ...
2
votes
1answer
27 views
How to update-java-alternatives successfully to Oracle's one in Debian?
The command update-java-alternatives -s jre-8-oracle-x64 is completely valid (found in documentation also here) but I get errors.
The package is also seen in the list of Java packages
root@masi:/...
-1
votes
0answers
8 views
Java App throws headless exception in one system but not other [closed]
I know this is programming issue but
when I run simple java program of displaying just a jframe it works in:
Fedora 20, i386, $Display=0.0
but same does not in
Fedora 24, x86_64,$Display=1
I tried ...
0
votes
0answers
32 views
Why failed nginx in installing default-jre in Debian?
I do
root@masi:/home/masi# apt-get install default-jre
Reading package lists... Done
Building dependency tree
Reading state information... Done
default-jre is already the newest version.
0 ...
-1
votes
0answers
17 views
Java Installation on RHEL 7
I am new to Linux and I have installed Oracle Java on RHEL by downloading .rpm package. It is automatically installed in /usr/java directory. I have few questions
Do I need to be root while ...
1
vote
2answers
123 views
How to start SPSS-statistics 23 in Debian?
I installed the university licence in Debian 8.5 but did not configure any paths and forgot what is the default location.
I cannot see in anything in $PATH about the program by searching SPSS. ...
-1
votes
1answer
24 views
How to create own application installer for Linux? [closed]
I would like to develop a sefl-made application graphical installer in Java. But I not found is quite a good tutorial for this.
I saw izPack installer creator, but for this documentation is quite ...
1
vote
1answer
51 views
Are all open files displayed in lsof output?
In all the cases, I have found any file which is open for reading or writing is displayed in lsof output. But today, I am trying to found a logfile that is opened for writing by a java process in lsof ...
0
votes
0answers
31 views
How to run tomcat on Wind River Linux
I am facing problem while running tomcat server on 'windriver linux' when I start tomcat server as
./startup.sh
And I go to 'serverip:8080' i don't get tomcat webpage everytime, sometime it takes ...
2
votes
1answer
28 views
How to stop the process if it's responding or not responding after certain time
I am running a Java application on an remote server by making a connection with remote server through java secure channel. My application executes a shell script on an remote server and get's the ...
1
vote
2answers
26 views
How to stop my program to be as daemon when running?
I am running a java script which is running as daemon. I am seeing the process running as when type jps. I don't want to run that program as daemon. As I am thinking it to be run it automatically by ...
2
votes
1answer
24 views
Install Oracle Java from a mirror in terminal
I can't access Oracle servers for some reason. Is there any way to install Java from a mirror?
I'm using Fedora 24 and I need to install Oracle Java on it.
3
votes
1answer
127 views
Fedora24, trying to install java (JDK)
I've installed openjdk
Installed Packages
java-1.8.0-openjdk.x86_64 1:1.8.0.101-1.b14.fc24 @updates
java-1.8.0-openjdk-headless.x86_64 1:1.8.0.101-1.b14.fc24 @updates
javapackages-...
0
votes
1answer
31 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
86 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
38 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
60 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
48 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
58 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
151 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
45 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
28 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
60 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
234 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 ...
-1
votes
0answers
47 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
160 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
149 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
40 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
115 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
182 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
46 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
156 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
39 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
55 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
41 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
27 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
439 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
71 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 ...