Cannot Find Jdk8 Library On Mac

Cannot Find Jdk8 Library On Mac 3,9/5 3382 reviews

Start the IDE, use Help Find Action (Ctrl+Shift+A or Cmd+Shift+A on Mac), type 'Choose Runtime', press Enter. Select the version to install, the higher the number after b, the more recent is the version. It makes sense to install the most recent version or the version you were asked to try by JetBrains staff. Not sure why the latest installer puts this in /Library instead of /System/Library (nor what the difference is). But /usr/libexec/javahome doesn't find 1.8, so all the posts I've found on how to set your current java version don't work. I've tried adding a symbolic link to make it look like 1.8 is in the /System/Library. Mar 20, 2020  1) Make sure java path in the Unity editor points to jdk8. 2) If you have JAVAHOME environment variable, make sure it points to jdk8. 3) Check your path environment variable to make sure jdk8 path is used there (not jdk9 or jdk10). 4) Try restarting Unity editor and your computer. Oct 02, 2018  How to Fix “Could not find or load main class” in Java. Method 1: Fixing the class name argument. Usually, the mistake that users make which leads to the Java could not find or load main class is the class name that they give as an argument is wrong or, if the class name is correct, the form is wrong. Here are the possible ways you can get.

Rating 3.10 (21 Votes)In this Tip's N Tricks article, I want to point out a very important tip for getting around one of Apple's more peculiar security precautions in Mac OS X Lion and Mountain Lion. The user library's location is here: Macintosh HD Users YourUserName LibraryOnly one problem The User Library is hidden From view in the latest versions of the OS. We'll cover a few different methods to easily access this hidden folder.The User Library is home to many 'under the hood' files and folders that correspond to the various Apps and system processes in your computer. By default, the User Library folder is hidden in Mac OS 10.7 and above. (Lion / Mountain Lion and above)Most users won't need to get into this important folder, and it was Apple's idea to hide the folder, to prevent novice users from accidentally trashing important docs. Shared library extension for mac os x c++.

Some times if you are a new macOS user or even pro, it takes some time to find out which Java version I’m running with? What if you want to use Java 1.7 with Eclipse IDE?

While running Eclipse with new Macbook, you may see an error about installing Java SE 6. Follow steps mentioned in that tutorial to fix it. But after finish installation, you may need to switch between JRE’s like 1.6, 1.7 or 8 (latest Java). Well if you have any of below questions then you are at correct location.

  • Where is Java installed on my Mac OS X system?
  • How can I setup latest JDK 1.7.X to default workspace in Eclipse in Mac?
  • JRE 7 Installation for Mac OS X
  • Important Java Directories on Mac OS X
  • Where is Java 7 Installed on Mac OS X?
  • How to switch JDK version on Mac OS X
  • Mac OS X Platform Install FAQ

There are two ways you could install Java on macOS:

Option-1) Command line:

Downloading Java JDK on Linux via wget is shown oracle.com license page instead.

Download JDK 12.0

macOS:

wget--no-check-certificate-c--header'Cookie: oraclelicense=accept-securebackup-cookie'https://download.oracle.com/otn-pub/java/jdk/12+33/312335d836a34c7c8bba9d963e26dc23/jdk-12_osx-x64_bin.tar.gz

Linux:

wget--no-check-certificate-c--header'Cookie: oraclelicense=accept-securebackup-cookie'https://download.oracle.com/otn-pub/java/jdk/12+33/312335d836a34c7c8bba9d963e26dc23/jdk-12_linux-x64_bin.rpm

Windows:

wget--no-check-certificate-c--header'Cookie: oraclelicense=accept-securebackup-cookie'https://download.oracle.com/otn-pub/java/jdk/12+33/312335d836a34c7c8bba9d963e26dc23/jdk-12_windows-x64_bin.exe

Download JDK 11.0.2

macOS:

wget--no-check-certificate-c--header'Cookie: oraclelicense=accept-securebackup-cookie'http://download.oracle.com/otn-pub/java/jdk/11.0.2+9/f51449fcd52f4d52b93a989c5c56ed3c/jdk-11.0.2_osx-x64_bin.tar.gz

Linux:

wget--no-check-certificate-c--header'Cookie: oraclelicense=accept-securebackup-cookie'http://download.oracle.com/otn-pub/java/jdk/11.0.2+9/f51449fcd52f4d52b93a989c5c56ed3c/jdk-11.0.2_linux-x64_bin.rpm

Windows:

wget--no-check-certificate-c--header'Cookie: oraclelicense=accept-securebackup-cookie'http://download.oracle.com/otn-pub/java/jdk/11.0.2+9/f51449fcd52f4d52b93a989c5c56ed3c/jdk-11.0.2_windows-x64_bin.exe

Download JDK 8.0.201

macOS:

wget--no-check-certificate-c--header'Cookie: oraclelicense=accept-securebackup-cookie'https://download.oracle.com/otn-pub/java/jdk/8u201-b09/42970487e3af4f5aa5bca3f542482c60/jdk-8u201-macosx-x64.dmg

Linux:

wget--no-check-certificate-c--header'Cookie: oraclelicense=accept-securebackup-cookie'https://download.oracle.com/otn-pub/java/jdk/8u201-b09/42970487e3af4f5aa5bca3f542482c60/jdk-8u201-linux-x64.rpm

Windows:

Mac Os Jdk 8

wget--no-check-certificate-c--header'Cookie: oraclelicense=accept-securebackup-cookie'https://download.oracle.com/otn-pub/java/jdk/8u201-b09/42970487e3af4f5aa5bca3f542482c60/jdk-8u201-windows-x64.exe

Option-2) UI based:

Mac OS X information for installing and using Java:

1. Download latest JDK from Oracle (This is 64-bit only).

2. Double click to install it.

Luckily, as I mentioned, the folder is merely hidden, using a special file attribute called the hidden flag. This is the same reason Apple has always hidden the folders containing OS X’s Unix underpinnings: /bin, /sbin, /usr, and the like.While I understand Apple’s motives here—I’ve had to troubleshoot more than a few Macs on which an inexperienced user has munged the contents of /Library—a user can have plenty of valid reasons for needing to access the personal Library folder. You just need to know how to make the folder visible again.Mavericks now offers a simple setting to make the /Library folder visible. (I came up with—no joke—.) But in Mavericks and Yosemite, Apple has made the task much more convenient, providing an easily accessible setting for toggling the visibility of your user-level Library folder. The setting you need to knowIf you’re still running Lion or Mountain Lion, making the /Library folder requires a little bit of work. Show library folder mac yosemite.

3. This installs JDK into Location

/Library/Java/JavaVirtualMachines/jdk1.8.0_45.jdk/Contents/Home

How can I setup latest JDK 1.8.0_45 to default workspace in Eclipse in Mac?

Step-1

Open Eclipse IDE.

Step-2

Open Preference -> Java -> Installed JREs -> Add.

Step-3

Select Standard VM -> Directory -> JRE Home (provide /Library/Java/JavaVirtualMachines/jdk1.8.0_45.jdk/Contents/Home)

Step-4

Click Finish.

Step-5

Validate your steps by typing “java -version” in terminal window.

Step-6

And you are all set.

Also, there is a command java -verbose. It returns complete path at the end of command.

Join the Discussion

Share & leave us some comments on what you think about this topic or if you like to add something.

Other Popular Articles..

[TOC]

当前环境

  1. mac 10.12.5
  2. 系统已经安装了JDK1.8.121

编译OpenJDK8大致流程

  1. 下载OpenJDK8源码
  2. 安装依赖软件
  3. 进行编译
  4. 编译中遇到的问题及解决方案

下载OpenJDK8源码

  • 源码可以在官网上直接下载源码地址:OpenJdk8主页,
  • 本文是直接在版本控制软件中直接牵出:OpenJDK8 Mercurial地址
  • OpenJDK使用的Mercurial版本控制软件,所以需要安装Mercurial
  • 安装Mercurial可视化软件SourceTree【可选】
  • 通过SourceTree将OpenJDK8牵出到本地目录
  • 命令行方式:

安装依赖软件

  • Xcode:直接在APP Store中搜索Xcode安装文件比较大
  • Xcode-select:安装命令:**xcode-select –install **
  • 进行x11链接
  • XQuartz:下载地址
  • 安装brew:命令行安装,安装完后先进行更新,更新命令:brew update
  • 安装llvm,安装命令:brew install llvm
  • 安装freetype,安装命令:brew freetype
  • link llvm-gcc和llvm-g++,由于xcode目录下已经没有llvm-gcc和llvm-g++程序,而build jdk的时候会用到,所以需要link过去

进行编译

  1. cd到源码根目录系jdk8
  2. ./configure 如果找不freetype可以加上--with-freetype-include=/usr/local/include/freetype2 --with-freetype-lib=/usr/local/lib/
  1. 设置环境变量:./bash_profile
    中文注释删掉会有乱码,修改后重新加载: source ~/.bash_profile
  1. make all

  2. 遇到的问题

  • 问题1

Mac Java Jdk

  • 问题2
  • 问题3

参考文献