luje安装Step by Step(Ubuntu)

  1. Prepare Environment

  2. JDK: wget && vim ~/.profile

  3. Ant: wget && vim ~/.profile or apt-get install ant

  4. Installing LuaJIT 2

  5. wget http://luajit.org/download/LuaJIT-2.0.2.tar.gz

  6. tar zxf LuaJIT-2.0.2.tar.gz

  7. apt-get install make gcc

  8. cd LuaJIT-2.0.2 && make && make install

  9. Installing luje

  10. wget https://cowlark.com/luje/tarball/luje-0.2.tar.gz?uuid=release-0.2

  11. tar zxf luje-0.2.tar.gz (Note: 此处运行无效,虽然后缀是gz,但貌似不是gzip格式的文件,本人Windows上7zip解压后上传的Ubuntu)

  12. cd luje-0.2 && ant

  13. Important: cd vm && vim Options.lua (Note: 自建一个选项文件,vm下ClimpLoader、Utils等需要使用Options.TraceCompilations的Boolean变量以开启编译追踪功能,文件内容如下)

    local TraceCompilations = false

    return
    {

    TraceCompilations = TraceCompilations
    

    }

  14. Running

  15. ./luje com.cowlark.luje.LocalBench

  16. Help

  17. ./luje -h

  18. Custom Programm Running

  19. vim Hello.java (Summary Content: println(“Hello World run on luje-0.2!\n”);)

  20. javac Hello.java

  21. mv Hello.class bin/ (Note: bin/为luje-0.2下的bin目录,ant后才出现,放置需要运行的Java Classes)

  22. ./luje Hello

  23. The End.

你可能感兴趣的:(java,luajit,luje)