cuba-platform / cuba-gradle-plugin

Gradle plugin for building CUBA platform and applications
https://www.cuba-platform.com
Apache License 2.0
15 stars 18 forks source link

Could not find or load main class com.haulmont.gradle.classpath.ClassPathCommandLine #157

Open Haresh13 opened 3 years ago

Haresh13 commented 3 years ago

So I'm working with a team on a project using CUBA platform and when i clone (the working project) , it doesn't work on my computer even though it works for the other teammates. The errors are as follows

Could not find or load main class com.haulmont.gradle.classpath.ClassPathCommandLine

Execution failed for task ':app-web-toolkit:buildWidgetSet'.

Process 'command 'C:\Program Files\Java\jdk1.8.0_201\bin\java.exe'' finished with non-zero exit value 1

The (shortClassPath = true ) technique is already utilized .

I've tried the sollutions from : https://doc.cuba-platform.com/manual-latest/widgetset_win_path_too_long.html

Ide : Intelij IDEA 2021.2.1

Capture

Charrey commented 1 year ago

Did you find a solution to this? I'm encountering the same problem.

EDIT: I examined the IntelliJ log and it turned out that the gradle.properties file could not be read if the file path contained a special character (letter with accent). Since my Windows user directory contains a special character like that, the build failed. Setting the .gradle directory to a different place (in the Intellij settings) worked.