在 Android 上运行 J2SE 应用程序 J2SE for Android (Swing for Android)

码农软件 · 软件分类 · Java开发工具 · 2019-11-06 11:44:39

软件介绍

简介

  1. 该库提供J2SE的Swing、AWT等类的安卓实现,引用该库便能在Android上运行J2SE应用程序。

  2. 该库实现大多数必需功能,但不是全部的J2SE。

  3. 成功示例HomeCenter服务器,该服务器基于J2SE,同时完全运行于Android之上。

使用指引

  1. 该库依赖于开源工程HomeCenter。

  2. 它不含Activity,需另建Android工程,并引用本库。

  3. Activity和res需作为参数,传给本库,调用入口参见"hc.android.J2SEInitor.init(Object[] p)"。

  4. 本库res目录需复制到对应Android工程下的res目录下。

注意事项

  1. 通常,工程在dex时,如含java或javax为前缀的包名,需开启"--core-library",否则报错。

  2. 本库自带"dx.jar",已移除上述限制代码,所以工程无需配置"--core-library",直接编译、调试。

  3. 将"[adt]/sdk/build-tools/android-X.X/lib/dx.jar"备份后,用本"dx.jar"覆盖即可。

本文地址:https://codercto.com/soft/d/18387.html

Effective Modern C++

Effective Modern C++

Scott Meyers / O'Reilly Media / 2014-12 / USD 49.99

Learn how to program expertly with C++ with this practical book from Scott Meyers, one of the world's foremost authorities on this systems programming language. Scott Meyers takes some of the most dif......一起来看看 《Effective Modern C++》 这本书的介绍吧!

Base64 编码/解码
Base64 编码/解码

Base64 编码/解码

SHA 加密
SHA 加密

SHA 加密工具

XML、JSON 在线转换
XML、JSON 在线转换

在线XML、JSON转换工具