Ant: Exception in thread “main” java.lang.NoClassDefFoundError: org/apache/tools/ant/launch/Launcher

前端 未结 1 1990
臣服心动
臣服心动 2021-01-04 06:11

I\'ve installed ubuntu 10.10 in my system and installed ant with the following command: sudo apt-get install ant

Now, ant is visible in the share folder, so I\'ve

相关标签:
1条回答
  • 2021-01-04 07:04

    try the following:

    JAVA_HOME="/usr/lib/jvm/java-6-sun"
    ANT_HOME="/usr/share/ant" # do not add "bin" at the end of the path**
    PATH="$ANT_HOME/bin:$PATH"
    
    0 讨论(0)
提交回复
热议问题