When I try to run ./gradlew run, I am getting the following error...
> Task :run FAILED
Error: Could not find or load main class com.liljaw.desktop.CliTestApp
Caused by: java.lang.ClassNotFoundException: com.liljaw.desktop.CliTestApp
我的梯度项目是一个多模块建设,定义如下......
建设。 梯度
plugins {
id application
}
allprojects {
group com.liljaw
}
subprojects {
apply plugin: java
sourceCompatibility = 1.8
}
project( :desktop ) {
dependencies {
implementation project( :core )
}
}
application {
mainClass = com.liljaw.desktop.CliTestApp
}
情况。 梯度
rootProject.name = LilJaw
include core
include desktop
主要项目下的桌面文件结构如下......
desktop
├── run.sh
└── src
└── main
└── java
└── com
└── liljaw
└── desktop
├── CliTestApp.java
├── JavaLogInterface.java
├── PcmFloatPlayer.java
└── SourceDataLineTest.java
究竟是什么错了,因此我无法从终点站接手申请?