class.getSource().getParentFile().getPath() class.getProtectionDomain().getCodeSource().getLocation().getFile() 凡是加密的代码 用类似这样的代码 都报java.lang.NullPointerException 有什么解决办法吗 老大 是为什么啊