Open prashantsharma04 opened 3 years ago
cc @shs96c
The link to the repro 404's for me, but I've seen this before when someone was using a vanilla javatool chain rather than one of the regular ones. Can you please share your host_javabase
, javabase
, host_java_toolchain
, and java_toolchain
if they've been changed?
you can also try with
bazel run --java_toolchain=@bazel_tools//tools/jdk:toolchain_java8 --define "maven_repo=file://$HOME/.m2/repository" //multiplication:mul.publish
@shs96c @dmivankov This error still happens to me, my local_jdk is jdk8 too. This is my bazelrc configuration about java toolchain:
build --javabase=@local_jdk//:jdk
build --host_javabase=@local_jdk//:jdk
build --java_toolchain=@bazel_tools//tools/jdk:toolchain_vanilla
build --host_java_toolchain=@bazel_tools//tools/jdk:toolchain_vanilla
But it may not be the problem of vanilla javatool chain, because when i change javabase&host_javabase to remote_jdk11, it works perfectly, just like:
build --javabase=@bazel_tools//tools/jdk:remote_jdk11
build --host_javabase=@bazel_tools//tools/jdk:remote_jdk11
build --java_toolchain=@bazel_tools//tools/jdk:toolchain_vanilla
build --host_java_toolchain=@bazel_tools//tools/jdk:toolchain_vanilla
I'm happy to take a PR to help fix this, but since Java 8 has been EoL'd (and only has extended support from Oracle now), Bazel itself has switched to Java 11, Java 17 is the current LTS release, and I've not got a huge amount of time to dig into the issue, this is a low priority for me.
If you'd like to chat about getting familiar with the code and figuring out what needs to be done, I'm nearly always in the Bazel Slack channels during UK working hours, and I'm happy to help there.
Description of the problem / feature request:
"javadoc: error - Cannot find doclet class com.sun.tools.doclets.standard.Standard"
Feature requests: what underlying problem are you trying to solve with this feature?
Bugs: what's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
bazel run --define "maven_repo=file://$HOME/.m2/repository" //multiplication:mul.publish
What operating system are you running Bazel on?
What's the output of
bazel info release
?Links to my code