fixed warning caused from missing declaration of init_jdks function.
fixed bug: segmentation fault from nopath function when strrchr function returns NULL.