How to build executable jar file to run standalone on jvm? I tried to build it with IDEA Artifacts, but it doesn't find main class.
I also tried to make java class named Main, define there psv main method, call kotlin code using java and build it via DEA Artifacts . It build’s, but running this jar causes java.io.FileNotFoundException(i have to read 2 txt files in jar file). Debug and Run mode run’s in IDEA well.
p.s. i read my files via var sc = Scanner(File(filename))
var arr = sc.nextLine().split(" "); and so on. It doesn’t work only in jar…