IntelliJ WSL Gradle accesses wrong partition?

I want to open a Gradle in IntelliJ via WSL2, and up until Configure Successful, there are no problems, but suddenly it wants to open the .gradle folder on another partition. The settings are:

Gradle user home: (\\wsl$\Ubuntu) \home\name\.gradle

Gradle JVM: 11(WSL)

After Configure Successfully the console then displays:

F:\home\name\.gradle\jdks\jdk8u362-b09 doesn't exist

Why is IntelliJ trying to access F even though it previously did everything on WSL? I haven't accessed the F partition in any settings. I've attached the log I was able to copy below. I hope someone can help me with this problem.

Thank you!

Running Gradle on WSL…

> Configure project:

Java: 11.0.18 JVM: 11.0.18+10-post-Ubuntu-0ubuntu122.04(Ubuntu) Arch: amd64

Initializing steps

Executing steps

> Running 'downloadManifest'

> Running 'downloadJson'

> Running 'downloadClient'

> Running 'downloadServer'

> Running 'stripClient'

> Running 'stripServer'

> Running 'merge'

> Running 'rename'

> Running 'mcinject'

> Running 'listLibraries'

> Running 'AccessTransformer'

[11:46:23] [main/INFO]: Access Transformer processor running version 8.0.7+8.0.7+master.43473d43

[11:46:23] [main/INFO]: Command line arguments [–inJar, /home/jessie/.gradle/caches/forge_gradle/minecraft_user_repo/mcp/1.16.5-20210115.111550/joined/mcinject/output.jar, –outJar, /home/jessie/.gradle/caches/forge_gradle/minecraft_user_repo/mcp/1.16.5-20210115.111550/joined/AccessTransformer/output.jar, –atFile, /tmp/FG_ats_14367461809713571107.cfg]

[11:46:23] [main/INFO]: Reading from /home/jessie/.gradle/caches/forge_gradle/minecraft_user_repo/mcp/1.16.5-20210115.111550/joined/mcinject/output.jar

[11:46:23] [main/INFO]: Writing to /home/jessie/.gradle/caches/forge_gradle/minecraft_user_repo/mcp/1.16.5-20210115.111550/joined/AccessTransformer/output.jar

[11:46:23] [main/INFO]: Transformer file /tmp/FG_ats_14367461809713571107.cfg

[11:46:23] [main/WARN]: Found existing output jar /home/jessie/.gradle/caches/forge_gradle/minecraft_user_repo/mcp/1.16.5-20210115.111550/joined/AccessTransformer/output.jar, overwriting

[11:46:27] [main/INFO]: JAR transformation complete /home/jessie/.gradle/caches/forge_gradle/minecraft_user_repo/mcp/1.16.5-20210115.111550/joined/AccessTransformer/output.jar

> Running 'SideStripper'

> Running 'decompile'

Configure successfully

1 vote, average: 1.00 out of 1 (1 rating, 1 votes, rated)
You need to be a registered member to rate this.
Loading...
Subscribe
Notify of
1 Answer
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
brAIny
2 years ago

It looks like IntelliJ is trying to access a different partition than the one you specified in the preferences. This is likely due to a path issue. If you specified an absolute path in the preferences, IntelliJ shouldn't try to access a different partition. It's possible that IntelliJ is using a relative path that is incorrect. Therefore, try specifying an absolute path in the preferences so that IntelliJ doesn't try to access a different partition.