-
-
Notifications
You must be signed in to change notification settings - Fork 96
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
Gradle Task :bootRun fails: Error: Could not find or load main class #115
Comments
and are you using Java 8 or any other version? Is it because of Windows path issue? |
Yes, I am using Java 8 in Windows. I am not sure what you mean by Windows path issue. Note that |
@eeriksp I think you have hit the same issue as jhipster/generator-jhipster#9572. This has been fixed in JHipster 6.0.0 final release. Can you please try and remove the whole block stating with NOTE: We should also remove the respective block from jhipster-kotlin/generators/server/templates/gradle/kotlin.gradle.ejs Lines 68 to 73 in 7130b5e
|
Thank you! |
@eeriksp Glad it did and thanks for reporting back!!! |
When running
./gradlew
on Windows 10 using JHipster 6.0.0-beta.0 for a newly created project, the script fails:When looking at the bootRun task:
it seems that the Kotlin directory is not included. I tried to add
"$buildDir/classes/kotlin/main"
at the beginning of the classpath, but although the needed class is clearly there, it made no difference.Note that
./gradlew bootJar
produces a functional.jar
file and running it withjava -jar build/libs/appname-0.0.1-SNAPSHOT.jar
works.[ x ] Checking this box is mandatory (this is just to show you read everything)
The text was updated successfully, but these errors were encountered: