I have a simple script
package com.lapots.game.journey.ims.example fun main(args: Array<String>) { println("Hello, world!") }
And here is the gradle task
task runExample(type: JavaExec) { main ='com.lapots.game.journey.ims.example.Example' classpath = sourceSets.main.runtimeClasspath }
But when I try to run the gradle runExample task, I get an error
Error: Could not find or load main class com.lapots.game.journey.ims.example.Example
What is the correct way to run the application?
source share