konsoletyper / teavm

Compiles Java bytecode to JavaScript, WebAssembly and C
https://teavm.org
Apache License 2.0
2.61k stars 263 forks source link

can teavm support android 7.0 jre version(which is based on openjdk 8)? #295

Open radxe opened 7 years ago

radxe commented 7 years ago

Hello, can teavm support android 7.0 jre version(which is based on openjdk 8)? thanks!

konsoletyper commented 7 years ago

What do you mean?

radxe commented 7 years ago

dear konsoletyper, j2objc (like gwt) have been ported to android 7 jre version, so I just want to know if teavm has some similar plan. then we can use j2objc and teavm same jre, I don't like gwt, it is too slowly, and huge, but there is gwt material design components based on gwt, the gwt material design demo link is http://gwtmaterialdesign.github.io/gwt-material-demo/, it has good looking, does teavm has similar components?

thanks!

radxe commented 7 years ago

dear konsoletyper, I use android studio, does teavm support android studio next version? and support tomcat server? thanks!

konsoletyper commented 7 years ago

j2objc (like gwt) have been ported to android 7 jre version

I don't know what you are talking about. Obviosly, GWT can't run on vanilla JRE, so it might be GWT port of Android JRE, right? TeaVM uses its own implementation of Java class library, ported from Apache Harmony. Here is a list of supported classes: http://teavm.org/jcl-support/0.5.x/jcl.html If you need some more classes, you can create an issue or ask me directly (info@teavm.org).

material design components based on gwt

No, there's no such thing for TeaVM, nor I had any plans to port it. But it looks quite interesting, may be I'll investigate this project deeper and change my mind. Also, you can try to get sources of material design components for GWT and port it to TeaVM (this can be quite challenging).

And one more thing. If you are really determined to use TeaVM in production and lack of the library is the only show-stopper, please, tell me, and I'll put more of my time to porting material design components. We can discuss this deeper in gitter chat.

I use android studio, does teavm support android studio next version? and support tomcat server? thanks!

I don't know. I did not investigate Android studio much, but its project structure looks weird to me. There aren't things similar to IDEA, facets in particular. But TeaVM supports IDEA community, which is free. IDEA community lacks Tomcat support, but TeaVM itself is not bound to Tomcat or any other web server. TeaVM generates static JS files which you can open directly from filesystem. Just create a corresponding html page with <script> tags which point to a corresponding location.

radxe commented 7 years ago

dear konsoletyper, yes, j2objc is like gwt, gwt convert java to javascript, j2objc convert java to objective c(iOS), I look http://teavm.org/jcl-support/0.5.x/jcl.html, it is enough for me, actually I want to use teavm to port some android code, so I think if teavm use android 7 jre(I means some smaller version, not the whole jre), it will be easier, but http://teavm.org/jcl-support/0.5.x/jcl.html is ok . gwt material design components has many many components, and support animate ,style and chart. but I really don't like gwt, it is too complex and slowly, I like teavm, it is clean, fast. we know IDEA community is free, but android studio update very fast, I develop android app also, android studio is based on IDEA community, so I think teavm just change a little, teavm can support android studio.

thanks for your quickly response!