Widely-used object-oriented programming language, emphasizing portability.

learn more… | top users | synonyms

6
votes
6answers
7k views

Why is java -version returning a different version to the one defined in JAVA_HOME?

My JAVA_HOME is set to C:\bea\jdk150_10\bin (Java 1.5). However, when I run java -version I get the following: java version "1.6.0_22" Java(TM) SE Runtime Environment (build 1.6.0_22-b04) Java ...
6
votes
2answers
1k views

What are the rationales behind that Java does not overwrite / remove its older updates after each update?

Can I uninstall the older updates? Regarding updates, I am referring to those Update 1, Update 2, e.g. Java 7 Update 1, Java 7 Update 2, and so on. I am speaking with respect to Java for Windows.
6
votes
8answers
10k views

How to schedule a java program to run Every day?

How can I schedule my java program(core java file) to run every day at a particular time? I want to schedule it in a Linux server and what is the same for Windows?
6
votes
3answers
6k views

Wrong java -version being reported

I am running Windows 7 Professional x64 and have the following Java versions installed: x64 C:\Program Files\Java jdk1.6.0_24 jdk1.7.0_04 jdk1.7.0_07 jre6 jre7 x86 C:\Program Files (x86)\Java ...
6
votes
2answers
13k views

how to install java 1.7 runtime on macos 10.9 mavericks?

I tried to install Java 7 Update 51.pkg, downloaded from here (http://java.com/en/download/mac_download.jsp?locale-=en), following the instructions here ...
6
votes
2answers
35k views

Uninstall Java on Mac OS X?

I'm working on a trouble shooting document for some desktop software that runs in Java. One of the last resort steps is to completely uninstall and reinstall the Java runtime. In Windows XP this can ...
6
votes
1answer
4k views

Switching from Java 1.7 to Java 1.6 in Windows 7

I changed the JAVA_HOME and Path Variable pointing to my Java 1.6 Location from Java 1.7-> tried checking the version using java -version. It showed Java 1.7. Next, tried deleting the Java 1.7 ...
6
votes
2answers
4k views

Microsoft JScript compilation error

For the past month until now, I'm getting the follow dialog from time to time. Probably few times a week. I'm running Windows 7 Ultimate x64 SP1 with all latest updates, and Java 6U29 (1.6.0_29-b11) ...
6
votes
3answers
21k views

Allowing unsigned Java applications on all sites

Java stopped running unsigned applications one day. Your security settings have blocked an untrusted application from running. The documentation states that I can add a site to an exception ...
6
votes
2answers
3k views

Is it safe to delete Java folders from C:\Users\(Username)\AppData\LocalLow\Sun\Java

I am using a Windows 7 64-bit PC. I have many folders in C:\Users\(Username)\AppData\LocalLow\Sun\Java with names of older Java versions like: jdk1.7.0_21_x64 jre1.7.0_45 jre1.7.0_25 These folders ...
6
votes
1answer
4k views

Suppressing the “Picked up _JAVA_OPTIONS” message

I'm using _JAVA_OPTIONS to set some defaults for Java on RHEL. It works fine but now every time I start java I get the following message Picked up _JAVA_OPTIONS: -foo -bar -baz is it possible to ...
6
votes
1answer
3k views

Are there any credit cards that run Java? [closed]

When installing Java I noticed credit cards listed among the devices that run Java. Is this true? How do they work?
6
votes
1answer
1k views

Java in browser: application blocked (multiple domains)

Java made me to update to the latest version and now I get the "Application Blocked" error all the time. Alright, I have lowered the security (although it only allows for the "medium" level, omg), and ...
6
votes
3answers
13k views

How can I set one browser to use JRE 1.5 and another to use JRE 1.6?

I think this has to be a common issue, but I haven't found any clear solution. We have several products that are accessed via a browser (IE 7) with JRE version 1.5. We now need to be able to support ...
6
votes
1answer
8k views

ClassNotFoundException returned for all plugins

I am trying to use a Java applet (any Java Applet), but I always get a messages saying "Error. Click for details". When I do so, the pop-up says: Application Error ClassNotFoundException ...
6
votes
3answers
1k views

Is it possible to preload JVM to make starting of little one-shot java applications faster?

Expected algorithm: You start JVM without actual application (only telling it to load some jars), it loads and listens a socket and waits in a background. When you start the application ...
6
votes
1answer
3k views

Firefox, how to force a specific plugin (i.e. Java) to always load through 'click-to-play'?

After I've updated Java to version 7 update 17 it no longer activates 'click-to-play' when I am browsing to a site that uses Java. I really like to put it back to 'click-to-play' list in light of ...
6
votes
1answer
446 views

Why can't I start Eclipse and Minecraft at the same time?

I'm running Java SE Development Kit Update 25 (64-bit). It appears that I'm unable to run both Eclipse and Minecraft at the same time. This is really really weird, since I can easily start two ...
6
votes
0answers
413 views

Error from egit installation

Just installed a fresh 32 bit copy of java and eclipse. and am now trying to add egit for the first time. Following the instructions here (using the main repositiry) I receive this error when I try ...
5
votes
5answers
23k views

install sun java 6 and sun java 7 side-by-side on linux (fedora 16) using rpm

This is what I would like to achieve, but I'm failing (I'm a newbie in Linux). I have a Fedora 16 box (64 bit) and would like to install multiple versions of oracle java (java 6 and java 7 for the ...
5
votes
2answers
6k views

Find path to current JVM

I need to find the path to the current Java VM running on my Windows machine. How can I do that?
5
votes
2answers
11k views

What applications use Java on a desktop? [closed]

I get the "There's a update for Java" notification on my computer. And as its a security update, I feel like I should get the new update and each time, I need to go through an installation process and ...
5
votes
3answers
65k views

How to disable the Java update message balloon in Windows 7? [duplicate]

I've looked in the Java section of the Control Panel, but don't see an obvious way to disable the automatic message balloon that pop up in Windows 7 asking me to update my version of Java. How do I ...
5
votes
4answers
38k views

How to install java enviroment on Windows 8?

I want to try the newest Windows 8 64-bit. I installed it successfully. I tried to install one trading application called Interactive Brokers Trading Station which requires at least jre-1.4. I went ...
5
votes
3answers
985 views

Was/Is there a version of the Java VM for Windows 3.1?

...And can you still scare up a copy? This came up in a combination of curiosity and technical archeology today, and while there seems to have been one for the Win 3.1.x platform, I can't seem to get ...
5
votes
1answer
1k views

File only visible to cygwin, not windows?

Problem: We have a file created with keytool (from jdk 1.5) that is only visible with the ls command. When we do a dir, it's not there. Specifics: This file is owned by the user, all other files ...
5
votes
2answers
1k views

Force reaping of java zombie processes on OS X 10.7

I have CrashPlan running on my MacBook Pro, and it went a little haywire. Essentially, it caused a fork bomb. Fortunately, I had an open Terminal window and was able to run this command: sudo ...
5
votes
2answers
17k views

How can I make JDK 7 the default JDK in NetBeans?

I uninstalled JDK 1.6.26, then installed JDK 7 and changed my PATH to point to the new version. However when I now open NetBeans it shows me this error: Cannot locate java installation in ...
5
votes
2answers
13k views

How to configure applet plugin for OpenJDK in Firefox on Linux?

I am using Kubuntu 10.04 with Firefox 3.6 from Mozilla's website and I use OpenJDK from the Ubuntu repsitories. I want to know how do I configure OpenJDK with the Firefox to view Java applets in the ...
5
votes
1answer
2k views

Why do the fonts in the Java application I'm running look different in Mac OS X than in Windows?

Shouldn't they look exactly the same? Or does Java not have its own fonts? Does it just map font names to OS fonts?
5
votes
2answers
8k views

How do I easily elevate when running a .jar file?

When trying to run an installer Jar file, I am getting an error saying that write access is denied to create a directory under the Program Files folder. Right click -> Run as Administrator is not ...
5
votes
4answers
10k views

Problem with remoted display of java applications

I'm trying to remote display Java based development environments, such as NetBeans and IntelliJ, from a linux machine to a windows machine. When I do this, the right click functionality of the ...
5
votes
3answers
15k views

Will Window RT have a JVM?

Java is supposed to be a way to write portable programs, and one person we work with wrote some of our buisness applications in Java. Doing some prelimiary compatibility checking and it seems that ...
5
votes
1answer
12k views

Running Java 32bit and 64bit on same computer

I ran into a rather puzzling problem, trying to install Vuze 4.2.0.2 on my Windows 7. I have a Java 6 JDK 64bit, but Vuze complains that it can't find a correct 32bit JRE. Yet, as far as I know it ...
5
votes
2answers
7k views

How to add Java System Runtime Parameters?

I'm given the following instructions: You must set the sun.lang.ClassLoader.allowArraySyntax system property to true by adding the following to the JVM arguments: ...
5
votes
1answer
810 views

How to get back to Oracle Java after installing OpenJDK

I've installed Oracle JDK using this guide. Then I accidently installed OpenJDK(tried to prepare PC to build Android). How do I get back to Oracle Java? Can I keep OpenJDK, but set Oracle Java as ...
5
votes
3answers
1k views

java.exe -version and pushd?

I have noticed that when I run the following command Pushd \\RemoteMachine\C$ && java.exe -version I get the java version of the computer I am on. However when I run the pushd command with ...
5
votes
3answers
2k views

Java sound doesn't work under Linux

I just installed Fedora 12 and after downloading and running the Java Sound Demo I get exceptions. If I run just a vanilla Java program that plays a .wav file it runs silently with no sound and no ...
5
votes
3answers
557 views

jEdit slow on Linux

Jedit is a great text editor, and I love that it is truly cross-platform. I usually use it on windows and just recently spent a long while working on some stuff on my linux box and noticed a large ...
5
votes
4answers
16k views

Import Java Trusted Certificate to JRE

I need to install a certificate from a Java app to a lot of people. I want to use a one click program or batch file to import it as a Trusted Certificate(in Control Panel->Security->Certificate). Then ...
5
votes
1answer
3k views

How to Kill Java Process in Windows, without killing java.exe through command line?

I need to kill the process activemq-all-5.5.1.jar(....\app-launcher\target\lib\activemq-all-5.5.1.jar). I use taskkill /im java.exe, but it kills all other applications related with java. I need to ...
5
votes
1answer
19k views

How do I update Java from a non-admin account?

On Windows 7, the JVM interferes with my work by bringing up a UAC prompt at random times when it notices that it needs an update. I can see how this nagging makes sense, so I type in the admin ...
4
votes
6answers
32k views

Changing current version of Java within Windows

I'm working in a Windows XP environment and have recently installed java 1.6 because it was required by an application. However I don't want this to be the default version of java to be used. How do ...
4
votes
3answers
2k views

Where is Java hiding on my PC?

In my efforts to root out the mysterious Java 1.5.0_11 installation I have hiding somewhere on my PC, I completely uninstalled Java. Now, a search in Explorer turns up nothing, but on the command ...
4
votes
6answers
13k views

Unable to install Android for Windows 7 because JDK is not found

I have JDK SE7u4 installed in windows 7. I tried to install Android on Windows 7 using the installer_r18-windows.exe but no avail. The setup window showed the message saying that the Java SE JDK not ...
4
votes
2answers
11k views

Java 7 update 6 installation fails on Windows 7 when Chrome is default browser

I am configuring a brand new Lenovo U410 system with Windows 7 Home Premium for a user. I received the system direct from the shop. As part of the configuration I installed Java using the online ...
4
votes
2answers
9k views

How to know the JVM path in a Linux system?

I want to copy some files in the subdirectories of the JVM path , java is already installed. How to know the JVM's path ?
4
votes
2answers
26k views

Where is java jre path specified in Windows 7?

I have java installed including jre 6 and 7 on Windows 7 64-bit. When I type java -version at the command line I get: C:\>java -version java version "1.6.0_22" Java(TM) SE Runtime Environment ...
4
votes
4answers
6k views

Java not detected by browser

I have java installed on my computer, but none of my browsers seem to detect it a and I'm not able to run any applets. (Trivial, as it may seem) I've wasted a lot of time googling and trying to ...
4
votes
5answers
13k views

Why there is no sun-java in Debian Wheezy and how can I fix this?

Sun's java is in Debian Lenny and Debian Squeeze repos (non-free) but no in wheezy1,2. Why? edit: after further research I found that java has been removed. reson: ROM; security issues and newer ...