Martynas Jusevičius
Martynas Jusevičius

Reputation: 612

Using a project on the WSL2 filesystem with NetBeans

I'm using WSL2 (Windows Subsystem for Linux) Ubuntu 18.04 on Windows 10. I'm also using NetBeans 12.1.

How do I open a project that is located on the WSL filesystem with NetBeans? In Windows Explorer the filesystem is accessible as \\wsl$, but how do I get NetBeans to open that?

Upvotes: 2

Views: 3825

Answers (2)

Tahiaji
Tahiaji

Reputation: 430

You can try to mount WSL folder as a network drive.

enter image description here

For example, I mounted \\wsl.localhost\Ubuntu as U:\ network drive and have access to my projects folder as U:\projects

Projects can now be correctly added to NetBeans and can be worked on.

Upvotes: 2

Joachim Rohde
Joachim Rohde

Reputation: 6045

As a workaround you could create a shortcut for \wsl$ (on the desktop, e.g.), open the shortcut in the "open project" dialog and navigate from there.

Upvotes: 5

Related Questions