Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: LinkageError occurred while loading main class com.google.devtools.build.lib.bazel.Bazel java.lang.ExceptionInInitializerError: null #6726

Closed
PanJinquan opened this issue Nov 21, 2018 · 3 comments
Labels
area-EngProd Bazel CI, infrastructure, bootstrapping, release, and distribution tooling P1 I'll work on this now. (Assignee required) team-OSS Issues for the Bazel OSS team: installation, release processBazel packaging, website type: bug

Comments

@PanJinquan
Copy link

PanJinquan commented Nov 21, 2018

Hi, I follow the tutorial
$ chmod +x bazel-0.18.0-installer-linux-x86_64.sh $ ./bazel-0.18.0-installer-linux-x86_64.sh
but it gives me a new error like following,
[Commit](https://github.com/bazelbuild/bazel/commit/d13df47) Uncompressing......Error: LinkageError occurred while loading main class com.google.devtools.build.lib.bazel.Bazel java.lang.ExceptionInInitializerError: null

I wonder what is wrong and what should I do? Thanks for help.

@dslomov dslomov added area-EngProd Bazel CI, infrastructure, bootstrapping, release, and distribution tooling type: bug untriaged labels Nov 26, 2018
@philwo
Copy link
Member

philwo commented May 6, 2019

Sorry for not looking into this earlier. I guess this has been resolved in newer Bazel versions?

If not, can you share some more information about your environment - which kind and version of Linux are you running?

@philwo philwo added P1 I'll work on this now. (Assignee required) and removed untriaged labels May 6, 2019
@DarkaMaul
Copy link

Hi,

The problem is still present, even if the version of bazel is more recent.
As #2550 mention, the problem is occurring when a non-ascii character is present in path.

Step to reproduce:

 % ./bazel-0.27.0-linux-x86_64 --help                                                                                                                                                                      
Error: LinkageError occurred while loading main class com.google.devtools.build.lib.bazel.Bazel
	java.lang.ExceptionInInitializerError: null

Configuration:

% pwd
/home/builder/Téléchargements
% uname -a
Linux computer 4.9.0-9-amd64 #1 SMP Debian 4.9.168-1+deb9u2 (2019-05-13) x86_64 GNU/Linux

Workaround: Move the executable to another directory (path) with only ascii charachters inside name

@katre
Copy link
Member

katre commented May 13, 2020

Duplicate of #2550.

@katre katre closed this as completed May 13, 2020
@philwo philwo added the team-OSS Issues for the Bazel OSS team: installation, release processBazel packaging, website label Jun 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-EngProd Bazel CI, infrastructure, bootstrapping, release, and distribution tooling P1 I'll work on this now. (Assignee required) team-OSS Issues for the Bazel OSS team: installation, release processBazel packaging, website type: bug
Projects
None yet
Development

No branches or pull requests

5 participants