Hi Team,
I am new here, I am a reasonably experienced sw engineer but have never worked with java. I have a debian machine with maven. I am able to install and build jpaserver, it's very exciting.
I'd also like to run the fhirstarters client skeleton, I am having what I hope is a simple problem you can help with.
I git clone the repository, mvn package, the build seems to run OK, hapi-fhirstarters-client-skeleton-5.0.0.jar appears in /target
How do I execute TestApplication?
In the .jar I see
1794 Tue Jan 04 15:54:02 UTC 2022 test/TestApplication.class5561 Tue Jan 04 15:54:02 UTC 2022 test/TestApplicationHints.class
but when I try:
java -jar hapi-fhirstarters-client-skeleton-5.0.0.jar
I get a message:
-5.0.0.jar
no main manifest attribute, in hapi-fhirstarters-client-skeleton-5.0.0.jar
when I try:
java -cp hapi-fhirstarters-client-skeleton-5.0.0.jar test.TestApplication
I see:
5.0.0.jar test.TestApplicationError: Unable to initialize main class test.TestApplicationCaused by: java.lang.NoClassDefFoundError: org/hl7/fhir/instance/model/api/IBaseResource
team I promise I will learn more about maven and java environment stuff but if I am doing something simple and stupid here I'd really appreciate the help.
-Carty