pose / jav8

V8 as a JVM Scripting Engine (aka JSR-223)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

jav8

Introduction

The idea behind this project is to provide V8 as a JVM Scripting Engine (aka JSR-223).

What's new?

  • Maven is being used for the builds using the nar-maven-plugin
  • Some smaller changes in style and fixes

Original Repositories

This is my fork from Flier Lu's project. This is a link to the original svn repository. Another interesting fork can be found here by Greg Fodor.

Install/Build

  1. Make sure you have maven 3.x and a C Compiler (gcc, mingw) installed.
  2. Clone into a folder the v8 project:
    $ git clone git://github.com/v8/v8.git
  1. Build V8:
    $ make native library=shared
  1. Add to your settings.xml the property v8.path (where your v8 clone is located)
    ...
    <profiles>
      <profile>
        <id>default</id>
        <properties>
          <v8.path>/path/to/v8</v8.path>
        </properties>

        ...

      </profile>
    </profiles>
    ...
  1. Run
    $ mvn clean install
  1. Enjoy!

Platforms/OS Supported

Currently, I have only tested this on Mac OS X but if it is not working out-of-the-box it should be no hard than to tweak a couple of the nar-maven-plugin options.

Happy hacking!

About

V8 as a JVM Scripting Engine (aka JSR-223)


Languages

Language:C++ 57.1%Language:Java 42.9%