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

learn more… | top users | synonyms

2
votes
1answer
5k 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
719 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
785 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
6k 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
296 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
7k 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
534 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
21k 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
523 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
456 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
908 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
441 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
18k 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
2k 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
5k 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
4k 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 ...
0
votes
1answer
566 views

32 or 64 bit class file

I have a Java .class file. Now I want to check it was compiled on a 32 bit machine or 64 bit machine ? I tried file command but it just says it is a compiled java class. Is there any way to find it?
1
vote
1answer
245 views

How can I get this java command to act on each file found by a find command?

I have this command inside a Bash shell script, the intention of which is to apply a java command, htmlcompressor, to each HTML file found in a directory: find $DIR -type f -name '*.html' -exec java ...
3
votes
1answer
379 views

Java on FreeBSD

Is it possible to get the latest Java (Java 7u3 or Java 6u31) on FreeBSD? Everything i found on the internet is outdated. I currently have 6u24 from the packagemanager which works for now but may get ...
6
votes
1answer
16k views

Installing openjdk-7-jdk does not update java (which is still version 1.6)

I am having issues updating Java. I am running Ubuntu 11.10. I can execute sudo apt-get install openjdk-7-jdk and it completes successfully. javac -version is 1.7, however java -version is 1.6. This ...
0
votes
2answers
733 views

Do I have duplicate packages?

I'm on linux mint 12, when i run sudo apt-get update i see: W: Duplicate sources.list entry http://www.duinsoft.nl/pkg/ debs/all i386 Packages ...
5
votes
4answers
1k views

Is there a JVM daemon?

I'm curious, is there a JVM which runs as an OS daemon, and forks when a new process should be started in it ( i.e. like init, or zygote process on Android )? If no, why not? I am not talking about a ...
0
votes
0answers
342 views

Remove duplicated Java packages

I'm on linux mint 12 I have installed Java, following the NetBeans instructions. It wasn't working on chrome, so I installed it like that: sudo echo 'deb http://www.duinsoft.nl/pkg debs all' ...
4
votes
1answer
850 views

How do get unix sort to sort in same order as Java (by unicode value)

I shell out sorting to the unix sort command in a Java program I've written. However I am having problems arising from Java's string comparison behaving differently than the comparisons done by sort. ...
1
vote
2answers
3k views

How to uninstall java on Linux Mint 12

Today, I downloaded the latest java jre which is a .bin file By mistake, I installed it on my desktop by running ./jre. I want to remove this installation, move the .bin file to somewhere else and ...
7
votes
3answers
7k views

Command Line Tool for monitoring Java Heap

Is there any command line tool for monitoring the heap size usage of Java in CentOS?
6
votes
2answers
970 views

Java problem - nearly looks like a virus?

I have a weird problem since about a week. When I wake up my computer from suspend, a java process starts and consumes about 170 % CPU capacity. I analyzed the java process a bit: it connects to ...
3
votes
2answers
432 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
1answer
153 views

How to uninstall java from sco openserver 5.0.6?

I have installed Java (J2SE 1.3.1_21) by following this tutorial: http://www.anyang-window.com.cn/in-the-sco-openserver-506-installed-on-j2se-13106-development-environment/ Now, I want to uninstall ...
3
votes
2answers
541 views

Java process, swap (/proc Solaris10) memory highly utilized

How can I analyze high swap memory utilization of Solaris 10 for Java processes?
3
votes
3answers
805 views

Monitoring progress/liveness of background jobs

I have started a background job. Is there a way to know how it is progressing, and whether it has stopped? My command line is like: java weka.classifiers.trees.J48 -t data.arff J48-data.model ...
3
votes
2answers
2k views

Why isn't my environment variable visible from the command line?

I'm trying to run the James SMTP server on Lion (Mac OS X 10.7.2). When I do this: sudo JAVA_HOME=/Library/Java/Home ./james-2.3.2/bin/run.sh it works fine. However, I'd like to make JAVA_HOME an ...
2
votes
0answers
159 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 ...
1
vote
2answers
354 views

How to log the output of a daemon application?

I have a Java program running as a daemon (thanks to YAJSW, a wrapper for java). The thing is that this java application writes several lines of console text, (simply imagine a Hello World App). If I ...
5
votes
2answers
5k views

Looking for a Java class in a set of JARs with find, unzip, grep

I was trying to find the JAR containing a Java Class. JARs are in zip format. My first attempt was: $ find -name "*3.0.6.RELEASE.jar" | xargs -l1 unzip -l \ | grep stereotype.Controller ...
0
votes
1answer
506 views

Enter process running in background/bring to foreground [duplicate]

Possible Duplicate: How can I disown it a running process and associate it to a new screen shell? I started a java client using nohup to get it to run in the background (needed to log out ...
1
vote
0answers
189 views

Rogue Java process brings my computer to a halt

In reference to my earlier post: Is there a log of past threads that are now closed? I gave the process a kill -STOP signal and started examining the details. I can't seem to figure out why it is ...
2
votes
1answer
953 views

Netbeans has no display on my computer

I installed netbeans using zypper install netbeans. Trying to run it, I get the "loading" splash screen which is proceeded by a small popup which asks me if I want to register my copy and receive some ...
1
vote
2answers
218 views

How to zoom into a Java app under KDE4?

I have 200 dpi monitor and this Java is just inscrutinable app small. The desktop zoom effect is cool -- but it doesn't seem permanent? I would like to, basically, change every pixel into 2x2 pixels ...
0
votes
1answer
665 views

Where can I find Aptana error logs?

Where are Aptana error logs stored in fedora?I want them to see why Aptana crashes. Edit: According to Mat's answer I checked the .log file in .metadata directory but this is what Is added to file ...
1
vote
3answers
72k views

How to find path where jdk installed?

I'm a newbie to Linux so please forgive me for asking such stupid question! I'd installed jdk1.7.0.rpm package in RHEL6. Where I do find the path and to execute my first java program?
2
votes
2answers
839 views

How do I install multiple java command-line programs?

I have a bunch of java command-line programs I've written and would like to install for all users. Building with NetBeans, I get a /dist directory which contains myprog1.jar and a /libs directory ...
1
vote
3answers
280 views

Get Position of RAID Hard Drives

I was recently tasked with creating a hard drive management system on Linux. I needed to write a program that monitored when drives came online and offline and created/removed links to the drive ...