In test/hotspot/jtreg/runtime/cds/appcds/applications/spring-petclinic/SpringPetClinic.java, we launch a child JVM with the following classpath setting:
java ... -cp @petclinic-snapshot/target/unpacked/classpath -Xlog:class+load=debug:file=SpringPetClinic.classlist.log::filesize=0 org.springframework.samples.petclinic.PetClinicApplication
https://github.com/openjdk/leyden/blob/864228c7c494e7d46ab653eaacaacb8169dd34df/test/hotspot/jtreg/runtime/cds/appcds/applications/spring-petclinic/SpringPetClinic.java#L75
However, the petclinic-snapshot/target/unpacked/classpath is created with Linux path separators (:) so it doesn't work on Windows:
[STDERR]
Error: Could not find or load main class org.springframework.samples.petclinic.PetClinicApplication
Caused by: java.lang.ClassNotFoundException: org.springframework.samples.petclinic.PetClinicApplication
java ... -cp @petclinic-snapshot/target/unpacked/classpath -Xlog:class+load=debug:file=SpringPetClinic.classlist.log::filesize=0 org.springframework.samples.petclinic.PetClinicApplication
https://github.com/openjdk/leyden/blob/864228c7c494e7d46ab653eaacaacb8169dd34df/test/hotspot/jtreg/runtime/cds/appcds/applications/spring-petclinic/SpringPetClinic.java#L75
However, the petclinic-snapshot/target/unpacked/classpath is created with Linux path separators (:) so it doesn't work on Windows:
[STDERR]
Error: Could not find or load main class org.springframework.samples.petclinic.PetClinicApplication
Caused by: java.lang.ClassNotFoundException: org.springframework.samples.petclinic.PetClinicApplication