Title: Debugger should use project's Java runtime to launch application · Issue #753 · microsoft/vscode-java-debug · GitHub
Open Graph Title: Debugger should use project's Java runtime to launch application · Issue #753 · microsoft/vscode-java-debug
X Title: Debugger should use project's Java runtime to launch application · Issue #753 · microsoft/vscode-java-debug
Description: Debugger uses the java.home version used to start jdt.ls, instead of the project's target JDK. Environment Operating System: MacOS JDK version: any Visual Studio Code version: 1.41.x or 1.42.0-insider Java extension version: 0.56.0 Java ...
Open Graph Description: Debugger uses the java.home version used to start jdt.ls, instead of the project's target JDK. Environment Operating System: MacOS JDK version: any Visual Studio Code version: 1.41.x or 1.42.0-insi...
X Description: Debugger uses the java.home version used to start jdt.ls, instead of the project's target JDK. Environment Operating System: MacOS JDK version: any Visual Studio Code version: 1.41.x or 1.42.0-...
Opengraph URL: https://github.com/microsoft/vscode-java-debug/issues/753
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Debugger should use project's Java runtime to launch application","articleBody":"Debugger uses the java.home version used to start jdt.ls, instead of the project's target JDK.\r\n\r\n##### Environment\r\n- Operating System: MacOS\r\n- JDK version: any\r\n- Visual Studio Code version: 1.41.x or 1.42.0-insider\r\n- Java extension version: 0.56.0\r\n- Java Debugger extension version: 0.24.0\r\n\r\n##### Steps To Reproduce\r\n1. Have java.home to point to JDK 1.8\r\n2. Have Java 11 installed in /Library/Java/JavaVirtualMachines/ on a Mac, or use vscode-java 0.56.0 and set\r\n```json\r\n\"java.configuration.runtimes\": [\r\n {\r\n \"name\": \"JavaSE-11\",\r\n \"path\": \"/path/to/jdk-11\"\r\n },\r\n```\r\n3. create a Maven project targeting Java 11 (set `\u003cmaven.compiler.source\u003e` and `\u003cmaven.compiler.target\u003e` to 11)\r\n4. run a main class\r\n##### Current Result\r\n\r\n```\r\nError: A JNI error has occurred, please check your installation and try again\r\nException in thread \"main\" java.lang.UnsupportedClassVersionError: org/acme/GreetingResource has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0\r\n```\r\n##### Expected Result\r\nProgram should run using the JDK version set for the given project, without any errors\r\n","author":{"url":"https://github.com/fbricon","@type":"Person","name":"fbricon"},"datePublished":"2020-01-28T13:29:11.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/753/vscode-java-debug/issues/753"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:fe242bed-4c0d-9eea-f1d8-9fc48abfccf0 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DF90:277ED1:103A60A:14F8510:6A5C35A0 |
| html-safe-nonce | 776250fed3ca2844af5f4ed7d507a6ac54c38ea258001e1f62322b6b7cc09437 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJERjkwOjI3N0VEMToxMDNBNjBBOjE0Rjg1MTA6NkE1QzM1QTAiLCJ2aXNpdG9yX2lkIjoiMzgxNDc3MDI0ODc4MTY3Mzg4OCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 26b14001f4e06baa3a5fc2cb1341cdaaa5bd6e5aa867cec25d42d44404547f88 |
| hovercard-subject-tag | issue:556210086 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/microsoft/vscode-java-debug/753/issue_layout |
| twitter:image | https://opengraph.githubassets.com/4b1caf0cd1f2e8affb58d5ce75bdacf5e18f59d40141c005a20ac97b967ea857/microsoft/vscode-java-debug/issues/753 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/4b1caf0cd1f2e8affb58d5ce75bdacf5e18f59d40141c005a20ac97b967ea857/microsoft/vscode-java-debug/issues/753 |
| og:image:alt | Debugger uses the java.home version used to start jdt.ls, instead of the project's target JDK. Environment Operating System: MacOS JDK version: any Visual Studio Code version: 1.41.x or 1.42.0-insi... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | fbricon |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5290d7e14309ad1e76106a9c4237bd1041517e83ea182c8ab756752cb0c6940b |
| turbo-cache-control | no-preview |
| go-import | github.com/microsoft/vscode-java-debug git https://github.com/microsoft/vscode-java-debug.git |
| octolytics-dimension-user_id | 6154722 |
| octolytics-dimension-user_login | microsoft |
| octolytics-dimension-repository_id | 102584737 |
| octolytics-dimension-repository_nwo | microsoft/vscode-java-debug |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 102584737 |
| octolytics-dimension-repository_network_root_nwo | microsoft/vscode-java-debug |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 9c975978430e9ad293956f2bbdaf153b1bd84a99 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width