https://kotlinlang.org logo
c

carlw

04/07/2017, 10:50 AM
Has anyone run a TornadoFX app from a JAR using Intellij's Build Artifacts command? I exported a module with dependencies by am getting a "Could not find or load class". I tried both the App and the AppKt classes which are both in the JAR Fixed a spelling error...getting this now Error: Main method not found in class at.ArduinoTalkKt, please define the main method as: public static void main(String[] args) or a JavaFX application class must extend javafx.application.Application I have a subclass of App UPDATE: I'm up and running. For some reason, I couldn't get my companion object to work, so I just added the following main(). I specify the Kt class in the manifest. ArduinoTalk is an App subclass in a file named ArduinoTalk. fun main(args : Array<String>) { Application.launch(ArduinoTalk::class.java) }