J2SE Log resource path, minor cleanup

Cleanup code to check for resource path and log the path.