Widely-used object-oriented programming language, emphasizing portability. Questions about programming with Java are off topic and should be asked on stackoverflow.com.

learn more… | top users | synonyms

8
votes
6answers
6k views

Does Snow Leopard provide Java 6 for 32-bit machines?

There has been some speculation that Apple's Snow Leopard would finally include a version of Java 6 that works on 32-bit Intel hardware. Now that the OS has been released, can anybody confirm whether ...
8
votes
4answers
6k views

in Windows command line: How to know the path of a command?

I have some program in many places (it is the java command).. I am starting this command from CMD. the problem is, I need to know exactly the path of the java command being run.. (If you know unix, I ...
8
votes
1answer
2k views

netbeans (java) shows empty window in tiling window manager (awesome wm)

I use the "awesome" (tiling) window manager (with default config) and want to run netbeans (java app). But the window is completely grey. The installer window was it too, so i installed under KDE. I ...
8
votes
2answers
29k views

How do I display the Java console?

I'm aware of the fact that you can set it to "show" in the Java control panel, but that's not what I'm asking about. I'm curious about the other options... "Do not start" is pretty straightforward, ...
7
votes
7answers
12k 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 ...
7
votes
2answers
7k views

intelliJ not working on El capitan 10.11

I just installed the new OS El capitan 10.11 and discovered that intelliJ isn't working on it. When I launch it, I get this error: "This application requires the legacy Java SE 6 runtime which is ...
7
votes
2answers
2k 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.
7
votes
5answers
32k 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 ...
7
votes
2answers
7k views

Auto-restart process on crash [duplicate]

I have a Java server process which runs native code and the possibility of the entire process crashing due to a problem in native code is always there. Is there any mechanism offered by *nix operating ...
7
votes
2answers
51k 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 (...
7
votes
3answers
34k views

What is command to see all java versions installed on linux?

I know about java -version. I don't care what version I'm currently running. I care what other versions are installed on my linux box. If it's another java -* command I didn't see it in the java -help....
7
votes
2answers
22k views

Java 1.6 on Mac OS X 10.5?

I'm running OS X 10.5.8 on an Intel iMac and don't have any immediate plans to upgrade to Snow Leopard. Am I able to upgrade Java to 1.6 somehow? The release notes on Apple's website for Java are ...
7
votes
3answers
12k views

Better syntax highlighting for Java in Vim?

I've found Vim to have fantastic syntax highlighting with my preferred color schemes for Ruby and Python, but whenever I need to write Java code, it's like I haven't even turned on highlighting in the ...
7
votes
1answer
1k 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 ...
7
votes
3answers
20k 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 ...
7
votes
1answer
674 views

Identifying lost physical memory

I am having issues with a server running out of physical memory and I'm having troubles discerning whether it is from my application's Java process or something else on the server. Let's take the ...
7
votes
1answer
2k views

No Java Applet support for Mac OS-X on Chrome 10.7.5 after 2012-006 update

Since the 2012-006 update to Apple Java, the Java Preferences pane has disappeared. Apple says that you install the latest version of Java from Oracle in order to reinstate support for Applets. But ...
6
votes
4answers
3k views

Poor Flash performance on Mac OS X?

I've been using Mac OS for almost 3 years now. What I have noticed couple of months ago, and what annoys me more and more over time, is that any Adobe Flash applications, content or adverts on website ...
6
votes
8answers
15k 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
20k 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 (http://java.com/en/download/help/mac_install....
6
votes
2answers
11k 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?
6
votes
2answers
9k views

How to install server JRE in windows7 64 bit?

I downloaded server-jre-7u21-windows-x64.tar.gz from the link http://www.oracle.com/technetwork/java/javase/downloads/server-jre7-downloads-1931105.html Unzipped the .gz file and got file server-jre-...
6
votes
2answers
36k 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
9k 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
6k 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
2answers
21k 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 ...
6
votes
1answer
25k views

Disable Java 8 update 20 security prompts

Java version 8 update 20 introduced a tedious step of having to verify if an applet is legitimate through some convoluted series of steps. Oracle says this about it: Medium (removed from Java 8 ...
6
votes
2answers
10k 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 ...
6
votes
1answer
4k 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
10k 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
2k 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
2answers
2k views

Configure Java 8 Exceptions list for all users on a computer?

I need to add several sites to the Java exceptions site list in Java 8. The problem is that Java's security settings are done on a per user basis and not on a per system basis. This means that when ...
6
votes
1answer
5k 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
470 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
18 views

Why is Java disabled in Chrome? [duplicate]

Why is Java disabled in Chrome? Is it some security concern? From the official Java website: Chrome no longer supports NPAPI (technology required for Java applets) The Java plug-in for web ...
5
votes
6answers
53k 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 ...
5
votes
3answers
5k 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 ...
5
votes
3answers
89k 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
2answers
16k 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
1k 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
6answers
7k views

Android SDK emulator freezes on a Mac running OS X 10.6 Snow Leopard

I'm having trouble running the Android SDK on both of my Macs running OS X 10.6.2 Snow Leopard. This appears to be a 64-bit vs. 32-bit issue, as Snow Leopard now defaults to 64-bit everything, ...
5
votes
1answer
540 views

How to skip Java Security Prompt

NOTICE: Finally it works adding an exception as @duDE shows in his posted Answer, basically it doesnt work before because i did it wrong. The problem: I'm running a Java applet in my browser and it ...
5
votes
4answers
39k 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
1answer
8k views

Redirect Eclipse's output into a text file

I'm doing a Java project using Eclipse. Currently by default, it shows the output in the Console. Is there any way to redirect it into a text file? At least in python, I used to do python somefile....
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
2k 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
15k 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
3k 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
5answers
22k views

How can I install the Java Development Kit (JDK) on a Windows machine if I don't have admin rights?

I'm currently working in a controlled environment where I don't have administrator rights. I am looking for some way to install the Java Development Kit (JDK) on this machine anyway. Is this ...
5
votes
2answers
2k views

How to install Java and Groovy in Ubuntu?

I'm a new user to Ubuntu! so I need your help. How do I install Java and Groovy in Ubuntu?? Please give step by step instructions.