How to package project as a jar or apk? i want get a apk witch can run with my phone... #1291
Replies: 2 comments
-
这个问题没那么简单 |
Beta Was this translation helpful? Give feedback.
-
To package a usable JAR with Maven:
To package an APK, you typically use Android Studio and the Android Gradle Plugin. However, if you're trying to run a JavaFX application on Android, there's a project called Gluon which allows you to package and deploy JavaFX applications on mobile platforms, |
Beta Was this translation helpful? Give feedback.
-
i try to package a jar with maven use config below:
<plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>3.10.1</version> <configuration> <release>${source.version}</release> </configuration> </plugin> <plugin> <groupId>org.openjfx</groupId> <artifactId>javafx-maven-plugin</artifactId> <version>${jfx.maven.plugin.version}</version> <configuration> <launcher>App</launcher> <mainClass>${mainClassName}</mainClass> </configuration> </plugin>
and use java -jar command, then it show "not found main class".
there 2 question:
thanks a lot!
(my english is pool , execute me)
Beta Was this translation helpful? Give feedback.
All reactions