未分類

Java 14 新機能(2)

次は進化したinstanceof演算子を試してみる。従来のinstanceof演算子はオブジェクトが指定したクラスのインスタンスかどうかをチェックし,結果をboolean型で返すだけのものであった。進化したinstanceof演算子では,オブジェクトが指定した型に合致する場合はキャストして変数に格納するところまでやってくれる。

public class Instanceof
{
    public static void main(String[] args)
    {
        Object i = 1;
        if(i instanceof Integer integer)
        {
            // 従来は(Integer)i + 2と明示的なキャストをしていた
            System.out.println(integer + 2);
        }
    }
}
未分類

UPS(無停電電源装置)バッテリー交換

 UPSのバッテリー劣化を知らせる警報が作動したため,バッテリーを交換しました。電源を入れたまま交換できるのはありがたいですね。古いバッテリーは自治体では回収してくれないので,メーカーへ送って処分してもらいます。鉛,硫酸など,危険物がいっぱい入っているから仕方ないですね。

 メーカーの製品ページはこちら。

https://www.oss.omron.co.jp/ups/product/by35-120s/by35-120s.html

 古いバッテリーを送ろうとしたら,けっこう大変でした。郵便局のコールセンターに問い合わせると,「鉛電池は禁制品になっている」と断られました。ヤマト運輸のWebにもバッテリーは不可と書いてありました。昨日新品のバッテリーを持ってきてくれた佐川急便なら拒否しないだろうと思い,問い合わせてみると,密閉容器に入っているものならOKだが,今日は集荷できないとのこと。バスに乗って佐川急便の配送拠点へ持込みました。

バッテリ交換ランプが点灯(ブザーもなっていたが停めた)
交換用のあたらしいバッテリ
UPSを開けたところ
未分類

OpenJDK 13(開発中)をビルド

OpenJDK 13(開発中,2019年9月リリース予定)のソースコードをダウンロードして,ビルドしてみました。時間帯によっては回線が不安定で,Mercurialリポジトリからソースコードをチェックアウトに失敗しました。早朝にようやくチェックアウトができたので,さっそくビルドしました。


ソースコードをチェックアウト
ビルドして動作確認

[kubo@kubo-centos7 openjdk13]$ cd jdk
[kubo@kubo-centos7 jdk]$ ls
ADDITIONAL_LICENSE_INFO LICENSE README configure make test
ASSEMBLY_EXCEPTION Makefile bin doc src
[kubo@kubo-centos7 jdk]$ bash configure
Runnable configure script is not present
Generating runnable configure script at /home/kubo/openjdk/openjdk13/jdk/build/.configure-support/generated-configure.sh
Using autoconf at /bin/autoconf [autoconf (GNU Autoconf) 2.69]
configure: Configuration created at Wed May 1 06:22:34 JST 2019.
checking for basename… /bin/basename
checking for bash… /bin/bash
checking for cat… /bin/cat
checking for chmod… /bin/chmod
checking for cmp… /bin/cmp
checking for comm… /bin/comm
checking for cp… /bin/cp
checking for cut… /bin/cut
checking for date… /bin/date
checking for gdiff… no
checking for diff… /bin/diff
checking for dirname… /bin/dirname
checking for echo… /bin/echo
checking for expr… /bin/expr
checking for file… /bin/file
checking for find… /bin/find
checking for head… /bin/head
checking for gunzip… /bin/gunzip
checking for pigz… no
checking for gzip… /bin/gzip
checking for ln… /bin/ln
checking for ls… /bin/ls
checking for gmkdir… no
checking for mkdir… /bin/mkdir
checking for mktemp… /bin/mktemp
checking for mv… /bin/mv
checking for nawk… no
checking for gawk… /bin/gawk
checking for printf… /bin/printf
checking for greadlink… no
checking for readlink… /bin/readlink
checking for rm… /bin/rm
checking for rmdir… /bin/rmdir
checking for sh… /bin/sh
checking for sort… /bin/sort
checking for tail… /bin/tail
checking for gtar… /bin/gtar
checking for tee… /bin/tee
checking for touch… /bin/touch
checking for tr… /bin/tr
checking for uname… /bin/uname
checking for uniq… /bin/uniq
checking for wc… /bin/wc
checking for which… /bin/which
checking for xargs… /bin/xargs
checking for gawk… gawk
checking for grep that handles long lines and -e… /bin/grep
checking for egrep… /bin/grep -E
checking for fgrep… /bin/grep -F
checking for a sed that does not truncate output… /bin/sed
checking for cygpath… no
checking for wslpath… no
checking for df… /bin/df
checking for cpio… /bin/cpio
checking for nice… /bin/nice
checking for lsb_release… no
checking for cmd.exe… no
checking for /mnt/c/Windows/System32/cmd.exe… no
checking build system type… x86_64-unknown-linux-gnu
checking host system type… x86_64-unknown-linux-gnu
checking target system type… x86_64-unknown-linux-gnu
checking openjdk-build os-cpu… linux-x86_64
checking openjdk-target os-cpu… linux-x86_64
checking compilation type… native
checking for top-level directory… /home/kubo/openjdk/openjdk13/jdk
checking if custom source is suppressed (openjdk-only)… no
checking which debug level to use… release
checking which variants of the JVM to build… server
checking for sysroot…
checking for toolchain path…
checking for extra path…
checking where to store configuration… in default location
checking what configuration name to use… linux-x86_64-server-release
checking for zypper… no
checking for apt-get… no
checking for yum… yum
checking for pandoc… no
checking for gmake… /bin/gmake
configure: Testing potential make at /bin/gmake, found using gmake in PATH
configure: Using GNU make at /bin/gmake (version: GNU Make 3.82)
checking if make –output-sync is supported… no
checking if find supports -delete… yes
checking what type of tar was found… gnu
checking that grep (/bin/grep) -Fx handles empty lines in the pattern list correctly… yes
checking for unzip… /bin/unzip
checking for zip… /opt/oracle/product/18c/dbhomeXE/bin/zip
checking for ldd… /bin/ldd
checking for greadelf… no
checking for readelf… /bin/readelf
checking for dot… no
checking for hg… /usr/local/bin/hg
checking for git… /bin/git
checking for stat… /bin/stat
checking for time… /bin/time
checking for flock… /bin/flock
checking for dtrace… no
checking for gpatch… no
checking for patch… /bin/patch
checking bash version… 4.2.46
checking if bash supports pipefail… yes
checking if bash supports errexit (-e)… yes
checking for pkg-config… /bin/pkg-config
checking pkg-config is at least version 0.9.0… yes
checking for default LOG value…
checking headless only… no
checking for graphviz dot… no, cannot generate full docs
checking for pandoc… no, cannot generate full docs
checking full docs… no, missing dependencies
checking for cacerts file… default
checking for jni library path… default
checking if packaged modules are kept… yes (default)
checking for version string… 13-internal+0-adhoc.kubo.jdk
configure: Found potential Boot JDK using JAVA_HOME
checking for Boot JDK… /usr/local/jvm/openjdk-12-internal
checking Boot JDK version… openjdk version “12-internal” 2019-03-19 OpenJDK Runtime Environment (build 12-internal+0-adhoc.root.openjdk12) OpenJDK 64-Bit Server VM (build 12-internal+0-adhoc.root.openjdk12, mixed mode, sharing)
checking for java in Boot JDK… ok
checking for javac in Boot JDK… ok
checking for javadoc in Boot JDK… ok
checking for jar in Boot JDK… ok
checking for jarsigner in Boot JDK… ok
checking if Boot JDK is 32 or 64 bits… 64
checking for local Boot JDK Class Data Sharing (CDS)… yes, created
checking for Build JDK… yes, will use output dir
configure: Using default toolchain gcc (GNU Compiler Collection)
checking for gcc… /bin/gcc
checking resolved symbolic links for CC… /usr/bin/gcc
configure: Using gcc C compiler version 4.8.5 [gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-36)]
checking whether the C compiler works… yes
checking for C compiler default output file name… a.out
checking for suffix of executables…
checking whether we are cross compiling… no
checking for suffix of object files… o
checking whether we are using the GNU C compiler… yes
checking whether /bin/gcc accepts -g… yes
checking for /bin/gcc option to accept ISO C89… none needed
checking for g++… /bin/g++
checking resolved symbolic links for CXX… /usr/bin/g++
configure: Using gcc C++ compiler version 4.8.5 [g++ (GCC) 4.8.5 20150623 (Red Hat 4.8.5-36)]
checking whether we are using the GNU C++ compiler… yes
checking whether /bin/g++ accepts -g… yes
checking how to run the C preprocessor… /bin/gcc -E
checking how to run the C++ preprocessor… /bin/g++ -E
checking for ld… ld
configure: Rewriting LD_JAOTC to “/bin/ld”
configure: Using gcc linker version 2.27 [GNU ld version 2.27-34.base.el7]
checking for ar… ar
configure: Rewriting AR to “/bin/ar”
checking for strip… strip
configure: Rewriting STRIP to “/bin/strip”
checking for nm… nm
configure: Rewriting NM to “/bin/nm”
checking for gobjcopy… no
checking for objcopy… objcopy
configure: Rewriting OBJCOPY to “/bin/objcopy”
checking for gobjdump… no
checking for objdump… objdump
configure: Rewriting OBJDUMP to “/bin/objdump”
checking for c++filt… c++filt
configure: Rewriting CXXFILT to “/bin/c++filt”
checking for jtreg… no
checking for jtreg test harness… no, not found
checking for jmh (Java Microbenchmark Harness)… no, disabled
checking for jib… no
checking if @file is supported by gcc… yes
checking if CC supports “-m64″… yes
checking if CXX supports “-m64″… yes
checking if both CC and CXX support “-m64″… yes
checking for ANSI C header files… yes
checking for sys/types.h… yes
checking for sys/stat.h… yes
checking for stdlib.h… yes
checking for string.h… yes
checking for memory.h… yes
checking for strings.h… yes
checking for inttypes.h… yes
checking for stdint.h… yes
checking for unistd.h… yes
checking stdio.h usability… yes
checking stdio.h presence… yes
checking for stdio.h… yes
checking size of int *… 8
checking for target address size… 64 bits
checking whether byte ordering is bigendian… no
checking if native warnings are errors… true (default)
checking for library containing clock_gettime… none required
checking if CXX supports “-std=gnu++98 -Werror”… yes
checking if CC supports “-fno-delete-null-pointer-checks -Werror”… yes
checking if CXX supports “-fno-delete-null-pointer-checks -Werror”… yes
checking if both CC and CXX support “-fno-delete-null-pointer-checks -Werror”… yes
checking if CC supports “-fno-lifetime-dse -Werror”… no
checking if CXX supports “-fno-lifetime-dse -Werror”… no
checking if both CC and CXX support “-fno-lifetime-dse -Werror”… no
checking if CC supports “-fmacro-prefix-map=/home/kubo/openjdk/openjdk13/jdk/=”… no
checking if CXX supports “-fmacro-prefix-map=/home/kubo/openjdk/openjdk13/jdk/=”… no
checking if both CC and CXX support “-fmacro-prefix-map=/home/kubo/openjdk/openjdk13/jdk/=”… no
checking if CC supports “-ffp-contract=off”… yes
checking if CXX supports “-ffp-contract=off”… yes
checking if both CC and CXX support “-ffp-contract=off”… yes
checking if BUILD_CXX supports “-std=gnu++98 -Werror”… yes
checking if BUILD_CC supports “-fno-delete-null-pointer-checks -Werror”… yes
checking if BUILD_CXX supports “-fno-delete-null-pointer-checks -Werror”… yes
checking if both BUILD_CC and BUILD_CXX support “-fno-delete-null-pointer-checks -Werror”… yes
checking if BUILD_CC supports “-fno-lifetime-dse -Werror”… no
checking if BUILD_CXX supports “-fno-lifetime-dse -Werror”… no
checking if both BUILD_CC and BUILD_CXX support “-fno-lifetime-dse -Werror”… no
checking if BUILD_CC supports “-fmacro-prefix-map=/home/kubo/openjdk/openjdk13/jdk/=”… no
checking if BUILD_CXX supports “-fmacro-prefix-map=/home/kubo/openjdk/openjdk13/jdk/=”… no
checking if both BUILD_CC and BUILD_CXX support “-fmacro-prefix-map=/home/kubo/openjdk/openjdk13/jdk/=”… no
checking if BUILD_CC supports “-ffp-contract=off”… yes
checking if BUILD_CXX supports “-ffp-contract=off”… yes
checking if both BUILD_CC and BUILD_CXX support “-ffp-contract=off”… yes
checking what type of native debug symbols to use… external
checking for dtrace tool… not found, cannot build dtrace
checking sys/sdt.h usability… no
checking sys/sdt.h presence… no
checking for sys/sdt.h… no
checking if dtrace should be built… no, missing dependencies
checking if Hotspot gtest unit tests should be built… yes
checking if static link of stdc++ is possible… no
checking how to link with libstdc++… dynamic
checking for X… libraries , headers
checking for gethostbyname… yes
checking for connect… yes
checking for remove… yes
checking for shmat… yes
checking for IceConnectionNumber in -lICE… yes
checking for X11/extensions/shape.h… yes
checking for X11/extensions/Xrender.h… yes
checking for X11/extensions/XTest.h… yes
checking for X11/Intrinsic.h… yes
checking for X11/extensions/Xrandr.h… yes
checking if XlinearGradient is defined in Xrender.h… yes
checking cups/cups.h usability… yes
checking cups/cups.h presence… yes
checking for cups/cups.h… yes
checking cups/ppd.h usability… yes
checking cups/ppd.h presence… yes
checking for cups/ppd.h… yes
checking fontconfig/fontconfig.h usability… yes
checking fontconfig/fontconfig.h presence… yes
checking for fontconfig/fontconfig.h… yes
checking for FREETYPE… yes
checking for freetype… yes (using pkg-config)
Using freetype: system
checking for ALSA… yes
checking for which libjpeg to use… bundled
checking for which giflib to use… bundled
checking for PNG… yes
checking for which libpng to use… bundled
checking for compress in -lz… yes
checking for which zlib to use… system
checking for system zlib functionality… ok
checking for which lcms to use… bundled
checking for cos in -lm… yes
checking for dlopen in -ldl… yes
checking if shenandoah can be built… yes
checking if zgc can be built… yes
checking if jvmci module jdk.internal.vm.ci should be built… yes
checking if graal module jdk.internal.vm.compiler should be built… yes
checking if aot should be enabled… yes
checking if cds should be enabled… yes
checking if elliptic curve crypto implementation is present… yes
checking if jtreg failure handler should be built… no, missing jtreg
checking if the CDS classlist generation should be enabled… yes
checking if any translations should be excluded… no
checking if static man pages should be copied… yes
checking if a default CDS archive should be generated… yes
checking for number of cores… 4
checking for memory size… 7734 MB
checking for appropriate number of jobs to run in parallel… 4
checking flags for boot jdk java command … -Duser.language=en -Duser.country=US -XX:+UnlockDiagnosticVMOptions -XX:-VerifySharedSpaces -XX:SharedArchiveFile=/home/kubo/openjdk/openjdk13/jdk/build/linux-x86_64-server-release/configure-support/classes.jsa -Xshare:auto
checking flags for boot jdk java command for big workloads… -Xms64M -Xmx1600M -XX:ThreadStackSize=1536
checking flags for bootcycle boot jdk java command for big workloads… -Xms64M -Xmx1600M -XX:ThreadStackSize=1536
checking flags for boot jdk java command for small workloads… -XX:+UseSerialGC -Xms32M -Xmx512M -XX:TieredStopAtLevel=1
checking whether to use sjavac… no
checking whether to use javac server… yes
checking If precompiled header is enabled… yes
checking that precompiled headers work… yes
checking is ccache enabled… no
checking if build directory is on local disk… yes
checking JVM features for JVM variant ‘server’… “aot cds cmsgc compiler1 compiler2 epsilongc g1gc graal jfr jni-check jvmci jvmti management nmt parallelgc serialgc services shenandoahgc vm-structs zgc”
configure: creating /home/kubo/openjdk/openjdk13/jdk/build/linux-x86_64-server-release/configure-support/config.status
config.status: creating /home/kubo/openjdk/openjdk13/jdk/build/linux-x86_64-server-release/spec.gmk
config.status: creating /home/kubo/openjdk/openjdk13/jdk/build/linux-x86_64-server-release/bootcycle-spec.gmk
config.status: creating /home/kubo/openjdk/openjdk13/jdk/build/linux-x86_64-server-release/buildjdk-spec.gmk
config.status: creating /home/kubo/openjdk/openjdk13/jdk/build/linux-x86_64-server-release/compare.sh
config.status: creating /home/kubo/openjdk/openjdk13/jdk/build/linux-x86_64-server-release/Makefile

====================================================
A new configuration has been successfully created in
/home/kubo/openjdk/openjdk13/jdk/build/linux-x86_64-server-release
using default settings.

Configuration summary:
* Debug level: release
* HS debug level: product
* JVM variants: server
* JVM features: server: ‘aot cds cmsgc compiler1 compiler2 epsilongc g1gc graal jfr jni-check jvmci jvmti management nmt parallelgc serialgc services shenandoahgc vm-structs zgc’
* OpenJDK target: OS: linux, CPU architecture: x86, address length: 64
* Version string: 13-internal+0-adhoc.kubo.jdk (13-internal)

Tools summary:
* Boot JDK: openjdk version “12-internal” 2019-03-19 OpenJDK Runtime Environment (build 12-internal+0-adhoc.root.openjdk12) OpenJDK 64-Bit Server VM (build 12-internal+0-adhoc.root.openjdk12, mixed mode, sharing) (at /usr/local/jvm/openjdk-12-internal)
* Toolchain: gcc (GNU Compiler Collection)
* C Compiler: Version 4.8.5 (at /bin/gcc)
* C++ Compiler: Version 4.8.5 (at /bin/g++)

Build performance summary:
* Cores to use: 4
* Memory limit: 7734 MB

[kubo@kubo-centos7 jdk]$ make
Building target ‘default (exploded-image)’ in configuration ‘linux-x86_64-server-release’
Compiling 8 files for BUILD_TOOLS_LANGTOOLS
Compiling 1 files for BUILD_JFR_TOOLS
Creating hotspot/variant-server/tools/adlc/adlc from 13 file(s)
Compiling 2 files for BUILD_JVMTI_TOOLS
Parsing 2 properties into enum-like class for jdk.compiler
Compiling 10 properties into resource bundles for jdk.javadoc
Compiling 19 properties into resource bundles for jdk.compiler
Compiling 12 properties into resource bundles for jdk.jdeps
Compiling 7 properties into resource bundles for jdk.jshell
Compiling 117 files for BUILD_java.compiler.interim
Compiling 400 files for BUILD_jdk.compiler.interim
Creating support/modules_libs/java.base/server/libjvm.so from 997 file(s)
Creating hotspot/variant-server/libjvm/gtest/libjvm.so from 122 file(s)
Creating hotspot/variant-server/libjvm/gtest/gtestLauncher from 1 file(s)
Compiling 218 files for BUILD_jdk.javadoc.interim
Compiling 162 files for BUILD_TOOLS_JDK
注意:一部の入力ファイルは推奨されないAPIを使用またはオーバーライドしています。
注意:詳細は、-Xlint:deprecationオプションを指定して再コンパイルしてください。
注意:入力ファイルの操作のうち、未チェックまたは安全ではないものがあります。
注意:詳細は、-Xlint:uncheckedオプションを指定して再コンパイルしてください。
Compiling 2 files for COMPILE_DEPEND
Compiling 188 files for BUILD_jdk.rmic.interim
Compiling 3 files for BUILD_VM_COMPILER_MATCH_PROCESSOR
Compiling 5 files for BUILD_VM_COMPILER_NODEINFO_PROCESSOR
Compiling 3 files for BUILD_VM_COMPILER_OPTIONS_PROCESSOR
注意:一部の入力ファイルは推奨されないAPIを使用またはオーバーライドしています。
注意:詳細は、-Xlint:deprecationオプションを指定して再コンパイルしてください。
Compiling 14 files for BUILD_VM_COMPILER_REPLACEMENTS_PROCESSOR
Compiling 3 files for BUILD_VM_COMPILER_SERVICEPROVIDER_PROCESSOR
Creating buildtools/jdk.vm.compiler.match.processor.jar
Creating buildtools/jdk.vm.compiler.nodeinfo.processor.jar
Creating buildtools/jdk.vm.compiler.options.processor.jar
Creating buildtools/jdk.vm.compiler.replacements.verifier.jar
Creating buildtools/jdk.vm.compiler.serviceprovider.processor.jar
Compiling 11 properties into resource bundles for jdk.jartool
Compiling 11 properties into resource bundles for jdk.management.agent
Compiling 3 properties into resource bundles for jdk.jdi
Compiling 4 properties into resource bundles for jdk.jlink
Compiling 3 properties into resource bundles for jdk.jlink
Compiling 1 properties into resource bundles for jdk.jlink
Compiling 224 properties into resource bundles for jdk.localedata
Compiling 11 properties into resource bundles for java.base
Compiling 2 files for BUILD_BREAKITERATOR_BASE
Compiling 2 files for BUILD_BREAKITERATOR_LD
Compiling 11 properties into resource bundles for java.logging
Compiling 6 properties into resource bundles for java.base
Compiling 3014 files for java.base
Compiling 89 properties into resource bundles for java.desktop
Compiling 1830 files for java.xml
Compiling 10 files for java.instrument
Compiling 35 files for java.logging
Compiling 330 files for java.management
Compiling 30 files for java.security.sasl
Compiling 129 files for java.rmi
Compiling 140 files for java.net.http
Warning: generation and use of skeletons and static stubs for JRMP
is deprecated. Skeletons are unnecessary, and static stubs have
been superseded by dynamically generated stubs. Users are
encouraged to migrate away from using rmic to generate skeletons and static
stubs. See the documentation for java.rmi.server.UnicastRemoteObject.
Compiling 15 files for java.scripting
Compiling 5 files for java.transaction.xa
Compiling 22 files for java.smartcardio
Compiling 272 files for java.xml.crypto
Compiling 193 files for jdk.internal.vm.ci
Compiling 24 files for jdk.management
Compiling 9 files for jdk.unsupported
Compiling 61 files for jdk.internal.jvmstat
Compiling 120 files for jdk.charsets
Compiling 22 files for jdk.crypto.ec
Compiling 68 files for jdk.dynalink
Compiling 3 files for jdk.internal.ed
Compiling 44 files for jdk.httpserver
Compiling 97 files for jdk.internal.le
Compiling 51 files for jdk.internal.opt
Compiling 33 files for jdk.jartool
Compiling 1 files for jdk.jdwp.agent
Compiling 175 files for jdk.jfr
Compiling 11 files for jdk.jstatd
Compiling 1703 files for jdk.localedata
Compiling 9 files for jdk.net
Compiling 1 files for jdk.pack
Compiling 593 files for jdk.scripting.nashorn
注意:一部の入力ファイルは、削除用にマークされた推奨されないAPIを使用またはオーバーライドしています。
注意:詳細は、-Xlint:removalオプションを指定して再コンパイルしてください。
Compiling 138 files for BUILD_NASGEN
Compiling 33 files for jdk.sctp
Compiling 94 files for jdk.xml.dom
Running nasgen
Compiling 15 files for jdk.zipfs
Compiling 117 files for java.compiler
Compiling 18 files for java.datatransfer
Compiling 15 files for java.prefs
Compiling 197 files for java.naming
Compiling 77 files for java.sql
Compiling 15 files for jdk.attach
Compiling 404 files for jdk.compiler
Compiling 70 files for jdk.crypto.cryptoki
Compiling 40 files for jdk.jcmd
Compiling 251 files for jdk.jdi
Compiling 14 files for jdk.management.jfr
Compiling 16 files for jdk.naming.dns
Compiling 7 files for jdk.naming.rmi
Compiling 11 files for jdk.scripting.nashorn.shell
注意:一部の入力ファイルは、削除用にマークされた推奨されないAPIを使用またはオーバーライドしています。
注意:詳細は、-Xlint:removalオプションを指定して再コンパイルしてください。
Compiling 14 files for java.management.rmi
Compiling 217 files for java.security.jgss
Compiling 56 files for java.sql.rowset
Compiling 2780 files for java.desktop
Compiling 218 files for jdk.javadoc
Compiling 31 files for jdk.management.agent
Compiling 133 files for jdk.jdeps
Compiling 94 files for jdk.jshell
Warning: generation and use of skeletons and static stubs for JRMP
is deprecated. Skeletons are unnecessary, and static stubs have
been superseded by dynamically generated stubs. Users are
encouraged to migrate away from using rmic to generate skeletons and static
stubs. See the documentation for java.rmi.server.UnicastRemoteObject.
Compiling 188 files for jdk.rmic
Compiling 30 files for jdk.security.auth
Compiling 16 files for jdk.security.jgss
注意:一部の入力ファイルは推奨されないAPIを使用またはオーバーライドしています。
注意:詳細は、-Xlint:deprecationオプションを指定して再コンパイルしてください。
Warning: generation and use of skeletons and static stubs for JRMP
is deprecated. Skeletons are unnecessary, and static stubs have
been superseded by dynamically generated stubs. Users are
encouraged to migrate away from using rmic to generate skeletons and static
stubs. See the documentation for java.rmi.server.UnicastRemoteObject.
Compiling 76 files for jdk.jlink
Compiling 1617 files for jdk.internal.vm.compiler
Compiling 108 files for jdk.aot
Compiling 3 files for jdk.editpad
Compiling 1008 files for jdk.hotspot.agent
注意:一部の入力ファイルは推奨されないAPIを使用またはオーバーライドしています。
注意:詳細は、-Xlint:deprecationオプションを指定して再コンパイルしてください。
注意:入力ファイルの操作のうち、未チェックまたは安全ではないものがあります。
注意:詳細は、-Xlint:uncheckedオプションを指定して再コンパイルしてください。
Compiling 5 files for jdk.internal.vm.compiler.management
Compiling 64 files for jdk.jconsole
Compiling 5 files for jdk.jsobject
Compiling 8 files for jdk.unsupported.desktop
Compiling 1 files for java.se
Compiling 18 files for jdk.accessibility
Compiling 67 files for COMPILE_CREATE_SYMBOLS
Creating ct.sym classes
Creating support/symbols/ct.sym
Creating support/modules_libs/java.base/libverify.so from 2 file(s)
Creating support/modules_libs/java.base/libjava.so from 58 file(s)
Creating support/native/java.base/libfdlibm.a from 57 file(s)
Creating support/modules_libs/java.base/libzip.so from 5 file(s)
Creating support/modules_libs/java.base/libjimage.so from 6 file(s)
Creating support/modules_libs/java.base/libnet.so from 21 file(s)
Creating support/modules_libs/java.base/libjli.so from 8 file(s)
Creating support/modules_libs/java.base/libnio.so from 19 file(s)
Creating support/modules_libs/java.base/libjsig.so from 1 file(s)
Creating support/modules_libs/java.management/libmanagement.so from 9 file(s)
Creating support/modules_libs/java.instrument/libinstrument.so from 12 file(s)
Creating support/native/java.base/java_objs/java from 1 file(s)
Creating support/modules_cmds/java.base/keytool from 1 file(s)
Creating support/modules_libs/java.base/jexec from 1 file(s)
Creating support/modules_libs/java.base/jspawnhelper from 1 file(s)
Creating support/modules_libs/java.desktop/libmlib_image.so from 50 file(s)
Creating support/modules_libs/java.desktop/libawt.so from 73 file(s)
Creating support/modules_libs/java.desktop/libawt_xawt.so from 52 file(s)
Creating support/modules_libs/java.desktop/liblcms.so from 27 file(s)
Creating support/modules_libs/java.desktop/libjavajpeg.so from 46 file(s)
Creating support/modules_libs/java.desktop/libawt_headless.so from 26 file(s)
Creating support/modules_libs/java.desktop/libfontmanager.so from 61 file(s)
Creating support/modules_libs/java.desktop/libjawt.so from 1 file(s)
Creating support/modules_libs/java.desktop/libsplashscreen.so from 67 file(s)
Creating support/modules_libs/java.desktop/libjsound.so from 18 file(s)
Creating support/modules_libs/java.prefs/libprefs.so from 1 file(s)
Creating support/modules_libs/java.rmi/librmi.so from 1 file(s)
Creating support/modules_cmds/java.rmi/rmid from 1 file(s)
Creating support/modules_cmds/java.rmi/rmiregistry from 1 file(s)
Creating support/modules_cmds/java.scripting/jrunscript from 1 file(s)
Creating support/modules_libs/java.security.jgss/libj2gss.so from 3 file(s)
Creating support/modules_libs/java.smartcardio/libj2pcsc.so from 2 file(s)
Creating support/modules_cmds/jdk.aot/jaotc from 1 file(s)
Creating support/modules_libs/jdk.attach/libattach.so from 1 file(s)
Creating support/modules_cmds/jdk.compiler/javac from 1 file(s)
Creating support/modules_cmds/jdk.compiler/serialver from 1 file(s)
Creating support/modules_libs/jdk.crypto.cryptoki/libj2pkcs11.so from 14 file(s)
Creating support/modules_libs/jdk.crypto.ec/libsunec.so from 28 file(s)
Creating support/modules_libs/jdk.hotspot.agent/libsaproc.so from 7 file(s)
Creating support/modules_cmds/jdk.hotspot.agent/jhsdb from 1 file(s)
Creating support/modules_cmds/jdk.jartool/jar from 1 file(s)
Creating support/modules_cmds/jdk.jartool/jarsigner from 1 file(s)
Creating support/modules_cmds/jdk.javadoc/javadoc from 1 file(s)
Creating support/modules_cmds/jdk.jcmd/jinfo from 1 file(s)
Creating support/modules_cmds/jdk.jcmd/jmap from 1 file(s)
Creating support/modules_cmds/jdk.jcmd/jps from 1 file(s)
Creating support/modules_cmds/jdk.jcmd/jstack from 1 file(s)
Creating support/modules_cmds/jdk.jcmd/jstat from 1 file(s)
Creating support/modules_cmds/jdk.jcmd/jcmd from 1 file(s)
Creating support/modules_cmds/jdk.jconsole/jconsole from 1 file(s)
Creating support/modules_cmds/jdk.jdeps/javap from 1 file(s)
Creating support/modules_cmds/jdk.jdeps/jdeps from 1 file(s)
Creating support/modules_cmds/jdk.jdeps/jdeprscan from 1 file(s)
Creating support/modules_cmds/jdk.jdi/jdb from 1 file(s)
Creating support/modules_libs/jdk.jdwp.agent/libdt_socket.so from 2 file(s)
Creating support/modules_libs/jdk.jdwp.agent/libjdwp.so from 42 file(s)
Creating support/modules_cmds/jdk.jfr/jfr from 1 file(s)
Creating support/modules_cmds/jdk.jlink/jimage from 1 file(s)
Creating support/modules_cmds/jdk.jlink/jlink from 1 file(s)
Creating support/modules_cmds/jdk.jlink/jmod from 1 file(s)
Creating support/modules_cmds/jdk.jshell/jshell from 1 file(s)
Creating support/modules_cmds/jdk.jstatd/jstatd from 1 file(s)
Creating support/modules_libs/jdk.management/libmanagement_ext.so from 8 file(s)
Creating support/modules_libs/jdk.management.agent/libmanagement_agent.so from 1 file(s)
Creating support/modules_libs/jdk.net/libextnet.so from 1 file(s)
Creating support/modules_libs/jdk.pack/libunpack.so from 7 file(s)
Creating support/modules_cmds/jdk.pack/pack200 from 1 file(s)
Creating support/modules_cmds/jdk.pack/unpack200 from 7 file(s)
Creating support/modules_cmds/jdk.rmic/rmic from 1 file(s)
Creating support/modules_cmds/jdk.scripting.nashorn.shell/jjs from 1 file(s)
Creating support/modules_libs/jdk.sctp/libsctp.so from 2 file(s)
Creating support/modules_libs/jdk.security.auth/libjaas.so from 1 file(s)
Compiling 4 files for BUILD_JIGSAW_TOOLS
Stopping sjavac server
Finished building target ‘default (exploded-image)’ in configuration ‘linux-x86_64-server-release’
[kubo@kubo-centos7 jdk]$ sudo make install
[sudo] kubo のパスワード:
Building target ‘install’ in configuration ‘linux-x86_64-server-release’
Compiling 31 files for BUILD_JRTFS
信頼できないファイル /home/kubo/openjdk/openjdk13/jdk/.hg/hgrc (所有者 kubo, グループ kubo)
Creating support/modules_libs/java.base/jrt-fs.jar
信頼できないファイル /home/kubo/openjdk/openjdk13/jdk/.hg/hgrc (所有者 kubo, グループ kubo)
Updating images/sec-bin.zip
Creating interim java.base.jmod
Creating interim java.logging.jmod
Updating support/src.zip
Creating java.compiler.jmod
Creating java.datatransfer.jmod
Creating java.desktop.jmod
Creating java.instrument.jmod
Creating java.logging.jmod
Creating java.management.jmod
Creating java.management.rmi.jmod
Creating java.naming.jmod
Creating java.net.http.jmod
Creating java.prefs.jmod
Creating java.rmi.jmod
Creating java.scripting.jmod
Creating java.se.jmod
Creating java.security.jgss.jmod
Creating java.security.sasl.jmod
Creating java.smartcardio.jmod
Creating java.sql.jmod
Creating java.sql.rowset.jmod
Creating java.transaction.xa.jmod
Creating java.xml.jmod
Creating java.xml.crypto.jmod
Creating jdk.accessibility.jmod
Creating jdk.aot.jmod
Creating jdk.attach.jmod
Creating jdk.charsets.jmod
Creating jdk.compiler.jmod
Creating jdk.crypto.cryptoki.jmod
Creating jdk.crypto.ec.jmod
Creating jdk.dynalink.jmod
Creating jdk.editpad.jmod
Creating jdk.hotspot.agent.jmod
Creating jdk.httpserver.jmod
Creating jdk.internal.ed.jmod
Creating jdk.internal.jvmstat.jmod
Creating jdk.internal.le.jmod
Creating jdk.internal.opt.jmod
Creating jdk.internal.vm.ci.jmod
Creating jdk.internal.vm.compiler.jmod
Creating jdk.internal.vm.compiler.management.jmod
Creating jdk.jartool.jmod
Creating jdk.javadoc.jmod
Creating jdk.jcmd.jmod
Creating jdk.jconsole.jmod
Creating jdk.jdeps.jmod
Creating jdk.jdi.jmod
Creating jdk.jdwp.agent.jmod
Creating jdk.jshell.jmod
Creating jdk.jfr.jmod
Creating jdk.jsobject.jmod
Creating jdk.jstatd.jmod
Creating jdk.management.jmod
Creating jdk.localedata.jmod
Creating jdk.management.agent.jmod
Creating jdk.management.jfr.jmod
Creating jdk.naming.dns.jmod
Creating jdk.naming.rmi.jmod
Creating jdk.net.jmod
Creating jdk.pack.jmod
Creating jdk.rmic.jmod
Creating jdk.scripting.nashorn.jmod
Creating jdk.scripting.nashorn.shell.jmod
Creating jdk.sctp.jmod
Creating jdk.security.auth.jmod
Creating jdk.security.jgss.jmod
Creating jdk.unsupported.jmod
Creating jdk.unsupported.desktop.jmod
Creating jdk.xml.dom.jmod
Creating jdk.zipfs.jmod
Creating interim jimage
Compiling 3 files for BUILD_DEMO_CodePointIM
Updating support/demos/image/jfc/CodePointIM/src.zip
Compiling 1 files for CLASSLIST_JAR
Compiling 3 files for BUILD_DEMO_FileChooserDemo
Updating support/demos/image/jfc/FileChooserDemo/src.zip
Creating support/classlist.jar
注意:/home/kubo/openjdk/openjdk13/jdk/src/demo/share/jfc/FileChooserDemo/FileChooserDemo.javaは推奨されないAPIを使用またはオーバーライドしています。
注意:詳細は、-Xlint:deprecationオプションを指定して再コンパイルしてください。
注意:/home/kubo/openjdk/openjdk13/jdk/src/demo/share/jfc/FileChooserDemo/FileChooserDemo.javaの操作は、未チェックまたは安全ではありません。
注意:詳細は、-Xlint:uncheckedオプションを指定して再コンパイルしてください。
Creating jdk.jlink.jmod
Compiling 30 files for BUILD_DEMO_SwingSet2
Updating support/demos/image/jfc/SwingSet2/src.zip
Compiling 4 files for BUILD_DEMO_Font2DTest
Updating support/demos/image/jfc/Font2DTest/src.zip
Creating java.base.jmod
注意:一部の入力ファイルは推奨されないAPIを使用またはオーバーライドしています。
注意:詳細は、-Xlint:deprecationオプションを指定して再コンパイルしてください。
注意:入力ファイルの操作のうち、未チェックまたは安全ではないものがあります。
注意:詳細は、-Xlint:uncheckedオプションを指定して再コンパイルしてください。
注意:一部の入力ファイルは推奨されないAPIを使用またはオーバーライドしています。
注意:詳細は、-Xlint:deprecationオプションを指定して再コンパイルしてください。
注意:入力ファイルの操作のうち、未チェックまたは安全ではないものがあります。
注意:詳細は、-Xlint:uncheckedオプションを指定して再コンパイルしてください。
Compiling 64 files for BUILD_DEMO_J2Ddemo
Updating support/demos/image/jfc/J2Ddemo/src.zip
Compiling 15 files for BUILD_DEMO_Metalworks
Updating support/demos/image/jfc/Metalworks/src.zip
注意:/home/kubo/openjdk/openjdk13/jdk/src/demo/share/jfc/Metalworks/MetalworksPrefs.javaの操作は、未チェックまたは安全ではありません。
注意:詳細は、-Xlint:uncheckedオプションを指定して再コンパイルしてください。
Compiling 2 files for BUILD_DEMO_Notepad
Updating support/demos/image/jfc/Notepad/src.zip
注意:一部の入力ファイルは推奨されないAPIを使用またはオーバーライドしています。
注意:詳細は、-Xlint:deprecationオプションを指定して再コンパイルしてください。
注意:入力ファイルの操作のうち、未チェックまたは安全ではないものがあります。
注意:詳細は、-Xlint:uncheckedオプションを指定して再コンパイルしてください。
Compiling 5 files for BUILD_DEMO_Stylepad
Updating support/demos/image/jfc/Stylepad/src.zip
Compiling 5 files for BUILD_DEMO_SampleTree
Updating support/demos/image/jfc/SampleTree/src.zip
注意:/home/kubo/openjdk/openjdk13/jdk/src/demo/share/jfc/Stylepad/Stylepad.javaの操作は、未チェックまたは安全ではありません。
注意:詳細は、-Xlint:uncheckedオプションを指定して再コンパイルしてください。
Compiling 8 files for BUILD_DEMO_TableExample
Updating support/demos/image/jfc/TableExample/src.zip
Compiling 1 files for BUILD_DEMO_TransparentRuler
Updating support/demos/image/jfc/TransparentRuler/src.zip
注意:一部の入力ファイルは推奨されないAPIを使用またはオーバーライドしています。
注意:詳細は、-Xlint:deprecationオプションを指定して再コンパイルしてください。
注意:/home/kubo/openjdk/openjdk13/jdk/src/demo/share/jfc/TableExample/TableExample4.javaの操作は、未チェックまたは安全ではありません。
注意:詳細は、-Xlint:uncheckedオプションを指定して再コンパイルしてください。
Creating support/demos/image/jfc/CodePointIM/CodePointIM.jar
Creating support/demos/image/jfc/FileChooserDemo/FileChooserDemo.jar
Creating support/demos/image/jfc/SwingSet2/SwingSet2.jar
Creating support/demos/image/jfc/Font2DTest/Font2DTest.jar
Creating support/demos/image/jfc/J2Ddemo/J2Ddemo.jar
Creating support/demos/image/jfc/Metalworks/Metalworks.jar
Creating support/demos/image/jfc/Notepad/Notepad.jar
Creating support/demos/image/jfc/Stylepad/Stylepad.jar
Creating support/demos/image/jfc/SampleTree/SampleTree.jar
Creating support/demos/image/jfc/TableExample/TableExample.jar
Creating support/demos/image/jfc/TransparentRuler/TransparentRuler.jar
Creating jdk image
Creating CDS archive for jdk image
Installing jdk image into /usr/local/jvm/openjdk-13-internal
and creating 33 links from /usr/local/bin into the jdk.
Stopping sjavac server
Finished building target ‘install’ in configuration ‘linux-x86_64-server-release’
[kubo@kubo-centos7 jdk]$ javac -version
javac 13-internal
[kubo@kubo-centos7 jdk]$
未分類

情報処理安全確保支援士法定講習

情報処理安全確保支援士(登録情報セキュリティスペシャリスト)の法定講習を受講しました。今年はe-learningだけでよいのですが,それでもかなりの量です。しかもe-learning講習料金は2万円で,それなりのお値段です。

 来年はe-learningに加えて1日間の集合研修が課されます。集合研修は8万円だったように記憶しています。

受講証明書
未分類

Vagrant+Chef

2014年出版の本を見ながら,VagrantChefをインストールして動かしてみましたが,記述の内容が古く,初歩的なところで躓きました。コマンドそのものが変更されていたり,セキュリティが強化されていたりで,Google先生に聞いてばかりでした。ひとまず,VirtualBoxの仮想マシンを作成して起動させるところで断念しました。

Vagrantのboxダウンロード
VirtualBoxの仮想マシン作成
VirtualBoxの仮想マシンマネージャ画面
未分類

Gradle

先日Groovyを触ってみたので,ついでにGradleというJavaアプリケーション用ビルドツールも試してみました。Java用ビルドツールとしては,Ant, Mavenがありましたが,これらはいずれも設定をXMLファイルに記述していました。そのため,条件分岐などの複雑な制御をしようとすると難しい面がありました。GradleはGroovyというプログラミング言語で記述するので,柔軟な動きを定義できます。

Gradleでビルドしたところ