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

java.xml.ws.annotation has been deprecated in JDK 11 #17

Open
HarukiKinoshita opened this issue Dec 21, 2022 · 0 comments
Open

java.xml.ws.annotation has been deprecated in JDK 11 #17

HarukiKinoshita opened this issue Dec 21, 2022 · 0 comments

Comments

@HarukiKinoshita
Copy link

Hi, I'm trying to run the project on JDK 19.0.1 on my M1 Mac. As mentioned in #10, java.xml.ws.annotation as well as java.annotations.common are no longer supported in >=11. Here's the error I've got:

> java --add-modules java.xml.ws.annotation -jar target/onebusaway-gtfs-realtime-visualizer-0.0.1-SNAPSHOT.jar 
\ --vehiclePositionsUrl=https://baliabideak.bizkaia.eus/Bizkaibus/GTFSRealTime/FeedVehiculos.pb
Error occurred during initialization of boot layer
java.lang.module.FindException: Module java.xml.ws.annotation not found

Before getting there, I also had to designate the version of maven compiler on pom.xml:

<plugin>
  <artifactId>maven-compiler-plugin</artifactId>
  <version>3.5.1</version>
  <configuration>
    <source>1.8</source>
    <target>1.8</target>
  </configuration>
</plugin>

Then build succeeded.

Since I'm not familiar with Java, could you kindly add a short note on README so that everyone (like me) knows that this project does not currently support >=11? And if you're planning to make it compatible, I'm happy with it :)

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

1 participant