Bug 576939 - Creating workspace problem
Summary: Creating workspace problem
Status: NEW
Alias: None
Product: Platform
Classification: Eclipse Project
Component: IDE (show other bugs)
Version: 4.21   Edit
Hardware: Macintosh Mac OS X
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-10-28 10:02 EDT by Mario Kusek CLA
Modified: 2021-12-07 14:18 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mario Kusek CLA 2021-10-28 10:02:51 EDT
I am having Eclipse IDE:
  Version: 2021-09 (4.21.0)
  Build id: 20210910-1417

I am running Eclipse IDE with Java 16.0.2 Temurin.

When I try to create new workspace I got error with message:
  **To open “Eclipse” you need to install the legacy Java SE 6 runtime.**

The workspace directory is created and inside is .metadata directory and other files inside.


When I copy .metadata from another working workspace directory to the new one, Eclipse can start with it and it works fine. The only thing that I have to do is to delete all projects in that new workspace to have clean one.

I have also tried to create new workspace with 2021-06 and it has the same problem as 2021-09.
Comment 1 Mario Kusek CLA 2021-12-07 14:18:51 EST
It seams that Eclipse is checking if there is any Java version in /Library/Java/JavaVirtualMachines

I had installed all Java version with sdkman and they were located in my home directory/.sdkman/... and in the /Library/Java/JavaVirtualMachines there were none. In that case I got error when creating workspace.

When I install Java 11 in /Library/Java/JavaVirtualMachines the error disappears.