CSJCurrent en:Java 9+ support

Aus Cryptshare Documentation
Version vom 13. Oktober 2021, 11:17 Uhr von Maintenance script (Diskussion | Beiträge) (Imported from text file)
(Unterschied) ← Nächstältere Version | Aktuelle Version (Unterschied) | Nächstjüngere Version → (Unterschied)
Wechseln zu:Navigation, Suche



The Cryptshare Java API version 5.0.1 supports all Java runtime environments version 8 and higher. Due to structural changes to the runtime environments as of version 9, the following error message may occur:

Exception in thread "main" java.lang.NoClassDefFoundError: javax.xml.ws.WebServiceException
	at com.cryptshare.examples.api.ExampleMain.main(ExampleMain.java:39)
Caused by: java.lang.ClassNotFoundException: javax.xml.ws.WebServiceException
	at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:769)
	at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
	at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:1070)
	... 1 more

If this error occurs, please add the following two dependencies to your project, e.g. in the pom.xml:

<dependency>
	<groupId>javax.xml.ws</groupId>
	<artifactId>jaxws-api</artifactId>
	<version>2.3.1</version>
</dependency>

<dependency>
	<groupId>com.sun.xml.ws</groupId>
	<artifactId>jaxws-rt</artifactId>
	<version>2.3.2</version>
</dependency>