java混淆时间出现 An exception has occurred in the compiler (1.5.0_07)异常解决

An exception has occurred in the compiler (1.5.0_07). Please file a bug at the Java Developer Connection (http://java.sun.com/webapps/bugreport)  after checking the Bug Parade for duplicates. Include your program and the following diagnostic in your report.  Thank you.
    [javac] java.lang.AssertionError: com.sun.tools.javac.jvm.ClassFile$TypeName@dc6a77
    [javac] at com.sun.tools.javac.jvm.Code._$1(Unknown Source)
    [javac] at com.sun.tools.javac.jvm.Code.emitop1(Unknown Source)
    [javac] at com.sun.tools.javac.jvm.Items$ImmediateItem._$1(Unknown Source)
    [javac] at com.sun.tools.javac.jvm.Items$ImmediateItem.load(Unknown Source)
    [javac] at com.sun.tools.javac.jvm.Gen.genArgs(Unknown Source)
    [javac] at com.sun.tools.javac.jvm.Gen.visitApply(Unknown Source)
    [javac] at com.sun.tools.javac.tree.Tree$Apply.accept(Unknown Source)
    [javac] at com.sun.tools.javac.jvm.Gen.genExpr(Unknown Source)
    [javac] at com.sun.tools.javac.jvm.Gen.visitAssign(Unknown Source)
    [javac] at com.sun.tools.javac.tree.Tree$Assign.accept(Unknown Source)
    [javac] at com.sun.tools.javac.jvm.Gen.genExpr(Unknown Source)
    [javac] at com.sun.tools.javac.jvm.Gen.visitConditional(Unknown Source)
    [javac] at com.sun.tools.javac.tree.Tree$Conditional.accept(Unknown Source)
    [javac] at com.sun.tools.javac.jvm.Gen.genExpr(Unknown Source)
    [javac] at com.sun.tools.javac.jvm.Gen.visitSelect(Unknown Source)
    [javac] at com.sun.tools.javac.tree.Tree$Select.accept(Unknown Source)
    [javac] at com.sun.tools.javac.jvm.Gen.genExpr(Unknown Source)
    [javac] at com.sun.tools.javac.jvm.Gen.visitApply(Unknown Source)
    [javac] at com.sun.tools.javac.tree.Tree$Apply.accept(Unknown Source)
    [javac] at com.sun.tools.javac.jvm.Gen.genExpr(Unknown Source)
    [javac] at com.sun.tools.javac.jvm.Gen.visitBinary(Unknown Source)
    [javac] at com.sun.tools.javac.tree.Tree$Binary.accept(Unknown Source)
    [javac] at com.sun.tools.javac.jvm.Gen.genExpr(Unknown Source)
    [javac] at com.sun.tools.javac.jvm.Gen.genArgs(Unknown Source)
    [javac] at com.sun.tools.javac.jvm.Gen.visitApply(Unknown Source)
    [javac] at com.sun.tools.javac.tree.Tree$Apply.accept(Unknown Source)
    [javac] at com.sun.tools.javac.jvm.Gen.genExpr(Unknown Source)
    [javac] at com.sun.tools.javac.jvm.Gen.visitExec(Unknown Source)
    [javac] at com.sun.tools.javac.tree.Tree$Exec.accept(Unknown Source)
    [javac] at com.sun.tools.javac.jvm.Gen.genDef(Unknown Source)
    [javac] at com.sun.tools.javac.jvm.Gen.genStat(Unknown Source)
    [javac] at com.sun.tools.javac.jvm.Gen.genStat(Unknown Source)
    [javac] at com.sun.tools.javac.jvm.Gen.genStats(Unknown Source)
    [javac] at com.sun.tools.javac.jvm.Gen.visitBlock(Unknown Source)
    [javac] at com.sun.tools.javac.tree.Tree$Block.accept(Unknown Source)
    [javac] at com.sun.tools.javac.jvm.Gen.genDef(Unknown Source)
    [javac] at com.sun.tools.javac.jvm.Gen.genStat(Unknown Source)
    [javac] at com.sun.tools.javac.jvm.Gen.genMethod(Unknown Source)
    [javac] at com.sun.tools.javac.jvm.Gen.visitMethodDef(Unknown Source)
    [javac] at com.sun.tools.javac.tree.Tree$MethodDef.accept(Unknown Source)
    [javac] at com.sun.tools.javac.jvm.Gen.genDef(Unknown Source)
    [javac] at com.sun.tools.javac.jvm.Gen.genClass(Unknown Source)
    [javac] at com.sun.tools.javac.main.JavaCompiler.genCode(Unknown Source)
    [javac] at com.sun.tools.javac.main.JavaCompiler.compile(Unknown Source)
    [javac] at com.sun.tools.javac.main.Main.compile(Unknown Source)
    [javac] at com.sun.tools.javac.main.Main.compile(Unknown Source)
    [javac] at com.sun.tools.javac.Main.compile(Unknown Source)

    [javac] at com.sun.tools.javac.Main.main(Unknown Source)


以上是异常信息,出现这种异常是由于jocky的jdk与电脑的jdk无法兼容的问题,下载一个高版本的jdk配置一下坏境变量,即可解决问题

你可能感兴趣的:(java异常)