error: package com.sun.tools.javac.util does not exist

前端 未结 2 654
陌清茗
陌清茗 2020-12-30 23:57

I\'m trying to run my play 2.0.1 application on Ubuntu 11.10 and when I visit domain.com:9000 I get this error in terminal:

info] Compiling 4 Sc         


        
2条回答
  •  耶瑟儿~
    2020-12-31 00:45

    I got this problem when I try to build kotlin/jvm with gradle, I want to post this to others new to jvm, since jdk-9, there is no tools.jar. setting a classpath is good to go.

    JAVA_HOME= path_to_jdk
    
    JRE_HOME= path_to_jre
    
    PATH= ;%JAVA_HOME%\bin;%JRE_HOME%\bin
    
    CLASSPATH=.;%JAVA_HOME%\lib;%JRE_HOME%\lib
    

提交回复
热议问题