reidxx
V2EX  ›  Java

idea mvn 编译打包提示 [程序包 sun.jvm.hotspot.runtime 不存在]

  •  
  •   reidxx · May 28, 2020 · 4285 views
    This topic created in 2199 days ago, the information mentioned may be changed or developed.
    刚刚准备打包更新,mvn clean package 命令,出现这个问题,google 了一圈也没找到方法,有人遇到过吗?

    昨天还好好的,没更新 idea jdk 系统之类的。

    jdk 用的 1.8
    abai
        1
    abai  
       May 28, 2020
    没遇到过,如果你用的是自己安装的 maven,可以试试切换为 idea 自带的
    reidxx
        2
    reidxx  
    OP
       May 28, 2020
    @guoluwei #1 解决了,不知道啥时候在类文件 import 里多了一行 [ import sun.jvm.hotspot.runtime.VM; ] 导致了这个问题。。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3772 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 10:19 · PVG 18:19 · LAX 03:19 · JFK 06:19
    ♥ Do have faith in what you're doing.