core-lib / xjar

Spring Boot JAR 安全加密运行工具,支持的原生JAR。

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

使用xjar编译后 无法进行标准输入操作

mywsat opened this issue · comments

commented
Scanner scanner = new Scanner(System.in);
if (scanner.hasNextLine()) {
  licenseCode = scanner.nextLine();
}

标准输入操作 直接跳过了

Scanner scanner = new Scanner(System.in);
if (scanner.hasNextLine()) {
  licenseCode = scanner.nextLine();
}

标准输入操作 直接跳过了

我也遇到了这个问题,我用的版本是4.0.2

XLauncher内没关闭scanner

那请问怎么解决呀