Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 800
Martynas Jusevičius Avatar asked Dec 31 '25 17:12

Martynas Jusevičius


2 Answers

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.

like image 101
Joachim Rohde Avatar answered Jan 02 '26 08:01

Joachim Rohde


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.

like image 21
Tahiaji Avatar answered Jan 02 '26 07:01

Tahiaji



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!