文章详情

  • 游戏榜单
  • 软件榜单
关闭导航
热搜榜
热门下载
热门标签
php爱好者> php文档>JDK And ANTLR -- Install and Configuration

JDK And ANTLR -- Install and Configuration

时间:2009-03-16  来源:tubocurarine

    ANTLR, ANother Tool for Language Recognition, is a language tool that provides a framework for constructing recognizers, interpreters, compilers, and translators from grammatical descriptions containing actions in a variety of target language.(see http://www.antlr.org/ for more information).   It was writen in Java and requires JDK to compile java sources. You can download jdk from sun website.         Download and install JDK and ANTLR is not difficult. For JDK, just download it from sun web site, run the bin file and it will begin to install automatically. As to ANTLR, just download the tar.gz file, and unpack it to the location you prefered to.       But it was not ENOUGH. They must be configured to work normally. The configurations here means to set the coresponding envirement varibles, such as $PATH and $CLASSPATH.

1. JDK Path

     I installed JDK in the location: /home/yyc/tools/, so the .bash_profile in my home directory was modified, with following path added: 

    .bashrc in my home director was moddified to add required CLASSPATH, as follows:

exportCLASSPATH=$CLASSPATH:\

.\

:/home/yyc/ANTLR/antlr-3.1.2/lib/antlr-2.7.7.jar:\

/home/yyc/ANTLR/antlr-3.1.2/lib/antlr-3.1.2.jar:\

/home/yyc/ANTLR/antlr-3.1.2/lib/antlr-runtime-3.1.2.jar:\

/home/yyc/ANTLR/antlr-3.1.2/lib/stringtemplate-3.2.jar:\

/home/yyc/tools/jdk1.6.0_12/lib:\

/home/yyc/tools/jdk1.6.0_12/lib/tools.jar



    This is easy indeed, BUT notice there is a "." after the formar $CALSSPAH.     DO NOT FORGET IT. Or, you will receive some error. (Which wasted me 1 hour to resolve this god damn problem).
排行榜 更多 +
开局一个小兵最新版

开局一个小兵最新版

休闲益智 下载
火柴人联盟2腾讯qq登录版

火柴人联盟2腾讯qq登录版

体育竞技 下载
tsuki odyssey游戏(月兔冒险奥德赛)

tsuki odyssey游戏(月兔冒险奥德赛)

休闲益智 下载