I'm pretty new to java programming and I'm trying to run my .jar file with the java command
I'm using gradle to build the .jar and i'm always getting
Error: Could not find or load main class
Here is my file architecture :
And here is my build.gradle in jcoinche_client
group 'jcoinche'
version ''
apply plugin: 'java'
sourceCompatibility = 1.8
jar {
baseName = "jcoinche-client"
manifest {
attributes 'Implementation-Title': 'Gradle Quickstart',
'Implementation-Version': version,
'Main-Class' : 'Main'
}
}
repositories {
mavenCentral()
}
dependencies {
testCompile group: 'junit', name: 'junit', version: '4.12'
}
Thanks for help :)