0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

JTRegビルド備忘録[Ubuntu 22.04]

Last updated at Posted at 2023-10-03

おねがい

この記事を参考にしてビルドに失敗した方は後学のためにコメントをいただけますと幸いです。
質問にもお答えできる限りお答えしますので是非コメントを残してください。

環境

OS : Ubuntu 22.04.3 LTS

前回のJDKビルドの続きになります。

手順

1. 資材ダウンロード

$ cd ~/work
$ git clone git@github.com:openjdk/jtreg.git

2. ビルド実行

$ bash make/build.sh --jdk $JAVA_HOME

3. 成果物確認

$ ./build/images/jtreg/bin/jtreg -version
jtreg 7.3.1-dev+0
Installed in /home/tabatad/work/jtreg/build/images/jtreg/lib/jtreg.jar
Running on platform version 16.0.2 from /usr/local/lib/jdk-16.0.2+7.
Built with Java(TM) 2 SDK, Version 16.0.2+7 on October 03, 2023.
Copyright (c) 1999, 2022, Oracle and/or its affiliates. All rights reserved.
Use is subject to license terms.
JT Harness, version 6.0 ea b24 (October 03, 2023)
Java Assembler Tools, version 7.0 ea b09 (October 03, 2023)
TestNG: testng-7.3.0.jar, guice-5.1.0.jar, jcommander-1.82.jar
JUnit: junit-platform-console-standalone-1.9.2.jar

おまけ

JTRegのありかを環境変数JT_HOMEに追加しておく。

$ sudo unzip ~/work/jtreg/build/images/jtreg.zip -d /usr/local/lib/
$ vim ~/.bashrc
#########################
# 以下を追記
export JT_HOME=/usr/local/lib/jtreg
#########################

参考

  • OpenJDK jtreg building.md

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?