【问题标题】:Run and Debug Java in WSL 2 with Intellij IDEA on Windows 10在 Windows 10 上使用 Intellij IDEA 在 WSL 2 中运行和调试 Java
【发布时间】:2024-05-21 11:55:02
【问题描述】:

Intellij IDEA 安装在 Windows 上。使用 maven 构建的 java 应用程序需要本地库(带有 JNI)并在 Ubuntu 上运行。

在 Windows 上使用 maven 和 git 很好。如何让 Intellij IDEA 使用 WSL 中的 JDK,以便创建使用 WSL 的运行/调试配置?

【问题讨论】:

标签: java debugging intellij-idea windows-subsystem-for-linux wsl-2


【解决方案1】:

使用 Power Shell 在 WSL 上部署您的应用并进行远程调试

【讨论】:

    最近更新 更多