Execution failed for task ':compileWidgets'

Hi all,
i started this project after a few weeks and i found this problem, does anyone know how to get out of it??
Below I report the exception I encountered and the gradle build if it could be of interest:

--------------------CONSOLE OUTPUT-----------------------

> Task :compileWidgets FAILED

Error: Could not find or load main class@C:…\IdeaProjects\webcontrolpanel\build\tmp\compile-widget-set-classpath.dat

Execution failed for task ‘:compileWidgets’.
> Process ‘command ‘C:\Program Files\Java\jdk1.8.0_121\bin\java.exe’’ finished with non-zero exit value 1

----------------------build.gradle----------------------------

plugins {
id ‘io.jmix’ version ‘1.4.1’
id ‘java’
id “com.github.johnrengelman.shadow” version “7.1.2”
}

jar {
manifest {
attributes(
‘Main-Class’: ‘com.company.controlpanel.ControlpanelApplication’
)
}
}

apply plugin: ‘org.springframework.boot’

jmix {
bomVersion = ‘1.2.4’
}

group = ‘com.company’
version = ‘0.0.1-SNAPSHOT’

repositories {
mavenCentral()
maven {
url ‘https://global.repo.jmix.io/repository/public
}
}

dependencies {
implementation(“io.jmix.ui:jmix-ui-widgets”)

implementation 'io.jmix.core:jmix-core-starter'
implementation 'io.jmix.data:jmix-eclipselink-starter'
implementation 'io.jmix.ui:jmix-ui-starter'
implementation 'io.jmix.ui:jmix-ui-data-starter'
implementation 'io.jmix.security:jmix-security-starter'
implementation 'io.jmix.security:jmix-security-ui-starter'
implementation 'io.jmix.security:jmix-security-data-starter'
implementation 'io.jmix.localfs:jmix-localfs-starter'

implementation 'org.springframework.boot:spring-boot-starter-web'


testImplementation('org.springframework.boot:spring-boot-starter-test') {
    exclude group: 'org.junit.vintage', module: 'junit-vintage-engine'
}
implementation("io.jmix.rest:jmix-rest-starter")
implementation("io.jmix.security:jmix-security-oauth2-starter")
themes("io.jmix.ui:jmix-ui-themes")
implementation("io.jmix.ui:jmix-ui-themes")

//Dipendenze per httpclient
implementation("com.google.code.gson:gson:2.9.0")
implementation("org.apache.httpcomponents:httpclient:4.5.13")
implementation("com.mashape.unirest:unirest-java:1.4.9")

implementation("junit:junit:4.13.2")
implementation("io.jmix.ui:jmix-charts-starter")
widgets("io.jmix.ui:jmix-charts-widgets")
widgets("io.jmix.ui:jmix-ui-widgets")
implementation("com.microsoft.sqlserver:mssql-jdbc")
implementation("io.jmix.quartz:jmix-quartz-starter")
implementation 'org.springframework.boot:spring-boot-starter-quartz'

implementation 'org.mybatis:mybatis:3.5.9'

}

test {
useJUnitPlatform()
}

compileWidgets {
generate “com.company.controlpanel.widgets.CustomWidgetSet”
includePaths("/io/jmix//widget/", "/com/company/controlpanel/widgets/**")
}

Might be not the same cause but I had a problem with the similar error message several months ago. The problem was the length respectively the naming of my root directory. Using a very short path and avoiding ANY space in the naming of the directories, it immediately worked. I remember having seen, that this bug suppose to be fixed, but try to call up a saved project with a very deep diroctory structure recently failed.

So even if it might not be best practice simply retry project setup with something like “C:\Development\myproct”.

good luck,

Michael

Thanks for the advice, I put the project directly under c:/ but the problem persists :frowning:

hi Leonardo, here is my previous thread: https://forum.jmix.io/t/compilewidgets-failed-for-jmix-1-22-and-charts-plugin/1361. I forgot to mention, that there is also a setting which should be taken in consideration.

Good luck

Yes, I saw a similar error in the forum and it was fixed with:

"compileWidgets {
shortClassPath = false

}".

Once I start the project with this change, I have another exception and it is the following:

> Task :compileWidgets FAILED
Compiling module com.company.controlpanel.widgets.CustomWidgetSet
[ERROR] Hint: Check that your module inherits ‘com.google.gwt.core.Core’ either directly or indirectly (most often by inheriting module ‘com.google.gwt.user.User’)

I also tried to add the dependency of ‘com.google.gwt.core.Core’ but without success…