laforlife.blogg.se

Convert kotlin to java intellij
Convert kotlin to java intellij











➜ jar git:(master) ✗ java -jar 'test.jar'Įrror: Could not find or load main class.

convert kotlin to java intellij

When I force my own manifest into the jar, I get this error: Here is the first few rows of the manifest file now residing in META-INF/ Manifest-Version: 1.0īundle-SymbolicName: .jackson-jaxrs-base The META-INF is overwritten by one of the dependencie's version (Jackson) Then do Build > Build Artifacts and select your Jar artifact.ġ.Click ok and let idea make your manifest file.In 'Project Structure', click Add > Jar > From Modules with Dependencies, then click the 3 dots next to main class and select your kotlin file (that has a main function).But the reading up on Android development Ive done has focused on using Layouts and Fragments and never mentions using Compose UI. The default MainActivity was generated using Jetpack and the Composable annotation. When I try to make a JAR out of it I do the following: Ive just started a new project (KMM but mostly focusing on the Android app with the first round of development).

convert kotlin to java intellij

I have a mixed Java/Kotlin project, with a Gradle build set up, as well as some dependencies in Maven. I can't share the full project so I'm going to be as specific as I can. I was especially surprised since most java-related builds were relatively self-explanatory on Idea, this is the first time I get issues while building. It seems like nowhere there are actually tutorials trying to create a jar file with a Kotlin-file as main class.

convert kotlin to java intellij

This may seem like a obvious question, yet after an hour of trying to fix it and a few hours before that last week I still can't figure it out.













Convert kotlin to java intellij