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. Questions about installing/running Java on macOS are welcome, questions about Java programming must be asked on StackOverflow.

490 questions
47
votes
11 answers

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 netbeans.conf, is there something similar for…
Michael Lange
  • 573
  • 1
  • 4
  • 4
45
votes
7 answers

Can't run OpenJDK macOS Catalina "Can't verify it's not a Virus"

I downloaded OpenJDK 13 from the official website and extracted it to my /Library/Java/JavaVirtualMachines/ folder. If I now try to run it with java -version I get a prompt saying something around the lines of "macOS can't verify it is not a Virus"…
Lukas
  • 561
  • 1
  • 4
  • 8
45
votes
4 answers

How can I install java openjdk 8 on High Sierra or newer macOS

How do I install OpenJDK 8 on High Sierra or newer macOS? 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 distributing Docker containers with…
Jolley71717
  • 1,698
  • 2
  • 11
  • 17
42
votes
3 answers

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? Apple docs generally recommend downloading Java…
apennebaker
  • 791
  • 2
  • 7
  • 9
39
votes
3 answers

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 Eclipse) result in prompts to install…
Nicolas
  • 769
  • 1
  • 6
  • 8
32
votes
5 answers

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 someone wonders about the removal of that utility. My…
Maverik
  • 5,697
  • 6
  • 49
  • 54
30
votes
5 answers

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 official instructions to remove Java are: sudo rm -fr…
Magnetic_dud
  • 635
  • 1
  • 8
  • 21
30
votes
2 answers

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 preferences gets the job done, but I'd rather get rid of…
Can Berk Güder
  • 591
  • 1
  • 9
  • 15
27
votes
2 answers

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

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 74 Oct 23 2013 /usr/bin/java ->…
marathon
  • 668
  • 2
  • 8
  • 20
21
votes
1 answer

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 That example, in detail According to Oracle in the…
Graham Perrin
  • 7,613
  • 14
  • 80
  • 240
21
votes
5 answers

Cannot install JDK 13.01 on Catalina

I tried to install the x64 version of jdk (from https://www.oracle.com/technetwork/java/javase/downloads/jdk13-downloads-5672538.html), however, Apple refused to install it saying that the software needs to be updated. Since this is the latest…
Ansh Khurana
  • 1,223
  • 2
  • 14
  • 31
18
votes
2 answers

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 account for the fact (also mentioned in a comment) that…
Drux
  • 1,211
  • 5
  • 17
  • 32
17
votes
2 answers

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 Oracle, and I have no idea what to do after…
paper1111
  • 595
  • 1
  • 5
  • 16
16
votes
6 answers

How to run an app that require Java SDK on macOS Catalina 10.15?

Currently I am getting issue with new macOS Catalina limitation. Every time I run an app that require openJDK I get this message: "openjdk-12.0.1.jdk" can’t be opened because it is from an unidentified developer. Your security preferences allow…
MoOx
  • 576
  • 1
  • 4
  • 9
16
votes
3 answers

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 I get the following…
STiGMa
  • 261
  • 1
  • 2
  • 4
1
2 3
32 33