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

cpt4.jar error (and suggested workaround) #27

Closed
aguynamedryan opened this issue May 4, 2018 · 2 comments
Closed

cpt4.jar error (and suggested workaround) #27

aguynamedryan opened this issue May 4, 2018 · 2 comments

Comments

@aguynamedryan
Copy link

I went to run the cpt4.jar command that comes with the vocabulary downloads and I got the following error:

> java -jar cpt4.jar 5
Error: Unable to initialize main class org.odhsi.utils.cpt.Application
Caused by: java.lang.NoClassDefFoundError: javax/xml/ws/WebServiceException

I'm running a newer version of Java:

> java -version
java version "10.0.1" 2018-04-17
Java(TM) SE Runtime Environment 18.3 (build 10.0.1+10)
Java HotSpot(TM) 64-Bit Server VM 18.3 (build 10.0.1+10, mixed mode)

Looks like Java 9 and up might not include the javax.xml.ws module? I don't know the right terminology as I'm not a Java guy.

Some quick Googling showed that I could fix the error by running the command thusly:

> java --add-modules=java.xml.ws -jar cpt4.jar 5
 Updated CPT4 records: 10542, records to update: 4904

We probably need to update the cpt.sh and cpt.bat files to incorporate this fix?

@rsjaffe
Copy link
Contributor

rsjaffe commented Jul 5, 2018

this workaround fixed the issue for me too.

@olga-ganina
Copy link

Support of Java till version 13th is available on production

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants