[英]Run and Debug Java in WSL 2 with Intellij IDEA on Windows 10
Intellij IDEA is installed on Windows. Intellij IDEA 安装在 Windows 上。 The java application built with maven requires native libraries (with JNI) and runs on Ubuntu.
使用 maven 构建的 java 应用程序需要本机库(带有 JNI)并在 Ubuntu 上运行。
Using maven and git on Windows is fine.在 Windows 上使用 maven 和 git 很好。 How can I point Intellij IDEA to use the JDK from WSL so I can create a run/debug configuration that uses the WSL?
如何让 Intellij IDEA 使用 WSL 中的 JDK,以便创建使用 WSL 的运行/调试配置?
Deploy your app on WSL with Power Shell, and remote debug使用 Power Shell 在 WSL 上部署您的应用,并进行远程调试
More details: https://www.jetbrains.com/help/idea/2021.1/how-to-use-wsl-development-environment-in-product.html更多详情: https://www.jetbrains.com/help/idea/2021.1/how-to-use-wsl-development-environment-in-product.html
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.