Unable to use the extension without `JavaVM.framework` in macOS
See original GitHub issueI try to use use the extension in my macOS local environment, but I found that the extension could not be used without JavaVM.framework
, a system framework provided by Apple.
UnfortunateIy, I deleted JavaVM.framework
by accident long time ago and it’s hard to recover…
It seems that the extension try to use java_home
executable provided by JavaVM.framework
to detect and locate the JDK installation directory.


Is there any way to use the extension without JavaVM.framework
?
Or maybe do I have to reinstall macOS to get JavaVM.framework
back?
Environment
- Operating System:
OS X Yosemite 10.10.5
- JDK version:
JDK_1.8.0_181 (build 1.8.0_181-b13)
- Visual Studio Code version:
Version 1.26.1 (1.26.1)
- Java extension version:
0.29.0 (July 31rd, 2018)
Additional Information
Issue Analytics
- State:
- Created 5 years ago
- Comments:7
Top Results From Across the Web
Xcode 12.2 no longer contains JavaVM.framework
framework is no longer listed as an option. I downloaded and reinstalled Xcode 12.1, which resolved my issue. Command succeeds now and JavaVM....
Read more >Grails 2.4.0 on Mac OS X extension class fails to load
The problem is grails sets JAVA_HOME to /Library/Java/Home if JAVA_HOME is not set. Most likely, your system have older jdk (1.6) under that ......
Read more >Installing and configuring Java on macOS
So the java at command line is actually using /System/Library/Frameworks/JavaVM.framework/Versions/Current/Commands/java .
Read more >104371 – IDE unable to find some javax packages in Apple JDK.
this issue is MacOSX / Apple JDK specific. to reproduce create a new dummy project from scratch and try to insert some imports...
Read more >JDK-8147056 SWT Applications can not start on Mac OS - Bug ID
JDK-8147056 : SWT Applications can not start on Mac OS ... "/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Commands/javaws" webstart.jnlp ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@jdneo @yaohaizh The issue has been fixed! I found the target package in macOS System Image, and get
JavaVM.framework
,JavaLaunching.framework
,java_home
back. The extension works!@zihengCat Cool!