无法启动jdk 1.8.0_65-b17

时间:2016-05-24 09:19:10

标签: java java-8

当我尝试在win7中启动jdk1.8.0_65-b17时,使用如javac Test.java之类的命令,java占用的物理内存越来越多,直到99%,但它无法启动。

以前有人遇到过这个问题吗?

C:\Program Files\Java\jdk1.8.0_65\bin>java -version
java version "1.8.0_65"
Java(TM) SE Runtime Environment (build 1.8.0_65-b17)
Java HotSpot(TM) 64-Bit Server VM (build 25.65-b01, mixed mode)
BTW,打印此版本信息需要将近一分钟。

C:\Program Files\Java\jdk1.8.0_65\bin>java -Xshare:dump Allocated shared space: 37879808 bytes at 0x0000000800000000 Loading classes to share ... Loading classes to share: done. Rewriting and linking classes ... Rewriting and linking classes: done Number of classes 2482 instance classes = 2468 obj array classes = 6 type array classes = 8 Calculating fingerprints ... done. Removing unshareable information ... done. Shared Lookup Cache Table Buckets = 8216 bytes Shared Lookup Cache Table Body = 64792 bytes ro space: 6881424 [ 36.3% of total] out of 16777216 bytes [41.0% used] at 0x0000000800000000 rw space: 10456280 [ 55.2% of total] out of 16777216 bytes [62.3% used] at 0x0000000801000000 md space: 1562448 [ 8.3% of total] out of 4194304 bytes [37.3% used] at 0x0000000802000000 mc space: 34053 [ 0.2% of total] out of 131072 bytes [26.0% used] at 0x0000000802400000 total : 18934205 [100.0% of total] out of 37879808 bytes [50.0% used] An error has occurred while processing the shared archive file. Unable to create shared archive file C:\Program Files\Java\jdk1.8.0_65\jre\bin\server\classes.jsa. Error occurred during initialization of VM Unable to use shared archive. 与此同时,我发现了很多" TBM ***。tmp"文件夹" \ jdk1.8.0_65 \ jre \ lib \ ext \",完全约40G,有人熟悉这个吗?enter image description here

1 个答案:

答案 0 :(得分:0)

这不是一个答案,但尝试解锁你是件好事。

  • 你最近升级到jdk-8了吗?
  • 如果是,可以卸载当前的jdk,重启机器并安装jdk-8吗?根据您的机器,选择64或32位的jdk-8。