Bob - java.lang.ClassNotFoundException: javax.xml.bind.annotation.adapters.HexBinaryAdapter

Something I can do to fix this?

Exception in thread "main" com.dynamo.bob.CompileExceptionError: javax/xml/bind/annotation/adapters/HexBinaryAdapter
        at com.dynamo.bob.Project.build(Project.java:347)
        at com.dynamo.bob.Bob.main(Bob.java:339)
Caused by: java.lang.NoClassDefFoundError: javax/xml/bind/annotation/adapters/HexBinaryAdapter
        at com.defold.extender.client.ExtenderClientCache.hashToString(ExtenderClientCache.java:175)
        at com.defold.extender.client.ExtenderClientCache.hash(ExtenderClientCache.java:183)
        at com.defold.extender.client.ExtenderClientCache.getHash(ExtenderClientCache.java:49)
        at com.defold.extender.client.ExtenderClientCache.getHash(ExtenderClientCache.java:63)
        at com.defold.extender.client.ExtenderClientCache.calcKey(ExtenderClientCache.java:98)
        at com.defold.extender.client.ExtenderClient.build(ExtenderClient.java:46)
        at com.dynamo.bob.bundle.BundleHelper.buildEngineRemote(BundleHelper.java:387)
        at com.dynamo.bob.Project.buildEngine(Project.java:659)
        at com.dynamo.bob.Project.doBuild(Project.java:762)
        at com.dynamo.bob.Project.build(Project.java:339)
        ... 1 more
Caused by: java.lang.ClassNotFoundException: javax.xml.bind.annotation.adapters.HexBinaryAdapter
        at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(Unknown Source)
        at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(Unknown Source)
        at java.base/java.lang.ClassLoader.loadClass(Unknown Source)
        ... 11 more
Exception in thread "Thread-0" java.lang.RuntimeException: Failed to delete temp directory: C:\Users\Brian\AppData\Local\Temp\8053539896535767771
        at com.dynamo.bob.Bob$1.run(Bob.java:57)
        at java.base/java.lang.Thread.run(Unknown Source)
Caused by: java.io.IOException: Unable to delete file: C:\Users\Brian\AppData\Local\Temp\8053539896535767771\x86_64-win32\texc_shared.dll
        at org.apache.commons.io.FileUtils.forceDelete(FileUtils.java:2279)
        at org.apache.commons.io.FileUtils.cleanDirectory(FileUtils.java:1653)
        at org.apache.commons.io.FileUtils.deleteDirectory(FileUtils.java:1535)
        at org.apache.commons.io.FileUtils.forceDelete(FileUtils.java:2270)
        at org.apache.commons.io.FileUtils.cleanDirectory(FileUtils.java:1653)
        at org.apache.commons.io.FileUtils.deleteDirectory(FileUtils.java:1535)
        at com.dynamo.bob.Bob$1.run(Bob.java:55)
        ... 1 more

Huh! What’s the command line you used? And which version of bob?

1.2.123 on Win 10

java -jar bob.jar --archive --platform js-web resolve distclean build bundle --bundle-output "C:\Users\Brian\Documents\fbinstant_template\_server\serve\js-web" --email foo@bar.com --auth 12345
pause

Hmm, ok, works for me (although on OSX and with a different bundle output path). Java version:

$ java -version
java version "1.8.0_131"
Java(TM) SE Runtime Environment (build 1.8.0_131-b11)
Java HotSpot(TM) 64-Bit Server VM (build 25.131-b11, mixed mode)
java -version
java version "9.0.1"
Java(TM) SE Runtime Environment (build 9.0.1+11)
Java HotSpot(TM) 64-Bit Server VM (build 9.0.1+11, mixed mode)

I’ll setup JavaSetup8u161.exe and see if it helps.

It seems it was the Java version that was the problem with the first exception. There is still the second one.

Exception in thread "Thread-2" java.lang.RuntimeException: Failed to delete temp directory: C:\Users\Brian\AppData\Local\Temp\2474273680139055344
        at com.dynamo.bob.Bob$1.run(Bob.java:57)
        at java.lang.Thread.run(Unknown Source)
Caused by: java.io.IOException: Unable to delete file: C:\Users\Brian\AppData\Local\Temp\2474273680139055344\x86-win32\texc_shared.dll
        at org.apache.commons.io.FileUtils.forceDelete(FileUtils.java:2279)
        at org.apache.commons.io.FileUtils.cleanDirectory(FileUtils.java:1653)
        at org.apache.commons.io.FileUtils.deleteDirectory(FileUtils.java:1535)
        at org.apache.commons.io.FileUtils.forceDelete(FileUtils.java:2270)
        at org.apache.commons.io.FileUtils.cleanDirectory(FileUtils.java:1653)
        at org.apache.commons.io.FileUtils.deleteDirectory(FileUtils.java:1535)
        at com.dynamo.bob.Bob$1.run(Bob.java:55)
        ... 1 more

I tried temp disabling AV but did not help. Not sure what else would be locking the file if anything is.

It does all bundle properly now but messing up on cleanup.

2018-03-20%2001_09_59-x86-win32

I tried forcing the batch file to use admin but doesn’t help.

Batch file is this currently

@echo off
java -jar bob.jar --archive --platform js-web resolve distclean build bundle --bundle-output "%~dp0\_server\serve\js-web" --email foo@bar.com --auth 12345