Trying to bundle my testapp with FXLauncher, but I...
# tornadofx
o
Trying to bundle my testapp with FXLauncher, but I think I get the main class wrong.
Copy code
class TestApp : App(MyView::class)

fun main(args: Array<String>) {
    Application.launch(TestApp::class.java, *args)
}
pom.xml
<app.mainClass>package.TestAppKt</app.mainClass>
This should work?
c
What is the error message? What is the path of the file(s) with TestApp and main relative to the source root?
o
ah, yes. I get
Class fxlauncher/Launcher not found.
and`Exception in thread "main" java.lang.NoClassDefFoundError: kotlin/jvm/internal/Intrinsics`
at package.TestAppKt.main(TestApp.kt)
when running java -jar testapp-1.0-SNAPSHOT.jar
Well. I fucked up. Classes where never compiled, but did not get any errors from Intellij. Adding <jvmTarget>1.8</jvmTarget> to the kotlin-maven-plugin is a step closer to getting a propper jar.