Skip to content

方式一:每次使用命令行打开jd-gui

  • 打开powershell(不可用cmd,用cmd执行命令行启动后打开文件依旧是乱码)

    image-20251010085112322

  • 执行下面命令(.exe文件改成你自己本地的jd-gui可执行文件的绝对路径)

    shell
    java -D'file.encoding=UTF-8' -jar "D:\workSpace\2_development_tools\jdgui\jdguiwindows\jd-gui.exe"

方式二:将命令行保存为powershell脚本(.ps1后缀文件)

  • 这种方式是为了解决上述方式每次都需要打开powershell并执行命令的繁琐问题

  • 右击文件,使用powershell运行即可

    image-20251010092042467

MIT版权,未经许可禁止任何形式的转载