[ISSUE] In the showcase of Java Service Provider Interface , command line output is empty
https://github.com/eugenp/tutorials/tree/master/core-java-modules/java-spi
Steps to Reproduce
Run this command in root of the java-spi module , the command line output is empty.
java -cp "D:\java-spi\exchange-rate-api\target\exchange-rate-api-1.0.0-SNAPSHOT.jar;D:\java-spi\exchange-rate-app\target\exchange-rate-app-1.0
.0-SNAPSHOT.jar;D:\java-spi\exchange-rate-impl\target\exchange-rate-impl-1.0.0-SNAPSHOT.jar;D:\java-spi\exchange-rate-impl\target\depends\*" com.baeldung.rate.app.MainApp
Expected Behavior
Retreiving USD quotes from provider :com.baeldung.rate.impl.YahooFinanceExchangeRateProvider@27973e9b
...
...
...
Environment
- OS: Windows10
- JAVA:1.8
Additional Information
- Confirmed that the
META-INF/services/com.baeldung.rate.spi.YahooFinanceExchangeRateProviderfile exists. - Confirmed that the
YahooFinanceExchangeRateProviderclass correctly implements theExchangeRateProviderinterface. - Checked the classpath and confirmed that the relevant dependencies are properly packaged
Hey, @wohu233.
This might be a windows-related issue. This issue will remain open while we look into it.
Article link: https://www.baeldung.com/java-spi
Thanks for the feedback here - that's always super helpful. We do naturally try to keep everything updated, but, as you might imagine, in some cases, we also do have to prioritize some updates over others. This looks to be one that won't have high priority. We now have a note internally on it - closing this issue here. Thanks, Team