Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Eclipse 2020-12 can not create workspace in a WSL2 share
Eclipse 2020-12 can not create workspace in a WSL2 share [message #1836164] Tue, 22 December 2020 22:21 Go to next message
Mr Cur is currently offline Mr CurFriend
Messages: 32
Registered: September 2014
Member
In Windows, WSL2 allows you to run a linux distro (in my case Ubuntu 20.04.1 LTS).
Using the share name \\WSL$\<distr- name>, you can access linux files from Windows.

I have created in WSL2 a directory with sufficient access right. With tools such as Notepad++ (or IntelliJ) (running under Windows) I can then can read and save files via the \\WSL$\<distr- name>\<dir-name> share in Linux/WSL2.

However, Eclipse (20-12) fails. I already can not create a workspace, with the error "Could not launch the product because the specified workplace cannot be created. The specified workspace directory is either invalid or read-only".

If I map the share with a drive letter (which succeeds), I also can not create a workspace (while e.g. Notepad++ can create files).

Why does Eclipse not work with WSL2 networkk shares and for example NotePad++ does?

Best,

-- Jaap
Re: Eclipse 2020-12 can not create workspace in a WSL2 share [message #1849190 is a reply to message #1836164] Thu, 06 January 2022 19:48 Go to previous messageGo to next message
Erica Kane is currently offline Erica KaneFriend
Messages: 1
Registered: January 2022
Junior Member
Try mapping \\$wsl\<your distribution> to a network drive, for example, W: .
Re: Eclipse 2020-12 can not create workspace in a WSL2 share [message #1851959 is a reply to message #1836164] Sat, 23 April 2022 00:59 Go to previous messageGo to next message
Tiago Aquino is currently offline Tiago AquinoFriend
Messages: 2
Registered: April 2022
Junior Member
Try add this in the end of eclipse.ini:

-Dosgi.locking=none
Re: Eclipse 2020-12 can not create workspace in a WSL2 share [message #1851960 is a reply to message #1836164] Sat, 23 April 2022 01:04 Go to previous message
Tiago Aquino is currently offline Tiago AquinoFriend
Messages: 2
Registered: April 2022
Junior Member
The problem is that \\wsl$ directory currently dont support LockFileEx syscall. Another alternative is install you own samba server on WSL2
Previous Topic:ABAP: Not Able to Debug
Next Topic:disappearing buttons
Goto Forum:
  


Current Time: Tue Aug 16 13:33:37 GMT 2022

Powered by FUDForum. Page generated in 0.03265 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top