onebusaway-gtfs-realtime-visualizer
onebusaway-gtfs-realtime-visualizer copied to clipboard
java.xml.ws.annotation has been deprecated in JDK 11
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 :)