This question already has an answer here:
I'm developing software that i want to license under the MIT License. My software uses libraries licensed under the GPL. I'm NOT recompiling, building, or modifying the Library but I am linking to it. Am i allowed to distribute the package under the MIT license or do i have to distribute the package under the GPL?
The library is actually dual licensed under CDDL 1.1 and GPLv2 with Classpath Exception. Take a look here: https://jsonp.java.net/license.html