Questions tagged [java]

Java is a cross-platform programming language created by Sun Microsystems and is now owned by Oracle. Do not confuse this tag with JavaScript or JScript.

Filter by
Sorted by
Tagged with
42
votes
3answers
144k views

How do I install JDK 1.6 in Mavericks?

When I upgrade to Mavericks, it uninstalls Java 1.6. I can install Java 7, but for some applications and development work, I still need access to Java 6. How can I reinstall Java 6 in Mavericks? ...
39
votes
3answers
44k views

Mountain Lion with Java 7 only

I performed a clean installation of Mountain Lion and installed JDK7. java -version in Terminal returns java version "1.7.0_05" correctly, still Java Preferences and some other Java programs (such as ...
37
votes
11answers
150k views

How to increase font size of Eclipse globally?

I'd like to know how to increase the font size for Eclipse so it adjusts the whole GUI to not look so darn small on my screen. For NetBeans there is the --font-size switch which can be set in ...
32
votes
5answers
65k views

How can I switch between the two Java versions in Mountain Lion now that Java Preferences is gone?

I have two versions of Java installed with Mountain Lion: Apple's Java 6 Update 37 (Java for OS X 2012-006) Oracle's Java 7. The update from Apple removes Java Preferences. In another question ...
30
votes
2answers
36k views

Uninstalling Java on Lion

I recently installed the Java runtime (through Software Update) and enabled the Java browser plug-in and WebStart on Lion, but I don't need them anymore. Unchecking "Enable Java" in Safari ...
24
votes
4answers
57k views

How to remove Java 10? Or revert to the previous version?

The Java updater on my Mac installed an obscure version of Java 10.0.1 which I never heard before. The result is that ALL my java apps are not running anymore, which makes Java pointless. The ...
22
votes
2answers
57k views

I installed Oracle Java JDK 8 but java command line is still reporting it is version 7 [duplicate]

I installed jdk 1.8.0 u5, but the command line java is reporting 1.7: $ java -fullversion java full version "1.7.0_51-b13" $ which java /usr/bin/java $ ls -l /usr/bin/java lrwxr-xr-x 1 root wheel ...
20
votes
1answer
5k views

Why does the version of Java verified by Oracle differ from the version shown at the command line?

Questions Why do versions differ? Should we trust Oracle's verification routine? In some cases, the version verified by Oracle is different from the version shown at the command line. Example ...
18
votes
3answers
25k views

How can I install java openjdk 8 on High Sierra

How do I install OpenJDK 8 on High Sierra? It looks like support for the Java Oracle JDK version 8 will be deprecated after January 2019 Java SE Overview Additionally, it looks like publishing and ...
18
votes
2answers
60k views

Install Java JRE 6 (next to JRE 7) on OS X 10.10 Yosemite?

I need to test a web application with JRE 6. I am using a Mac with OS X 10.10 and Java 7 for development. How can I install JRE 6 next to Java 7 on this Mac? This previous answer does not yet ...
13
votes
3answers
8k views

How safe is it for me to install Java on OS X 10.8

I know very little about how Java works and its interactions with OS X, so I'm partly looking for an expert and simple description on how Java works on the Mac, and why so much press includes "fear, ...
13
votes
3answers
24k views

LSOpenURLsWithRole() failed with error -10810 - Downloaded app does not start

I'm trying to run an application downloaded from the internet (e.g., Jabref) but it seems that it fails silently. When I try to open it by double clicking it, nothing happens. When I use the terminal ...
12
votes
4answers
31k views

Multiple Java versions support on OS X and JAVA_HOME location

I know is possible to have multiple versions of Java on OS X but i find it difficult to understand how it works. I upgraded to Mountain Lion and now echo $JAVA_HOME is empty. However in /System/...
12
votes
7answers
13k views

Adobe Illustrator CS6 with Java 8?

Is it possible to run Adobe Illustrator CS6 with the current Oracle Java 8 rather than the legacy insecure Java 6 provided by Apple? I know this is related to this question where the generic answer ...
12
votes
4answers
31k views

Yosemite keeps asking to install Java runtime, while it's installed

I was prompted to install JRE version 8 after upgrading to Yosemite on the family 2010 21" iMac. After I installed it (and checked whether the correct version was installed on the site of Oracle) it ...
12
votes
4answers
19k views

How can I completely remove Apple's Java 6 and make Oracle's Java 7 default for everything?

I would like to completely remove Apple's Java 6 and make Oracle's Java 7 default for every program. For example, with Eclipse I had to fiddle with eclipse.ini to specify JAVA_HOME for Java 7, and the ...
12
votes
2answers
3k views

Is there a way to determine what application wants Java installed?

After upgrading to Mountian Lion on both my MacBook Air and my wife's MacBook Pro, I recieved a prompt asking to install Java (I did not get this on my iMac). I was wondering what triggered this ...
11
votes
8answers
43k views

Mountain Lion 10.8.2, Java Preferences has disappeared

I just installed the latest Java update from apple (Java for OS X 2012-006) and I was looking to have a look at what's going on with my java(s) with Java Preferences app (which used to live in /...
11
votes
2answers
49k views

How do I turn a folder into a .jar file?

I currently have modified a program that is a .jar file. I had unarchived it and turned the .jar file into a folder so that I could edit it. Now all I need to do is change the folder back into a .jar ...
10
votes
3answers
15k views

JAVA_HOME error while maven build, OSX-10.8.4 Version

Error: JAVA_HOME is not defined correctly. We cannot execute /System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK/Home/bin/java I have upgraded my OSX to 10.8.4. After OSX upgrade I ...
10
votes
3answers
32k views

How do I run a jar when I double-click it?

So, I double click on my jar file and it just blinks a window with white screen then it disappears. After that, I right-click and select "Open with jar launcher" it is the same. too. I opened up ...
10
votes
3answers
28k views

Is there a Java IDE for iPad which can compile and run Java locally?

I'm about to have a coding session with some buddies. Problem is, one doesn't have a laptop. He's pretty new to programming so I was going to set him up something either on a rickety laptop or my iPad ...
9
votes
2answers
43k views

How to install Java using terminal?

I want to install Java entirely from the terminal without using any GUI. Can anybody give some instructions? I know that I download it with curl, but it seems that curl doesn't play quite nicely with ...
9
votes
3answers
25k views

How to uninstall Java 1.8 under OS X 10.10 Yosemite?

There are a few answers on old questions about the same issue under Lion / Mountain Lion. Now with Java 1.8 and OS X 10.10 I wonder if anything has changed? Would be great to have exact removal steps. ...
9
votes
1answer
24k views

Open in Low Resolution checkbox on Retina MacBook Pro checked and disabled

On a Retina MacBook Pro some Java applications (such as IDEA 11.1.3 that is supposed to support it) won't run in HiDPI mode. When I got to "Get Info" on the app, I can see that the "Open in Low ...
9
votes
1answer
2k views

How can I prevent java processes from stealing focus?

Has anyone else noticed that command line java applications in OS X create GUI processes that steal focus (ie, groovy, maven sub processes)? I'm finding it extremely annoying; probably because I've ...
9
votes
2answers
9k views

How can I circumvent XProtect and re-enable Java Applets?

So, Apple has again updated their XProtect malware definitions to block Java Applets. Unfortunately, my wife's employer's VPN requires an Applet to be run in order to fully establish connectivity. She ...
8
votes
3answers
9k views

Java - version 1.7.45 - and Mavericks

Chrome refused to run a java app unless i upgraded to .45, which I did my dling the installer from oracle. Java 7 u45. Installer said it worked. Chrome still won't start java. $ which java /usr/...
8
votes
2answers
12k views

Java Plugin for Chrome on OS X Mountain Lion 10.8.2

I'm trying to use webex in Chrome. To click on webex links, I need the java plugin. However, it appears that a recent OS X Mountain Lion update removed the java plugin from my computer. When I try ...
7
votes
3answers
19k views

“Minecraft” is damaged and can't be opened on Mountain Lion

I'm trying to run Minecraft on Mac OS X Mountain Lion. I downloaded the zip file (link here) from minecraft.net and unzipped it. Double clicked on the icon and it tells me, "Minecraft" is damaged ...
7
votes
3answers
11k views

Enabling Java 7 on Mountain Lion

The first time I tried to use Java on Mountain Lion, it installed automatically. Unfortunately, it installed Java 6, so I installed Java 7. If I navigate to Java in System Preferences, only Java 7 is ...
7
votes
2answers
1k views

Disabling Java plug-in globally?

After following the instructions in this answer (briefly: Java prefs pane → Security → disable "Enable Java content in the browser") to disable the Java plug-in globally, I'm presented with an admin ...
7
votes
2answers
5k views

Uninstall Java Mountain Lion [duplicate]

How do I completely uninstall Java from Mountain Lion? I wanted to run Minecraft so I followed the system promps and I think I installed Java 7 and then Java 6. I couldn't get Mincraft to work for ...
7
votes
2answers
3k views

How to install Java 7 next to Java 6?

I am using a MackBook Pro with Mac OS X 10.8.2. I currently have Java 6 installed: wdb-laptop:~ wdb$ java -version java version "1.6.0_37" Java(TM) SE Runtime Environment (build 1.6.0_37-b06-434-...
7
votes
2answers
5k views

Java is eating up 300% of my CPU

Can anyone help me find the cause behind java taking up 300+% of my CPU? I've shut down almost every app and am still having trouble trying to locate the cause.
7
votes
1answer
4k views

System proxy settings inaccessible by Java, Firefox, VMware Fusion, etc.?

I'm stuck on what appears to be an issue with the accessibility of system proxy settings by other programs. I came across this problem while trying (and failing) to run Processing-generated Java ...
6
votes
6answers
14k views

Java and Mac retina support

Does Java support the retina display with high definition rendering of, for example, text? Or is it treated as an unmodified application, and therefore subject to scaling?
6
votes
4answers
12k views

Java and El Capitan

I have installed El Capitan on my Mac, and whenever the mac boots, this screen appears. Note that this window appears many times while using the mac. Also, I have installed the latest java ...
6
votes
2answers
971 views

Where is Java installed in OSX Mavericks?

I am setting up Maven on my Mac but it is not working because the JAVA_HOME variable is not defined. I had expected the java installer to create this but alas not. Where is java installed so I can ...
6
votes
3answers
15k views

Installing 64-bit java on Mac OS X Lion?

When playing Minecraft 1.0, a java-based game, when I switch the rendering options to "Far", the game shows a message saying that memory usage for the game might be too high in Far rendering mode, and ...
6
votes
2answers
4k views

How to update Java from 8 Update 31 to 8 Update 51 when install fails?

I'm trying to update Java on my Mac OSX Yosemite. In the Java Control Panel, it states: A critical Java security update is available. 8 Update 51 (57 MB) Your current version is Java 8 Update 31. ...
6
votes
2answers
11k views

Make Minecraft (or Java Preferences.app) run on Java 7

Minecraft (and probably some other applications) won't run on a System with the preinstalled Java removed and the current JDK 7 installed. I already symlinked the Java 6 directory to the current one. ...
6
votes
3answers
34k views

How do I enable Java Web Start for ASDM Launcher (Cisco ASA management) in Mountain Lion?

I've been trying to get my Cisco ASA management software working and on Snow Leopard, it ran fine. However, even after installing Java manually on Mountain Lion (on my new Macbook Pro), I continue to ...
6
votes
2answers
2k views

Java 7 JRE Not Detected on Clean Install of Mountain Lion

I know there similar questions on how to enable the Java 7 JRE on Mountain Lion when Apple's Java 6 JRE is installed as well. But I just did a clean install of Mountain Lion, installed Java 7 JRE - ...
6
votes
2answers
3k views

“Accept incoming network connections” issue

Due to some graphic and/or code based changes, within programs like Dropbox, iTunes, jDownloader etc. (but mostly Java-based applications), the built-in firewall keeps asking for verification. ...
6
votes
2answers
2k views

How do I uninstall Java?

I have several Java installations on my machine: $ /usr/libexec/java_home -V Matching Java Virtual Machines (6): 1.6.0_24-b07-334, x86_64: "Java SE 6" /Library/Java/JavaVirtualMachines/1.6.0_24-...
6
votes
2answers
987 views

Installer of Oracle jdk-7u45-macosx-x64 hangs on Mavericks

I want to install Java 7 on my Mac which was updated to Mavericks. I downloaded the jdk package from here and after starting the installer I exactly to this point Pressing now Install does nothing ...
6
votes
1answer
552 views

Why is Java virtual memory reservation so high? Bug?

On my Mac Os 10.5.8 Server, Java is reserving 16,777,216TB (about a third more then the sum of all human knowledge -eek!) of virtual memory. I know it's not really reserving this (it would be pretty ...
5
votes
2answers
24k views

I can't find the location of jdk for Java 7 and 8 [duplicate]

I have 3 different versions (jdk) of Java installed: 6, 7 and 8. In bash_profile: export JAVA_HOME=$(/usr/libexec/java_home -v 1.8) setjdk() { export JAVA_HOME=$(/usr/libexec/java_home -v $1) } ...
5
votes
2answers
1k views

Obtain Java 11 for macOS?

I know in recent years the Java development cadence has changed, becoming much more rapid and more predictably scheduled. New plans were announced for regular Long-Term Support (LTS) releases. And I ...