Java11でkSar7を起動したら「java.net.MalformedURLException」が発生したのでJava8で実行しなおしたところ発生しなかった件の記録です。
検証環境
Windows 11 Home 22H2 (Build 22621.1635) kSar version:7.0.0
検証結果
Java11(起動失敗)
C:\Users\hoge>java -version openjdk version "11.0.12" 2021-07-20 OpenJDK Runtime Environment 18.9 (build 11.0.12+7) OpenJDK 64-Bit Server VM 18.9 (build 11.0.12+7, mixed mode) C:\Users\hoge>java -jar .\Desktop\ksartest\kSar-7.0.0-alpha\kSar-7.0.0-alpha.jar java.net.MalformedURLException at java.base/java.net.URL.<init>(URL.java:679) at java.base/java.net.URL.<init>(URL.java:541) at java.base/java.net.URL.<init>(URL.java:488) at java.xml/com.sun.org.apache.xerces.internal.impl.XMLEntityManager.setupCurrentEntity(XMLEntityManager.java:649) at java.xml/com.sun.org.apache.xerces.internal.impl.XMLEntityManager.startEntity(XMLEntityManager.java:1398) at java.xml/com.sun.org.apache.xerces.internal.impl.XMLEntityManager.startDTDEntity(XMLEntityManager.java:1364) at java.xml/com.sun.org.apache.xerces.internal.impl.XMLDTDScannerImpl.setInputSource(XMLDTDScannerImpl.java:257) at java.xml/com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$DTDDriver.dispatch(XMLDocumentScannerImpl.java:1152) at java.xml/com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$DTDDriver.next(XMLDocumentScannerImpl.java:1040) at java.xml/com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDriver.next(XMLDocumentScannerImpl.java:943) at java.xml/com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:605) at java.xml/com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:534) at java.xml/com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:888) at java.xml/com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:824) at java.xml/com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:141) at java.xml/com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1216) at java.xml/com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:635) at java.xml/com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl.parse(SAXParserImpl.java:324) at java.xml/javax.xml.parsers.SAXParser.parse(SAXParser.java:197) at net.atomique.ksar.XMLConfig.load_config(XMLConfig.java:69) at net.atomique.ksar.XMLConfig.<init>(XMLConfig.java:44) at net.atomique.ksar.GlobalOptions.<init>(GlobalOptions.java:51) at net.atomique.ksar.GlobalOptions.<clinit>(GlobalOptions.java:30) at net.atomique.ksar.Main.main(Main.java:105) Caused by: java.lang.NullPointerException at java.base/java.net.URL.<init>(URL.java:585) ... 23 more
Java8(起動成功)
C:\Users\hoge>java -version openjdk version "1.8.0_302" OpenJDK Runtime Environment (build 1.8.0_302-b08) OpenJDK 64-Bit Server VM (build 25.302-b08, mixed mode) C:\Users\hoge>java -jar .\Desktop\ksartest\kSar-7.0.0-alpha\kSar-7.0.0-alpha.jar exit
kSar7の取得場所
kSar-7.0.0-alpha.zip