我开发了一个核心Java项目。现在我需要将核心Java代码更改为用于phonegap应用程序的jQuery格式。这个代码转换是因为我使用的是stjs项目,它不运行java代码 - 例如System
,HashMap
,ArrayList
等等。它只允许变量和setter和getter方法创建js文件。
如果我走的是正确的道路,请你建议我吗?我得到以下例外:
Exception in thread "main" org.stjs.generator.MultipleFileGenerationException:
The usage of the class java.lang.System is not allowed.
If it's one of your own bridge types, please add the annotation
@STJSBridge to the class or to its package.(Mytest.java:19)