Coder Social home page Coder Social logo

neojam's Introduction

NeoJam

JamVM 的 macOS x86_64 精简移植版。

配合 GNU Classpath 作个人研究之用。

编译

前置条件, 安装 Xcode 或者 Command Line Tools

编译安装 GNU Classpath

参考 classpath-0.99 编译安装

编译 NeoJam

编译 classes

cd lib && ./build.sh && cd ../

编译 NeoJam

  • 编译
mkdir build
cd build
cmake ../
make
  • 测试
cat <<EOF > HelloWorld.java
public class HelloWorld {
  public static void main(String[] args) {
    String x = "Hello";
    String y = " NeoJam";

    System.out.println(x + y);
  }
}
EOF

javac HelloWorld.java

./java HelloWorld

# 输出 `Hello NeoJam` 即为正常

调试

使用 Clion 打开即可。

局限

  1. 只支持 macos x86_64,需要调试其他平台,可参考原项目进行移植。

源码分析相关

neojam's People

Contributors

guxingke avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

neojam's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.