question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unable to use the extension without `JavaVM.framework` in macOS

See original GitHub issue

I 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.

screen shot 2018-08-19 at 13 00 22 screen shot 2018-08-19 at 13 28 12

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

#74

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:7

github_iconTop GitHub Comments

1reaction
zihengCatcommented, Aug 21, 2018

@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! slice 1

0reactions
jdneocommented, Aug 21, 2018

@zihengCat Cool!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found