Linked Questions
30 questions linked to/from How to install Java 8 on Mac
27 votes
2 answers
113k views
What is the best way to update Java version on Mac computer? [duplicate]
Should I run brew or update Java via the Web or some other method?
4 votes
0 answers
14k views
sudo: update-alternatives: command not found [duplicate]
I am trying to install Java version 8 on my MacOS. The installation guideline advises typing this command: sudo update-alternatives --install /usr/bin/java java /usr/lib/java/JDk.../bin/java But it ...
393 votes
31 answers
850k views
How to extract text from a PDF file via python? [closed]
I'm extracting this PDF's text using the PyPDF2 Python package (version 1.27.2): import PyPDF2 with open("sample.pdf", "rb") as pdf_file: read_pdf = PyPDF2.PdfFileReader(...
397 votes
27 answers
356k views
Installed Java 7 on Mac OS X but Terminal is still using version 6
I've installed JDK 7u7 downloaded from oracle's website. But after installation, the terminal is still showing java version 6 $java -version java version "1.6.0_35" Java(TM) SE Runtime Environment (...
144 votes
42 answers
466k views
PySpark: "Exception: Java gateway process exited before sending the driver its port number"
I'm trying to run PySpark on my MacBook Air. When I try starting it up, I get the error: Exception: Java gateway process exited before sending the driver its port number when sc = SparkContext() is ...
109 votes
16 answers
219k views
How do I use JDK 7 on Mac OSX?
I would like to use the WatchService API as mentioned in this link: http://download.oracle.com/javase/tutorial/essential/io/notification.html After reading around, I found out that WatchService is ...
108 votes
11 answers
124k views
Spark Error - Unsupported class file major version
I'm trying to install Spark on my Mac. I've used home-brew to install spark 2.4.0 and Scala. I've installed PySpark in my anaconda environment and am using PyCharm for development. I've exported to my ...
70 votes
3 answers
128k views
How to use JDK without JRE in Java 11 [duplicate]
We are planning to migrate our Java 8 project to use Java 11. But I noticed that Java 11 doesn't have a JRE folder. In Java 9 and Java 10, folder structures are changed i.e. java\jdk1.x or java\jre1.x,...
55 votes
9 answers
55k views
Failed to initialize compiler: object java.lang.Object in compiler mirror not found
On Ubuntu 16.04, I installed scala: $ls ~/Binary/scala-2.11.8 bin doc lib man $grep -A 2 SCALA ~/.bashrc SCALA=~/Binary/scala-2.11.8 SBT=~/Binary/sbt export PATH=$PATH:$SCALA/bin:$SBT/bin With ...
28 votes
13 answers
73k views
Can't install Eclipse - "Failed to create the Java Virtual Machine" on Mac
I'm trying to install Eclipse, but I can't get the installer to start. It fails with "Failed to create the Java Virtual Machine" How can I resolve this? Note: I'm on Mac.
34 votes
5 answers
45k views
How to install Java 8 on osx macOS Mojave with Homebrew?
At the moment Java 8 is still required for some apps like: Android SDK / Android Studio Jenkins Ionic ... With brew install java the latest Version is installed. But how to install Java 8?
20 votes
3 answers
13k views
Error: Unknown command: cask || despite the use of multiple instance trials
I am not able to do anything anymore. I keep getting the error Error: Unknown command: cask even though I have previously used a lot of different installations from this link: Homebrew cask option not ...
26 votes
6 answers
5k views
Could not generate DH keypair on "Add composer dependency" in PhpStorm
I got warn message Could not get package info. Failed to connect to https://packagist.org/packages/list.json: java.lang.RuntimeException: Could not generate DH keypair Please check your internet ...
21 votes
5 answers
35k views
Connect VS code with TFS on mac
How to connect Visual Studio Code on mac with Team Foundation Server(TFS). Or any other way to connect with tfs?
8 votes
4 answers
21k views
MAC - I can't open Android Device Monitor on Mac
I have opened it as an administrator and I don't want to install anything unnecessary. When I tried to open Android Device Monitor through Android Studio: Tools > Android > Android Device Monitor. It ...