iceant / rocker-spring-boot-starter

spring boot starter for rocker template
MIT License
3 stars 2 forks source link

ClasspathUtil #2

Open nitesla opened 5 years ago

nitesla commented 5 years ago

I'm having an issue with URLClassPath library (package sun.misc does not exist). I'm using oracle jdk 12.

iceant commented 5 years ago

thanks for report issues. I have made a demo and tested with oracle jdk12. please check https://github.com/iceant/demo-rocker-spring-boot-starter for reference. Because after jdk9, oracle redesigned security module for reflect to access field and method of classes. you need to add the following parameter to start vm: "--add-opens java.base/jdk.internal.loader=ALL-UNNAMED". This is only need at development stage. At runtime, everyting is class, so we don't need to use ClasspathUtil anymore.