我有一个jar文件,当我点击该jar文件时,它打开了一个基于窗口的应用程序.
@H_404_12@解决方法
现在我想将此jar文件转换为apk文件.
那个jar文件有5个类文件.
我怎么知道初始类文件?和
我怎么能在android上编码呢?
请只做那些需要的.
提前致谢.
How can I know the initial class file?
请阅读http://docs.oracle.com/javase/tutorial/deployment/jar/appman.html.您应该看看以下部分:
If you have an application bundled in a JAR file,you need some way to
indicate which class within the JAR file is your application’s entry
point. You provide this information with the Main-Class header in the
manifest,which has the general form:…….
回答你的下一个问题:
How could I code on this in android?
将JAR文件导入Android Project.您可以从Manifest文件获取JAR的入口点(不是AndroidManiefst.xml,而是来自JAR的Manifest).但是,你提到:
it was opened one window based application.
看起来这5个类依赖于某些不同的JAR,这些JAR在Android平台上无法使用.