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.

jdk incubator module cannot be resolved

See original GitHub issue

Trying to use OpenJDK project Panama’s new incubator module for native memory/function access, VSCode shows “The import jdk.incubator cannot be resolved”.

Screen Shot 2019-11-15 at 4 46 48 PM
Environment
Steps To Reproduce

In general, create a project use jdk incubator module should see this

Be more specific to this,

  1. Obtain a build for project panama foreign-abi branch
  2. Set up maven toolchain
<toolchains>
	<!-- JDK toolchains -->
	<toolchain>
		<type>jdk</type>
		<provides>
			<version>14</version>
			<vendor>panama.mem</vendor>
		</provides>
		<configuration>
			<jdkHome>path to the build here</jdkHome>
		</configuration>
	</toolchain>
</toolchains>
  1. Open attached sample project attach a sample project sample.zip
Current Result

maven build works fine, but VSCode shows “The import jdk.incubator cannot be resolved” on import lines and code using API from the module are shown as cannot be resolved.

Expected Result

Package and APIs are resolved

Additional Informations

It would be helpful be able to tweak javac options like --add-modules, --add-exports in workspace setting for simple projects like testing.

Set java.home just is not enough.

In order for this project to build with VSCode, I am forced to create maven project so that I can add this compiler options.

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:5
  • Comments:5

github_iconTop GitHub Comments

1reaction
koutheircommented, Feb 5, 2021

Any progress so far for supporting --add-exports?

0reactions
Tandolfcommented, Mar 11, 2022

Any response from any of the maintainers? is there any plans on support for this

Read more comments on GitHub >

github_iconTop Results From Across the Web

The jdk.incubator.httpclient module not found in Java11
Since being a standard module the java. net. http module shall be resolved by default.
Read more >
How to run the Java Incubator Module from the ... - Foojay
In this article, we explored how the Java incubator modules can be run through command line and using IDE, such as IntelliJ IDEA....
Read more >
1815935 – Eclipse (4.15) will not start with java-openjdk 14
Hi, we identified a bug with the curves a while ago, currently testing a candidate fix for the issue. It was caused by...
Read more >
jdk.incubator.vector (Java SE 18 & JDK 18) - Oracle Help Center
declaration: module: jdk.incubator.vector, package: jdk.incubator.vector. ... A vector is a sequence of a fixed number of lanes, all of some fixed element ...
Read more >
562569 – Do not show WARNING: Using incubator modules
incubator.foreign, jdk.incubator.jpackage Please check your .ini file. Doesn't look like a JDT issue. Maybe Platform should discuss if they find a way to...
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