- Saved searches
- Use saved searches to filter your results more quickly
- JDK 8 is installed but getting: ‘Java is required to install this formula.JavaRequirement unsatisfied!’ #2405
- JDK 8 is installed but getting: ‘Java is required to install this formula.JavaRequirement unsatisfied!’ #2405
- Comments
- Saved searches
- Use saved searches to filter your results more quickly
- URGENT- «Java 11 or more recent is required to run. Please download and install a recent JDK» #1543
- URGENT- «Java 11 or more recent is required to run. Please download and install a recent JDK» #1543
- Comments
- Do I need to migrate my projects to Java 11?
- [Solved] Java 11 or more recent is required to run. Please download and install a recent JDK
- How Java 11 or more recent is required to run. Please download and install a recent JDK Error Occurs ?
- How To Solve Java 11 or more recent is required to run. Please download and install a recent JDK Error ?
- Solution 1: Update java.home path in vs code
- Solution 2: required java 11 to use the Spring Boot
- Solution 3: Download and install JDK 11
- Summary
Saved searches
Use saved searches to filter your results more quickly
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
JDK 8 is installed but getting: ‘Java is required to install this formula.JavaRequirement unsatisfied!’ #2405
JDK 8 is installed but getting: ‘Java is required to install this formula.JavaRequirement unsatisfied!’ #2405
Comments
I tried updating brew and upgrading all my outdated formula today, but got the ‘Java 1.7+ is required to install this formula.JavaRequirement unsatisfied!’ error.
Additionally I get the same error when trying to install ant, except the message is for java 1.8+. I originally had ant installed but it failed to upgrade in the same manner as the other formula’s above. I tried to uninstall and reinstall ant and got the same error.
I searched for any other issues that may be related, but only found an old issue where they were pointing at a jre instead of a jdk (Homebrew/legacy-homebrew#50035).
Here is the gist of the output of all my steps I took trying to debug this:
The text was updated successfully, but these errors were encountered:
Saved searches
Use saved searches to filter your results more quickly
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
URGENT- «Java 11 or more recent is required to run. Please download and install a recent JDK» #1543
URGENT- «Java 11 or more recent is required to run. Please download and install a recent JDK» #1543
Comments
I don’t understand why today I’m getting this error. Managed to temporarily solve this by downgrading Language Support for Java(TM) by Red Hat to 0.64.1.
Environment
- Operating System: Windows_NT x64 10.0.20161 (remote ssh to ubuntu 18)
- JDK version: Open jdk 8
- Visual Studio Code version: 1.47.2 (user setup)
- Java extension version: 0.9.1
- Java Debugger extension version: 0.27.1
The text was updated successfully, but these errors were encountered:
@akaroml @jdneo @testforstephen @Eskibear can you make sure the Java extension pack JDK requirements align with vscode-java?
So I can still run my project without making changes, I just have to use jdk 11? Or did I misunderstand?
Do I need to migrate my projects to Java 11?
NO you don’t! Well you should, be we’re not here to judge. It is still possible to compile/run Java applications from Java 1.5 to 14, provided the proper java.configuration.runtimes are configured in the user’s settings.json.
Even without setting java.configuration.runtimes , if you only have JDK 11 (or more recent) configured to run vscode-java, provided your project define compilation source/target, nothing will change
@shanewaz-abbas What are the steps you took to downgrade to 0.64.1? My company and most are reliant on Java 8, not 11 so this change is messing a lot of programmers up.
@seanGammage you can still compile your projects with Java 8. JDK11 is only required to run vscode-java. See https://github.com/redhat-developer/vscode-java/wiki/JDK-Requirements for more details
Hey @seanGammage it seems like you can point to jdk 11 and it wouldn’t impact running the project, though I haven’t tried it as I am busy at the moment, and the downgrade was sufficient for me. To downgrade, you just have to go the java extension page and install another version and then reload.
I noticed the new version tries to detect the language version used by the project (JavaSE-1.5) — how do I manage these? Any config? All these projects are not Maven/Gradle but are old Eclipse projects using IVY, so I can’t just go ahead and modify them mindlessly. What I found out that there were some old Eclipse extension-settings stored with source-level set to 1.5 — I adjusted them to 1.8 (like the projects now require). But in the status bar there was still the JavaSE-1.8 mentioned . in the old version everything worked in that regard, there weren’t any issues with the projects.
For now I also downgraded, until I get to understand how the runtime-configs work and how I can assign them to my Eclipse legacy-projects. I tried to config it like this:
"java.home": "C:\\AdoptOpenJDK\\jdk-11.0.8.10-hotspot", "java.configuration.runtimes": [ < "name": "JavaSE-1.8", "path": "C:\\Java\\openjdk8u181-b13", >, ],
A bit off-topic but while we’re at it: The Eclipse-Importer seems to ignore the «java.import.exclusions» config completely.
@thiscantbeserious Basically, the setting java.configuration.runtimes won’t change the language level of your project (except for the standalone files). This setting is used to tell the language server where different versions of the JDK are installed. The language server will pick up the matchest one according to your project’s configuration.
Would you mind to share the content of this file .settings/org.eclipse.jdt.core.prefs
That’s the file(s) that previously had source-level set to 1.5 — I’ve adjusted these for the other projects and it happened to work fine judging from the code-completion for example with lambdas. From my quick test the new version didn’t happen to catch it up in the status-bar . I can’t update to the new version right now since I need to finish a task but I’ll try it later and will report back if there’s any issues or if it was just a hiccup. Indeed I’m using the above config running the extension with OpenJDK 11 for now . and it seems to work fine on 0.64.1, so at least that shouldn’t be a blocker for me.
eclipse.preferences.version=1 org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=disabled org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8 org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve org.eclipse.jdt.core.compiler.compliance=1.8 org.eclipse.jdt.core.compiler.debug.lineNumber=generate org.eclipse.jdt.core.compiler.debug.localVariable=generate org.eclipse.jdt.core.compiler.debug.sourceFile=generate org.eclipse.jdt.core.compiler.problem.annotationSuperInterface=warning org.eclipse.jdt.core.compiler.problem.assertIdentifier=warning org.eclipse.jdt.core.compiler.problem.autoboxing=ignore org.eclipse.jdt.core.compiler.problem.deprecation=warning org.eclipse.jdt.core.compiler.problem.deprecationInDeprecatedCode=disabled org.eclipse.jdt.core.compiler.problem.deprecationWhenOverridingDeprecatedMethod=disabled org.eclipse.jdt.core.compiler.problem.discouragedReference=warning org.eclipse.jdt.core.compiler.problem.emptyStatement=ignore org.eclipse.jdt.core.compiler.problem.enumIdentifier=warning org.eclipse.jdt.core.compiler.problem.fieldHiding=ignore org.eclipse.jdt.core.compiler.problem.finalParameterBound=warning org.eclipse.jdt.core.compiler.problem.finallyBlockNotCompletingNormally=warning org.eclipse.jdt.core.compiler.problem.forbiddenReference=error org.eclipse.jdt.core.compiler.problem.hiddenCatchBlock=warning org.eclipse.jdt.core.compiler.problem.incompatibleNonInheritedInterfaceMethod=warning org.eclipse.jdt.core.compiler.problem.incompleteEnumSwitch=ignore org.eclipse.jdt.core.compiler.problem.indirectStaticAccess=ignore org.eclipse.jdt.core.compiler.problem.localVariableHiding=ignore org.eclipse.jdt.core.compiler.problem.methodWithConstructorName=warning org.eclipse.jdt.core.compiler.problem.missingDeprecatedAnnotation=ignore org.eclipse.jdt.core.compiler.problem.missingOverrideAnnotation=ignore org.eclipse.jdt.core.compiler.problem.missingSerialVersion=ignore org.eclipse.jdt.core.compiler.problem.noEffectAssignment=warning org.eclipse.jdt.core.compiler.problem.noImplicitStringConversion=warning org.eclipse.jdt.core.compiler.problem.nonExternalizedStringLiteral=ignore org.eclipse.jdt.core.compiler.problem.overridingPackageDefaultMethod=warning org.eclipse.jdt.core.compiler.problem.possibleAccidentalBooleanAssignment=ignore org.eclipse.jdt.core.compiler.problem.specialParameterHidingField=disabled org.eclipse.jdt.core.compiler.problem.staticAccessReceiver=warning org.eclipse.jdt.core.compiler.problem.suppressWarnings=enabled org.eclipse.jdt.core.compiler.problem.syntheticAccessEmulation=ignore org.eclipse.jdt.core.compiler.problem.typeParameterHiding=warning org.eclipse.jdt.core.compiler.problem.uncheckedTypeOperation=warning org.eclipse.jdt.core.compiler.problem.undocumentedEmptyBlock=ignore org.eclipse.jdt.core.compiler.problem.unhandledWarningToken=warning org.eclipse.jdt.core.compiler.problem.unnecessaryElse=ignore org.eclipse.jdt.core.compiler.problem.unnecessaryTypeCheck=ignore org.eclipse.jdt.core.compiler.problem.unqualifiedFieldAccess=ignore org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownException=ignore org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionWhenOverriding=disabled org.eclipse.jdt.core.compiler.problem.unusedImport=warning org.eclipse.jdt.core.compiler.problem.unusedLocal=warning org.eclipse.jdt.core.compiler.problem.unusedParameter=ignore org.eclipse.jdt.core.compiler.problem.unusedParameterWhenImplementingAbstract=disabled org.eclipse.jdt.core.compiler.problem.unusedParameterWhenOverridingConcrete=disabled org.eclipse.jdt.core.compiler.problem.unusedPrivateMember=ignore org.eclipse.jdt.core.compiler.problem.varargsArgumentNeedCast=warning org.eclipse.jdt.core.compiler.source=1.8
[Solved] Java 11 or more recent is required to run. Please download and install a recent JDK
Hello Guys, How are you all? Hope You all Are Fine. Today I am using Visual Studio Code But I am facing pop-up saying Java 11 or more recent is required to run. Please download and install a recent JDK in Java. So Here I am Explain to you all the possible solutions here.
Without wasting your time, Let’s start This Article to Solve This Error.
How Java 11 or more recent is required to run. Please download and install a recent JDK Error Occurs ?
I am using Visual Studio Code But I am facing pop-up saying.
Java 11 or more recent is required to run. Please download and install a recent JDK.
How To Solve Java 11 or more recent is required to run. Please download and install a recent JDK Error ?
How To Solve Java 11 or more recent is required to run. Please download and install a recent JDK Error ?
Java 11 or more recent is required to run. Please download and install a recent JDK
Solution 1: Update java.home path in vs code
Just open workspace settings on Visual Studio Code. And Change This line From.
"java.home": "/Library/Java/JavaVirtualMachines/adoptopenjdk-8.jdk/Contents/Home"
"java.home": "/Library/Java/JavaVirtualMachines/adoptopenjdk-11.jdk/Contents/Home"
Solution 2: required java 11 to use the Spring Boot
- Open Visual Studio Code
- CRTL + , to open the settings
- Search spring-boot.ls.java.home
- Select ‘Edit in settings.json’
- Your Java 11 installation → «spring-boot.ls.java.home»: «C:\\Program Files\\Java\\jdk-11.0.10»
- Save and restart VS Code
Solution 3: Download and install JDK 11
- Download and install JDK 11.
- Once the installation is complete, in C:\Program Files\Java you’ll see something like this
- Then, Open VSC and go to Settings (CTRL + , or Manage icon (bottom left) > Settings) and search for javahome
- Now, Click in “Edit in settings.json”, add C://Program Files//Java//jdk-11.0.8 to java.home and save the file. You should have something like this
- Restart VS Code.
- you’ll see something like this: Security Warning! Do you allow this workspace to set the java.home variable? java.home: C://Program Files//Java//jdk-11.0.8
- Click allow and you’re good to go.
Summary
It’s all About this issue. Hope all solution helped you a lot. Comment below Your thoughts and your queries. Also, Comment below which solution worked for you?