Baritone: error: package javax.xml.bind does not exist

Created on 16 Feb 2020  路  18Comments  路  Source: cabaletta/baritone

Some information

Operating system: Linux Mint 19.3
Java version: 11
Minecraft version: 1.13.2
Baritone version: Any
Forge mods (if used): N/A

Exception, error or logs

I can't build from the github source, READMEs unhelpful.
error: package javax.xml.bind does not exist

How to reproduce

Try to build by running ./gradlew

Final checklist

  • [x] I know how to properly use check boxes
  • [x] I have included logs, exceptions and / or steps to reproduce the issue.
  • [x] I have not used any OwO's or UwU's in this issue.
bug

All 18 comments

What is the exact output of java -version?
And make sure you have a java compiler installed

README unhelpful

the readme tells you to read INSTALL for building it yourself

also in order to build you have to run ./gradlew build
I missed that in my first comment.

I did ./gradlew build
I have OpenJDK 11.

Please list the full output of java -version.

I was gonna suggest to use jdk8, but I wanted to be sure they had a javac installed first.

nevermind, had to install openjdk-8-jdk, and set the java/jdk path in the gradlew file to the location of my java 8 installation rather than the default java 11
But now the task :proguard failed.

With what error?

1

Post the full error log.

I think I forgot to run ./gradlew setupDecompWorkspace, so I'm doing that now

That succeeded

> Task :proguard FAILED
Task ':proguard' is not up-to-date because:
  Task has not declared any outputs despite executing actions.
Running Determinizer
 Input path: /home/adam/Desktop/baritone/build/libs/baritone-1.2.11.jar
 Output path: /home/adam/Desktop/baritone/build/libs/baritone-unoptimized-1.2.11.jar
:proguard (Thread[Task worker for ':',5,main]) completed. Took 0.224 secs.

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':proguard'.
> 1

I have this same error when building on Linux, but it builds fine on Windows.

Works on Linux for me. Make sure you're using Oracle JDK 8 which is what I'm testing on.

@S-B99 Thanks, this fixed it.

Resolved.

Was this page helpful?
0 / 5 - 0 ratings