MIT App Inventor Builld Issue, Punya server

I am getting this issue when I run it. It seems different from what bcapuzzo is getting.

Buildfile: /home/spadezap/Research/punya/appinventor/build.xml

all:

init:

MakeWarLibsDir:

common_CommonUtils:

init:

CommonUtils:

common_CommonVersion:

init:

CommonVersion:

components_CommonConstants:

init:

CommonConstants:

WarLibs:

AiSharedLib:

AiServerLib:

components_AndroidRuntime:

common_CommonVersion:

init:

CommonVersion:

init:

HtmlEntities:

Barcode:

CopyComponentLibraries:

common_CommonUtils:

init:

CommonUtils:

CommonConstants:

AnnotationProcessors:

AndroidRuntime.uptodate:

AndroidRuntime:

AiClientLib:

AiRebindLib:

blocklyeditor_BlocklyTranslationGenerator:

CheckBlocklyTranslations:

init:

CheckBlocklyCompile:

BlocklyCompile:
[java] Exception in thread "main" java.lang.ExceptionInInitializerError
[java] at org.plovr.cli.BuildCommand.runCommandWithOptions(BuildCommand.java:58)
[java] at org.plovr.cli.BuildCommand.runCommandWithOptions(BuildCommand.java:31)
[java] at org.plovr.cli.AbstractCommandRunner.runCommand(AbstractCommandRunner.java:41)
[java] at org.plovr.cli.Command.execute(Command.java:47)
[java] at org.plovr.cli.Main.mainWithExitCode(Main.java:56)
[java] at org.plovr.cli.Main.main(Main.java:30)
[java] Caused by: com.google.inject.internal.util.$ComputationException: java.lang.ExceptionInInitializerError
[java] at com.google.inject.internal.util.$MapMaker$StrategyImpl.compute(MapMaker.java:553)
[java] at com.google.inject.internal.util.$MapMaker$StrategyImpl.compute(MapMaker.java:419)
[java] at com.google.inject.internal.util.$CustomConcurrentHashMap$ComputingImpl.get(CustomConcurrentHashMap.java:2041)
[java] at com.google.inject.internal.FailableCache.get(FailableCache.java:50)
[java] at com.google.inject.internal.ConstructorInjectorStore.get(ConstructorInjectorStore.java:49)
[java] at com.google.inject.internal.ConstructorBindingImpl.initialize(ConstructorBindingImpl.java:125)
[java] at com.google.inject.internal.InjectorImpl.initializeBinding(InjectorImpl.java:507)
[java] at com.google.inject.internal.AbstractBindingProcessor$Processor$1.run(AbstractBindingProcessor.java:159)
[java] at com.google.inject.internal.ProcessedBindingData.initializeBindings(ProcessedBindingData.java:44)
[java] at com.google.inject.internal.InternalInjectorCreator.initializeStatically(InternalInjectorCreator.java:122)
[java] at com.google.inject.internal.InternalInjectorCreator.build(InternalInjectorCreator.java:106)
[java] at com.google.inject.Guice.createInjector(Guice.java:95)
[java] at com.google.inject.Guice.createInjector(Guice.java:72)
[java] at com.google.inject.Guice.createInjector(Guice.java:62)
[java] at com.google.template.soy.GuiceInitializer.initializeIfNecessary(GuiceInitializer.java:55)
[java] at com.google.template.soy.SoyFileSet$Builder.(SoyFileSet.java:141)
[java] at com.google.template.soy.SoyFileSet$Builder.(SoyFileSet.java:125)
[java] at org.plovr.CompileRequestHandler.(CompileRequestHandler.java:33)
[java] ... 6 more
[java] Caused by: java.lang.ExceptionInInitializerError
[java] at com.google.inject.internal.cglib.reflect.$FastClassEmitter.(FastClassEmitter.java:67)
[java] at com.google.inject.internal.cglib.reflect.$FastClass$Generator.generateClass(FastClass.java:72)
[java] at com.google.inject.internal.cglib.core.$DefaultGeneratorStrategy.generate(DefaultGeneratorStrategy.java:25)
[java] at com.google.inject.internal.cglib.core.$AbstractClassGenerator.create(AbstractClassGenerator.java:216)
[java] at com.google.inject.internal.cglib.reflect.$FastClass$Generator.create(FastClass.java:64)
[java] at com.google.inject.internal.BytecodeGen.newFastClass(BytecodeGen.java:207)
[java] at com.google.inject.internal.DefaultConstructionProxyFactory.create(DefaultConstructionProxyFactory.java:53)
[java] at com.google.inject.internal.ProxyFactory.create(ProxyFactory.java:153)
[java] at com.google.inject.internal.ConstructorInjectorStore.createConstructor(ConstructorInjectorStore.java:89)
[java] at com.google.inject.internal.ConstructorInjectorStore.access$000(ConstructorInjectorStore.java:28)
[java] at com.google.inject.internal.ConstructorInjectorStore$1.create(ConstructorInjectorStore.java:36)
[java] at com.google.inject.internal.ConstructorInjectorStore$1.create(ConstructorInjectorStore.java:32)
[java] at com.google.inject.internal.FailableCache$1.apply(FailableCache.java:39)
[java] at com.google.inject.internal.util.$MapMaker$StrategyImpl.compute(MapMaker.java:549)
[java] ... 23 more
[java] Caused by: java.lang.reflect.InaccessibleObjectException: Unable to make protected final java.lang.Class java.lang.ClassLoader.defineClass(java.lang.String,byte,int,int,java.security.ProtectionDomain) throws java.lang.ClassFormatError accessible: module java.base does not "opens java.lang" to unnamed module @163cc7b8
[java] at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:354)
[java] at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:297)
[java] at java.base/java.lang.reflect.Method.checkCanSetAccessible(Method.java:200)
[java] at java.base/java.lang.reflect.Method.setAccessible(Method.java:194)
[java] at com.google.inject.internal.cglib.core.$ReflectUtils$2.run(ReflectUtils.java:56)
[java] at java.base/java.security.AccessController.doPrivileged(AccessController.java:318)
[java] at com.google.inject.internal.cglib.core.$ReflectUtils.(ReflectUtils.java:46)
[java] ... 37 more

BUILD FAILED
/home/spadezap/Research/punya/appinventor/build.xml:16: The following error occurred while executing this line:
/home/spadezap/Research/punya/appinventor/build-common.xml:307: The following error occurred while executing this line:
/home/spadezap/Research/punya/appinventor/blocklyeditor/build.xml:120: Java returned: 1

Total time: 2 seconds

What is the output of javac -version and ant -diagnostics? You are probably compiling with the wrong version of Java.

This post was flagged by the community and is temporarily hidden.

This is what I got

spadezap@rog-laptop:~$ javac -version
javac 17.0.12
spadezap@rog-laptop:~$ ant -diagnostics
------- Ant diagnostics report -------
Apache Ant(TM) version 1.10.12 compiled on January 17 1970


Implementation Version

core tasks : 1.10.12 in file:/usr/share/ant/lib/ant.jar


ANT PROPERTIES

ant.version: Apache Ant(TM) version 1.10.12 compiled on January 17 1970
ant.java.version: 17
Is this the Apache Harmony VM? no
Is this the Kaffe VM? no
Is this gij/gcj? no
ant.core.lib: /usr/share/ant/lib/ant.jar
ant.home: /usr/share/ant


ANT_HOME/lib jar listing

ant.home: /usr/share/ant
jsch.jar (293203 bytes)
ant-apache-oro.jar (10034 bytes)
ant.jar (2256462 bytes)
ant-apache-bcel.jar (15511 bytes)
ant-antlr.jar (12161 bytes)
ant-apache-bsf.jar (10122 bytes)
ant-jdepend.jar (14889 bytes)
ant-swing.jar (13838 bytes)
ant-jmf.jar (12854 bytes)
ant-apache-regexp.jar (9995 bytes)
ant-commons-logging.jar (10136 bytes)
ant-launcher.jar (18707 bytes)
ant-commons-net.jar (89664 bytes)
ant-junit.jar (139919 bytes)
ant-apache-log4j.jar (8744 bytes)
ant-jsch.jar (54435 bytes)
ant-apache-resolver.jar (9907 bytes)
ant-testutil.jar (28550 bytes)
ant-javamail.jar (14499 bytes)
ant-xz.jar (11330 bytes)
ant-apache-xalan2.jar (8401 bytes)
ant-junit4.jar (13624 bytes)


USER_HOME/.ant/lib jar listing

user.home: /home/spadezap
No such directory.


Tasks availability

imageio : Not Available (the implementation class is not present)
image : Not Available (the implementation class is not present)
jdepend : Missing dependency jdepend.textui.JDepend
xz : Missing dependency org.tukaani.xz.FilterOptions
netrexxc : Not Available (the implementation class is not present)
ftp : Missing dependency org.apache.commons.net.ftp.FTPConnectionClosedException
junitlauncher : Not Available (the implementation class is not present)
A task being missing/unavailable should only matter if you are trying to use it


org.apache.env.Which diagnostics

Not available.
Download it at


XML Parser information

XML Parser : com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl
XML Parser Location: unknown
Namespace-aware parser : com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser
Namespace-aware parser Location: unknown


XSLT Processor information

XSLT Processor : com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl
XSLT Processor Location: unknown


System properties

ant.library.dir : /usr/share/ant/lib
java.specification.version : 17
sun.jnu.encoding : UTF-8
java.class.path : /usr/share/ant/lib/ant-launcher.jar:/usr/share/ant/lib/jsch.jar:/usr/share/ant/lib/ant-apache-oro.jar:/usr/share/ant/lib/ant.jar:/usr/share/ant/lib/ant-apache-bcel.jar:/usr/share/ant/lib/ant-antlr.jar:/usr/share/ant/lib/ant-apache-bsf.jar:/usr/share/ant/lib/ant-jdepend.jar:/usr/share/ant/lib/ant-swing.jar:/usr/share/ant/lib/ant-jmf.jar:/usr/share/ant/lib/ant-apache-regexp.jar:/usr/share/ant/lib/ant-commons-logging.jar:/usr/share/ant/lib/ant-launcher.jar:/usr/share/ant/lib/ant-commons-net.jar:/usr/share/ant/lib/ant-junit.jar:/usr/share/ant/lib/ant-apache-log4j.jar:/usr/share/ant/lib/ant-jsch.jar:/usr/share/ant/lib/ant-apache-resolver.jar:/usr/share/ant/lib/ant-testutil.jar:/usr/share/ant/lib/ant-javamail.jar:/usr/share/ant/lib/ant-xz.jar:/usr/share/ant/lib/ant-apache-xalan2.jar:/usr/share/ant/lib/ant-junit4.jar
java.vm.vendor : Ubuntu
sun.arch.data.model : 64
java.vendor.url :
java.vm.specification.version : 17
os.name : Linux
sun.java.launcher : SUN_STANDARD
user.country : US
sun.boot.library.path : /usr/lib/jvm/java-17-openjdk-amd64/lib
sun.java.command : org.apache.tools.ant.launch.Launcher -cp -diagnostics
jdk.debug : release
sun.cpu.endian : little
user.home : /home/spadezap
user.language : en
sun.stderr.encoding : UTF-8
java.specification.vendor : Oracle Corporation
java.version.date : 2024-07-16
java.home : /usr/lib/jvm/java-17-openjdk-amd64
file.separator : /
java.vm.compressedOopsMode : Zero based
line.separator :

sun.stdout.encoding : UTF-8
java.vm.specification.vendor : Oracle Corporation
java.specification.name : Java Platform API Specification
sun.management.compiler : HotSpot 64-Bit Tiered Compilers
java.runtime.version : 17.0.12+7-Ubuntu-1ubuntu222.04
user.name : spadezap
path.separator : :
os.version : 6.8.0-47-generic
java.runtime.name : OpenJDK Runtime Environment
file.encoding : UTF-8
java.vm.name : OpenJDK 64-Bit Server VM
java.vendor.url.bug :
java.io.tmpdir : /tmp
java.version : 17.0.12
user.dir : /home/spadezap
os.arch : amd64
java.vm.specification.name : Java Virtual Machine Specification
ant.home : /usr/share/ant
native.encoding : UTF-8
java.library.path : /usr/java/packages/lib:/usr/lib/x86_64-linux-gnu/jni:/lib/x86_64-linux-gnu:/usr/lib/x86_64-linux-gnu:/usr/lib/jni:/lib:/usr/lib
java.vm.info : mixed mode, sharing
java.vendor : Ubuntu
java.vm.version : 17.0.12+7-Ubuntu-1ubuntu222.04
sun.io.unicode.encoding : UnicodeLittle
java.class.version : 61.0


Temp dir

Temp dir is /tmp
Temp dir is writeable
Temp dir alignment with system clock is 21 ms


Locale information

Timezone Eastern Standard Time offset=-14400000


Proxy information

Java1.5+ proxy settings:
Direct connection

Depending on where you are on master, you will need either Java 8 or Java 11 to build Punya. The update I pushed this morning will compile with Java 11.

I downgraded to 8


Still does not build when I put ant

Your version of ant is reporting Java 17. Currently, the Punya master branch will only compile with Java 11. You need to set up your JAVA_HOME correctly so that ant finds Java 11.


Okay I finally got it to work, thank you!