java.util.Base64

57 views
Skip to first unread message

Lautaro Brasseur

unread,
May 27, 2017, 11:36:06 PM5/27/17
to TeaVM
I'm trying to implement java.util.Base64 class because I need doing Base64 encoding in my project.

I downloaded Base64 file from OpenJDK, and copied it to org.teavm.classlib.java.util.TBase64 into classlib project. I built TeaVM running:

mvn clean install -DskipTests -Dteavm.build.all=false
 
I tried doing it on 0.4.3 tag version, but I see that pom.xml files have a 1.0-SNAPSHOT version there. Of course, when I use 0.4.3 version, my changes are not there.

I also tried making the changes on master, 0.5.0-SNAPSHOT version (I needed to change my ResourceSupplier implementation), but I get this error:

java.lang.NoSuchMethodError: org.teavm.vm.spi.TeaVMHost.getExtension(Ljava/lang/Class;)Lorg/teavm/vm/spi/TeaVMHostExtension;

I'm using this gradle plugin: https://github.com/edibleday/teavm-gradle-plugin (executing gradle teavmc)

Might it be some version incompatibility due to Gradle plugin usage? Is there some tag/branch that I can use to build 0.4.2 ?

Thanks

Lautaro

Alexey Andreev

unread,
May 27, 2017, 11:40:06 PM5/27/17
to te...@googlegroups.com


I also tried making the changes on master, 0.5.0-SNAPSHOT version (I needed to change my ResourceSupplier implementation), but I get this error:

java.lang.NoSuchMethodError: org.teavm.vm.spi.TeaVMHost.getExtension(Ljava/lang/Class;)Lorg/teavm/vm/spi/TeaVMHostExtension;

I'm using this gradle plugin: https://github.com/edibleday/teavm-gradle-plugin (executing gradle teavmc)

Might it be some version incompatibility due to Gradle plugin usage? Is there some tag/branch that I can use to build 0.4.2 ?
Gradle support is unofficial. You can try to clone teavm-gradle-plugin sources and update them to use latest TeaVM (possible, some trivial modifications of source code also required). I'm not responsible for this project. The only official way to build project with TeaVM is using Maven plugin.

Lautaro Brasseur

unread,
May 28, 2017, 6:56:39 PM5/28/17
to TeaVM
I cloned the Gradle plugin, changed the TeaVM version from 0.4.3 to 0.5.0-SNAPSHOT and it worked.
Reply all
Reply to author
Forward
0 new messages