Java is a general-purpose programming language and a computing platform called the Java Virtual Machine (JVM).

learn more… | top users | synonyms

2
votes
3answers
812 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 ...
0
votes
0answers
89 views

Prevent Java to escalate CPU usage on Slackware64?

I use Slackware64-current on my work laptop and though I love running Slackware, sometimes it hangs on me near to the point of starting considering falling back to Windows. I develop on Java and use ...
2
votes
1answer
931 views

Minimal Java installation for Linux with no GUI

I'm working on a CentOS 6.3 x86_64 minimal OS (installed using the netinstall ISO). This system is not expected to run anything beyond console apps/services and Tomcat7. When I attempt to install ...
3
votes
0answers
120 views

RES memory more than initial and maximum memory for java

We have a java application running on Centos 6.4 what we notice is that the RES is around 370m which is more then the allocated max that is 256m. Does this signify that we the application is leaking? ...
1
vote
0answers
157 views

Ant error after installing NetBeans 7.3 in Lubuntu

I have NetBeans 7.01 from Debian repository - all works. But I have a problem with NetBeans 7.3 from the official site (installed on the same machine) - I can't compile anything: ERROR - Ant is ...
2
votes
2answers
150 views

Do I need to remove all “java|jre” packages from my system to be secure from java vulnerabilities?

Currently I have these installed on my Scientific Linux 6.3: [root@localhost ~]# rpm -qa | egrep -i 'java|jre' java-1.7.0-openjdk-1.7.0.9-2.3.7.1.el6_3.x86_64 ...
2
votes
3answers
8k views

Kill only one Java process

I usually run few Java applications, one for server running locally and other for some IDE like NetBeans. And from time to time, after lots of redeployments, my server get stuck on ...
1
vote
1answer
159 views

Point IP to an application instance

I was just wondering how I go about pointing a static IP address which I have purchased to an application instance on my server, using a different IP from the one I currently have pointing to my main ...
2
votes
1answer
524 views

IBM Java Runtime Environment on CentOS

I need to install IBM's JRE, but I can't seem to find an appropriate download or guide to installing it on CentOS. I've found various zips, but none of them include an RPM and I have no idea where to ...
1
vote
1answer
7k views

Missing 32 bit library on a 64 bit Linux install

I am trying to figure out why Eclipse is complaining about being unable to find a library. I've managed to reproduce/reduce the java problem to: $ ldd ...
3
votes
1answer
733 views

update-alternatives just for one user

I'm using a shared server. On that server different versions of Java are installed: Selection Path Priority Status ...
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> ...
1
vote
4answers
10k views

Java update on Centos

I have a Centos 6.2 machine. It currently has JDK 1.6.0_26 installed. I would like to update that to 1.6.0_38, the current release version. I saw a comment somewhere about sudo apt-get; apt-get does ...
3
votes
2answers
804 views

What is meant by stack in connection to a process?

From the book Advanced programming in the Unix environment I read the following line regarding threads in Unix like systems All the threads within a process share the same address space, file ...
3
votes
4answers
11k views

Installing JDK 7 on debian

So I just rented a dedicated server running Debian, and I know nothing about Linux. Anyway, I want to install the JDK 7, first I connected through SSH and granted myself administrator rights by ...
2
votes
0answers
422 views

Java uses max 8 cores on Debian, even though 16 are available [closed]

I have two servers at hand, both with 16 cores. The first is running Debian, the second running Ubuntu. I have written a small multithreaded java app that creates 16 threads. On the Debian machine, ...
0
votes
0answers
557 views

Java SWT App: Need 64-bit swt.jar

I have a Java app that I want to run in Ubuntu, but I have Java 64 so I can't run it because it only has the 32-bit swt.jar. I can't build it myself, so Is there anyone that can provide the 64-bit ...
1
vote
1answer
168 views

Visually-transparent & Input-transparent Windows

I'm a Java programmer who's rather new to Linux. I'm on Suse / Gnome and I need to create a window which: Is visually translucent/transparent. This is the usual alpha blending that composes a ...
10
votes
3answers
5k 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
174 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 ...
5
votes
1answer
3k views

Use certain version of JRE / JDK for certain programs

I use ArchLinux, and an IDE called PyCharm. On its download page, it recommends using Java 6 instead of OpenJDK. ArchLinux has an OpenJDK package (jdk7-openjdk) that I have installed, installed, and ...
1
vote
1answer
329 views

How to start java application after machine reboot?

I'm wondering if there is easier way to start java application (just tomcat server) after machine has been rebooted? Possible answers: Add the application as a service and then add it using ...
1
vote
2answers
2k views

Java version for Tomcat

I want to run my Tomcat with Java 7 but all I found about configuring it doesn't work. The management interface of Tomcat shows 1.6.0_24-b24 as Java version. The JAVA_HOME variable is empty. % echo ...
1
vote
1answer
948 views

Using NetBeans on ARM Linux?

Is it possible to run NetBeans on a ARM CPU with Linux as OS (maybe Debian) ? I want to be clear I don't need to compile for ARM (I will use NetBeans only for PHP coding). So the question is about ...
1
vote
1answer
178 views

CentOS5, RHEL5, Java dependent Packages, Alternate JVM/JDK

Specifically regarding Java dependent packages, such as ant. Is it possible to install them via rpm, when using an alternate JVM/JDK? For example, If I install the Oracle JDK, can I use an ant ...
2
votes
1answer
365 views

Problem with java3d

I want to play this java simulation: http://www.compadre.org/OSP/items/detail.cfm?ID=9640 in java 3d mode on a linux (ubuntu) system. But it doesn't work. If I switch to java 3d-mode it complains ...
2
votes
1answer
1k views

Installing jdk7 on Debian server via SSH

Currently, I'm trying to launch a java program on a server. The server is launched on my virtual machine (VirtualBox) and controlled over SSH. Its OS is Debian. So, in order to launch my program I ...
2
votes
1answer
4k views

What is the command or hotkey for stopping a running program in DrJava?

I installed DrJava about a week ago. Its been working fine so far but I ran into an infinite loop and wanted a way to stop the program from running without having to force DrJava to quit. Is there a ...
0
votes
1answer
654 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 ...
0
votes
1answer
1k views

Upgrade java on Linux Mint 11

I'm unable to use web-based java content due to my version being out of date. %>java -version java version "1.6.0_24" Java(TM) SE Runtime Environment (build 1.6.0_24-b07) Java HotSpot(TM) Server ...
1
vote
1answer
722 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 ...
5
votes
1answer
2k views

How do I update IcedTea?

I've only been using Linux for about a month. I'm running Mint 13. I'm trying to use www.goproblems.com but it tells me that my IcedTea is out of date. I hoped there was a package but I can't find ...
2
votes
1answer
5k views

How do I download and launch a JNLP file in CentOS?

I'm using Amazon's GPU cluster to experiment with some HPC java code on CentOS. The Java application is in JNLP format and has a GUI. I've followed Amazon's getting started video, but I'm not ...
3
votes
2answers
1k views

How to to remove libgcj from Debian?

I am doing Java programming on Debian. By default Debian 6.x ships with libgcj JVM. On starting eclipse it shows a warning that this JVM is deprecated and may cause problems. For this reason I ...
1
vote
0answers
285 views

Installing jdk 1.4.2 on fedora 14

I am trying to install wsdgate, In the installation they have recommended to use jdk 1.4.2, I already have jdk 1.7 but I am not able to install JDK 1.4.2 on fedora 14. I got error like this could not ...
2
votes
1answer
2k views

How to set jsse.enableSNIExtension to false when running Java programs?

I am trying to set the Java system property jsse.enableSNIExtension to false, but when I try running this java just outputs help information: java -Djsse.enableSNIExtension=false What am I doing ...
4
votes
2answers
6k views

How to install JRE on firefox with fedora (64bits)

What do I need to run Java web applications on firefox with my 64bits fedora 17? I can't pass this test but I have installed the x64 rpm from there. What is missing? Additional note: I tried to ...
1
vote
1answer
526 views

How to install Java Runtime Environment 7 update 5 for x64 arquitecture on Debian OS?

The History: Hey guys I want to install JRE7u5 and not OpenJRE7u5 because, while doing a research on the web I discovery that Minecraft runs better on JRE, than with OpenJRE. The Failure: But the ...
5
votes
1answer
19k views

How to completely remove Java 6 and install Java/JDK 7 on Linux Mint 13

How can I completely remove Java 6 and install Java/JDK 7 on Linux Mint 13?
2
votes
1answer
505 views

JRE in Kubuntu doesn't allow me to run .jar file

I am having trouble trying to run a .jar application on Kubuntu. I created an application in NetBeans in Windows and compiled it into a .jar file. First Windows couldn't find the main class. I ...
3
votes
2answers
442 views

Running jobs in parallel on Ubuntu - I/O contention differences between Perl and Java

Apologies if this is off topic - it concerns the relative efficiencies of running I/O-heavy Perl/Java scripts in parallel on a Ubuntu system. I have written two simple versions of a file copy script ...
0
votes
2answers
816 views

Tomcat does not get enough memory

i'm trying to setup a jira instance on my vServer. I've got min. 1 GB ram and max. 2 GB ram. It was runing on my friends Server with only 512 MB ram. The first error was: ...
2
votes
0answers
429 views

can't open netbeans IDE in Fedora 17

my linux version is: Fedora 17 I installed Netbeans IDE 7.1.2 and it was working fine, but now, when I try to open it, nothing happens after double clicking on it. I think updating the kernel may be ...
1
vote
2answers
16k views

How to set environment variable JAVA_HOME that will be saved on exit? [duplicate]

Possible Duplicate: How do I set a user environment variable? (permanently, not session) I use Suse. First was installed jdk7, so JAVA_HOME remains like: /usr/java/jdk1.7.0_05/ After I ...
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 ...
4
votes
2answers
4k views

Adding a folder of jar files to my path

Unix newbie here. I have java tools that I need to use. The tools are in a folder full of jar files. I wanted to add this folder to my path, for the obvious reasons, but after I edit my .bash_profile ...
3
votes
3answers
2k views

A system-wide way to set or get $JAVA_HOME in Ubuntu?

I wonder whether Ubuntu itself provides a system-wide way to find the current JAVA_HOME or whether there is right place for setting JAVA_HOME. Mac OS X does well in this, for /usr/libexec/java_home ...
1
vote
1answer
1k views

What is wrong with my JDK installation?

I tried to compile a Hello world example in java and got a gcc error. As far as I understand it, gcc is trying to compile my java class (and for some reason failing to find the main method, but that's ...
2
votes
2answers
3k views

apt-get install - where does it go?

Just a basic question on this utility... I did sudo apt-get install libhtmlparser-java And I would like to see the source I just downloaded. On Linux (Ubuntu) where ought I look for this?
5
votes
2answers
1k views

How can I expose JAVA_HOME to applications running under X and/or Gnome?

I'm trying to run IntelliJ from Gnome3's Applications menu, but it complains the JAVA_HOME variable is not set. I have the Java installation under my home folder. I managed to export the variable in ...