0
votes
0answers
38 views

sudo service errors out with JAVA_HOME not found

I've used visudoer to set the keep_env for JAVA_HOME: $ sudo printenv | grep -i JAVA_HOME JAVA_HOME=/opt/java $ ls $JAVA_HOME bin db jre LICENSE README.html src.zip ...
0
votes
1answer
42 views

Mandatory argument for script to run java program

My script is called: report_startDate It has the following line: $JRE_ROOT/bin/java -cp /home/me/report/config/:/home/me/report/jar/reporting-1.0-SNAPSHOT.jar com.me.project.report.Main $1 $1 ...
0
votes
1answer
75 views

Tomcat: no xmx/xms value set, where is the heap value being defined?

I have a Tomcat 7 install running with Java 1.7 on a Linux 2.6 server, and jinfo shows no xmx or xms values. ps output shows nothing set for xmx/xms on the command line for the java process. Tomcat ...
3
votes
1answer
42 views

locate java source code in jdk7

I have installed Jdk7 in Ubuntu 14.04 and it is successfully configured and I can use java libraries in code. The problem is that I am trying to locate java source code, but not able to find the jar ...
2
votes
1answer
49 views

Make sense of this strace output

Can anyone make sense of this strace output? [pid 25302] read(34, "}B\311\204\n\250\347$\220\266kRb\304a^^\2504\303k\235\227T\223\16\231\306\277\254\256\306", 32) = 32 It's from a Linux system ...
1
vote
2answers
65 views

get CPU usage of a VM (linux) using java

Is there an API for Java in getting the CPU usage of a VM in KVM? I want to know how I could get the CPU usage of a guest (from the host's perspective) using Java. Also, does anybody know where I ...
0
votes
0answers
50 views

Mail Delivery too slow with sendmail

We are using javamail to deliver mail for our applications. The mail function runs in a loop to deliver around 100 to 200 mails depending on the range we use. However, it taking more than an hour to ...
1
vote
1answer
93 views

Programmatically creating .desktop file to autostart application

Using a Java program, I added a .desktop file in /etc/xdg/autostart to run a script when a user logs in. The script didn't run at user login, and when I checked the start up applications dialog ...
0
votes
0answers
57 views

Specific Jar file doesn't run on startup

I want to run a jar at startup, so I asked a question here. I was given a few suggestions, so I started from trying to create a script file and desktop file. I created a script file and desktop file ...
1
vote
2answers
144 views

Run jar on startup in all *nix based systems

I have a jar file which I need to run at startup in all distros of Linux. My previous question here, gave me an idea a rough idea on X-servers. Since I wasn't able to perform startup, I moved on to ...
0
votes
2answers
107 views

Porting jvm into the kernel space?

Currently I am playing with the idea of a jvm running in the kernel space, as a (maybe linux) kernel module. I see a lot of advantage of the idea. Of course the biggest advantage of a such system ...
0
votes
0answers
35 views

How to configure Java Security Manager on JBOSS?

I’m trying to configure JBoss EAP 6 with java security manager. The official guide says you should edit the standalone.conf file, but I can’t find it. Can I circumvent this issue and define the java ...
0
votes
2answers
56 views

UDP sending two strings in a datagram

I'm wondering if its possible to send two strings within one datagram in a UDP packet. Assume I had string 1 with text: unix and string 2 with text: linux. I don't want to merge the strings but keep ...
0
votes
1answer
272 views

Run Java in a chrooted jail

I'm on a CentOS 6.5 machine with Plesk Panel which I used to create a chrooted environment for a user who can access it via ssh. I'm not a big expert but somehow I managed to let him use some basic ...
2
votes
3answers
446 views

What's the easiest way of installing JRE on Debian?

What is the easiest way of installing JRE on my Debian OS (Linux)?
0
votes
0answers
98 views

Safenet Authentication Client Tools error when Reboot or restart the eTSrv- and pcscd-services

Command: sudo /etc/init.d/eTSrv start Starting eTSrv daemon eTSrv /usr/bin/eTSrv: error while loading shared libraries: libeToken.so.8: cannot ...
1
vote
2answers
250 views

Installing OpenJDK 7 (JRE) but only policytools found in ./jre/bin

I'm trying to install Java 7 onto my Ubuntu machine through apt-get. I'm issuing the to install using apt-get: sudo apt-get openjdk-7-jre apt-get claims a successful install, but I cannot appear to ...
1
vote
0answers
165 views

JVM memory limit on Linux (Debian)

When running my java program, I get following error: Exception in thread "main" java.lang.OutOfMemoryError: Requested array size exceeds VM limit I am wondering how I can increase the limits on my ...
1
vote
0answers
66 views

Wine - Java-Editor's Frame Window is black [closed]

I have a strange bug with the Java-Editor on Linux using Wine. When I run a Frame Window it is completely black. The rest of the editor works quite well. My mouse recognizes the text fields (changing ...
2
votes
1answer
99 views

Using prelink on manually loaded libraries? (like Java native libraries)

As far as I can tell, prelink can only works with dynamic libraries which an executable declares it needs at compile time (the libraries that can be found with ldd). It doesn't seem to include ...
1
vote
2answers
324 views

Hugepages in linux - how to make sure that java process will start using hugepages

I'm running java server on Red Hat Enterprise Linux Server release 5.9. Recently I started to use HugePages as it has some advantages I would like to use. System was configured correctly (as many ...
4
votes
1answer
1k views

How to get Oracle java 7 to work with setcap cap_net_bind_service+ep

I am trying to grant the java executable the right to open ports below 1024 on Linux. Here is the setup /home/test/java contains the Oracle Server JRE 7.0.25 CentOS 6.4 Here is what getcap ...
7
votes
1answer
1k views

What is the safe way to allow Java 7 to run on SELinux

Short version: What is the most secure way to allow Java 7 to run on (with?) SELinux? Long version: Sorry in advance if I use incorrect terminology. I'm really just a Java developer with a meager ...
0
votes
0answers
45 views

High Availability of Services

I want to monitor a couple of services in linux. In case they go down I want to restart them. I'm writing a crontab which will get the name of the services using jps command every 60 seconds, and if ...
0
votes
1answer
984 views

Can't load IA 32-bit .so on a IA 32-bit platform

I'm trying to install an 32_bit_application on CentOS (64-bit), while running the setup.bin file it return the following error Invocation of this Java Application has caused an ...
2
votes
3answers
685 views

Linux / JVM - OutOfMemoryError: unable to create new native thread

I have a memory problem with a Linux server (CentOS). It is a VM. Below is the context. It has 70Gb of RAM. There are 2 tomcat running on it. One tomcat is given a heap of 13Gb and the other one a ...
3
votes
1answer
1k views

Cannot kill a java process

I have a java process that cannot be killed. I have tried every method I know, or that I have found on the internet to no avail. I have tried: killall java kill -9 <pid> kill -11 <pid> ...
9
votes
3answers
4k views

How to trace a java-program?

As a sysadmin I sometimes face situations, where a program behaves abnormally, while not creating errors at all or creating nonsense error-messages. In the past - before java came in - there were two ...
3
votes
0answers
164 views

Implement Java/JavaFX on ARM

I am working on ARM Linux. I have found this link that says that JavaFX could work on ARM. I am confused about Embedded Java SE and JavaFx ARM. Do I need to setup a JVM for those or not? I have ...
0
votes
1answer
550 views

How do I install drjava in linux from terminal?

I've downloaded drjava-stable-20100816-r5366.jar file which is the drjava version for Linux. How do I install it on my machine? I'm running Ubuntu 11.10. I have OpenJDK Java 6 runtime and Sun Java 6 ...
1
vote
1answer
647 views

How to force a particular version of Java?

I am on a RHEL 5.5 64 bit box. The systems engineer installed the 64-bit Java VM under /usr/bin ; however, I needed a 32 bit VM which he installed in /opt/jdk1.6.0_35. But now, everytime I do java ...
4
votes
2answers
1k views

Linux running slow with 0 swap left

Our Linux server is responding very slowly. top doesn't show any excessive CPU usage. I noticed that even though there's about 5GB of free memory, the system is using all of swap with no free swap ...
3
votes
2answers
378 views

Capturing new output after deleting the output file

I'm runnig a java server on Debian with this command: java -jar myapp.jar [args] >> log.txt Once I gzipped the log file to send it and then I realized the original file was gone, leaving me ...
2
votes
0answers
151 views

Any way for Unix to ignore lpoptions and let Java do it's job?

I'm using the javax.print API to print a Jasper Report on Debian Linux. For some reason the saved lpoptions (CUPS settings) always override settings chosen on the Java Print dialog. At this point the ...
0
votes
3answers
1k views

How to set up the DOMAIN_HOME environment variable in SUSE Linux

I am running Java NetBeans 6.9 jdk 6 on SUSE Linux (a newbie on linux) and I currently need to get the path of the weblogic domain of my Java application. I have read that I can directly access the ...
6
votes
5answers
23k views

Problem to launch java at Debian: “error while loading shared libraries: libjli.so”

I'm trying to launch java: $ java -version java: error while loading shared libraries: libjli.so: cannot open shared object file: No such file or directory $ ldd ...
1
vote
1answer
345 views

Issues compiling Tanuki Java Service wrapper version 3.1.2 under armv5tel architecture

Basically I need this specific version of the Tanuki Java Service Wrapper to run a specific Java application. I downloaded the source from the Tanuki website and I'm trying to compile it from source. ...
1
vote
2answers
732 views

Problem installing JDT in Eclipse on linux

I installed Eclipse on Fedora Core 14 using yum install eclipse-platform. I ran eclipse and tried to install the java development tools, but then this error came up: Cannot complete the install ...
2
votes
1answer
2k views

Weblogic administration console way too slow

I've installed weblogic 10.3.3, configured simple domain with default configuration. And after starting weblogic I cannot use it via admin console because it is starting too slow (~10 mins). It seems ...
5
votes
1answer
3k views

How can i know which unistd.h file is loaded?

I have several unistd.h files in my Ubuntu Linux. I've one on: /usr/include/asm/unistd.h This file has this directives: # ifdef __i386__ # include "unistd_32.h" # else # include "unistd_64.h" # ...
5
votes
2answers
918 views

Invoke Syscalls from Java

Is there a way to invoke syscalls directly from Java, or is it necessary to first call a native method?