Skip to content
New issue

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 config in both windows and linux #213285

Closed
petercao opened this issue May 23, 2024 · 3 comments
Closed

JDK config in both windows and linux #213285

petercao opened this issue May 23, 2024 · 3 comments
Assignees

Comments

@petercao
Copy link

I need to work both in windows and linux(such as archlinux),
So when I switch from windows to linux, I need to reconfig JDK path in settings.json config file,
but when I reswitch to windows, I need to change JDK config path to windows format again,
So do we have some kind of argument that both can config for linux and windows, such as:

**/// JDK config for windows**
"java.jdt.ls.androidSupport.enabled": "on",
"java.jdt.ls.java.home.windows": "D:\\Program Files\\Java\\jdk-17",
"java.configuration.runtimes": [
	{
		"name": "JavaSE-17",
		"path": "D:\\Program Files\\Java\\jdk-17",
		"default": true
	}
],

/// JDK config for linux
"java.jdt.ls.java.home.linux": "/jdk-17",
"java.configuration.runtimes": [
{
"name": "JavaSE-17",
"path": "
/jdk-17",
"default": true
}
],

and it will read current system os info and auto switch to corresponding configurations?
Can we?

@gjsjohnmurray
Copy link
Contributor

See #5595 for a long time requested generic feature.

Meanwhile this probably needs to be handled by the Javat extension(s).

@dbaeumer
Copy link
Member

@petercao can you please open a corresponding issue here: https://github.com/redhat-developer/vscode-java

@petercao
Copy link
Author

@dbaeumer I just create a new issue in vscode-java project:
redhat-developer/vscode-java#3660

@microsoft microsoft locked and limited conversation to collaborators Jul 7, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants