简体   繁体   English

将JavaFX2导出到Android

[英]Exporting JavaFX2 to Android

i have a stupid question. 我有一个愚蠢的问题。 Its possible to export JavaFX2 to Android. 可以将JavaFX2导出到Android。 I have some Object in my JavaFX2 world and i would like to use this for a simple Android Application. 我的JavaFX2世界中有一些对象,我想将其用于简单的Android应用程序。 I already exported some classes into the Android eg SimpleStringProperty, but with some i getting always an exception org.slf4j.LoggerFactory.getLogger (Ljava/lang/Class;)Lorg/slf4j/Logger; 我已经将一些类导出到Android中,例如SimpleStringProperty,但有些类却总是出现异常org.slf4j.LoggerFactory.getLogger(Ljava / lang / Class;)Lorg / slf4j / Logger;

I will be very happy for every ideas... big thanks!! 每个想法我都会很高兴...非常感谢!

Update: is the amount of classes limited ??? 更新:是否限制了课程数量???

slf4j is a logging wrapper which is unrelated to JavaFX. slf4j是与JavaFX无关的日志记录包装器。

Consult the slf4j documentation and the documentation for whatever logging framework you are wrapping in slf4j to help resolve your problem. 请查阅slf4j文档以及有关在slf4j中包装的任何日志记录框架的文档,以帮助解决问题。 If you include in your question the full stack trace for the error you receive you might be able to get more assistance. 如果您在问题中包括该错误的完整堆栈跟踪,则可能会获得更多帮助。

There is currently (as of JavaFX 2.0) no public port of JavaFX to Android and Android is not a supported platform for JavaFX. 当前(从JavaFX 2.0开始)没有JavaFX到Android的公共端口,并且Android不是JavaFX支持的平台。 For the majority of the JavaFX functionality, I'd advise waiting until when (and if) Oracle release an Android build for JavaFX before trying to use it on Android. 对于大多数JavaFX功能,我建议您等到(以及是否)Oracle发布JavaFX的Android构建,然后再尝试在Android上使用它。

There is a reasonable chance that the property and binding framework from JavaFX (javafx.beans.* packages) would work on Android as that code was designed to work independently of the rest of JavaFX. JavaFX的属性和绑定框架(javafx.beans。*软件包)很有可能在Android上运行,因为该代码旨在独立于JavaFX的其余部分运行。 The property and binding part of JavaFX is currently not open source, though a lot of the rest of the JavaFX source code is. JavaFX的属性和绑定部分当前不是开源的,尽管JavaFX源代码的其余部分很多。 The framework was developed to run on top of JavaSE and not Android, so some Android specific source code changes may be required to allow the JavaFX property and binding framework to run on Android. 该框架是为了在JavaSE而非Android之上运行而开发的,因此可能需要更改某些特定于Android的源代码,以允许JavaFX属性和绑定框架在Android上运行。 Also, before doing something like that I would advise checking the JavaFX license (which is the same as the Java SE license). 另外,在执行类似操作之前,我建议您检查JavaFX许可证 (与Java SE许可证相同)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM