Fork and build?

203 views
Skip to first unread message

Matt Woolf

unread,
Nov 6, 2013, 3:00:26 AM11/6/13
to node...@googlegroups.com
Hey Joe - I tweeted you yesterday. I really like node-java and I'm using it in a startup project I'm working on, but would like to add some additional support for Maps. I'm a decent Java/JS coder (15 yrs), but my C++ is 15 years old (ooh - templates, that's new!). Can you tell me what your toolchain is? I didn't spot a makefile or build script anywhere. I'm developing on Ubuntu.

Thanks - and great job :)

Joe Ferner

unread,
Nov 6, 2013, 9:48:24 AM11/6/13
to node...@googlegroups.com
node-java uses node-gyp (https://github.com/TooTallNate/node-gyp) for compiling. When you run "npm install" from a clone of the repository it will compile the C++ code. You can also manually compile it using "node-gyp configure build" you will need to install node-gyp using "npm install node-gyp --save" first though. You can run the unit tests using "npm test". To compile the java test code you need to run javac manually. I'll update the readme to include some of this information.

Matt Woolf

unread,
Nov 6, 2013, 12:24:58 PM11/6/13
to node...@googlegroups.com
Thanks, that'd be great. I'm guessing it won't work first time, can you point me in the direction of a decent debugger for Node/C++ plugins?

Joseph Spencer

unread,
Dec 24, 2013, 2:46:20 PM12/24/13
to node...@googlegroups.com
What about handling this from java and js?

I'm currently working on webdriver-sync and I went this route.

Checkout this class:  

The built jar is imported with java.import and then I'm using a helper module:
Reply all
Reply to author
Forward
0 new messages