Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Haresh13 opened this issue Sep 13, 2021 · 1 comment

Comments

@Haresh13
Copy link

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
Copy link

Charrey commented Jan 9, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants