diff --git a/package.json b/package.json index 9c204a7..582ae98 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,7 @@ "main": "lib/index.js", "dependencies": { "async": ">= 0.2.9", - "java": ">= 0.2.3" + "java": "~ 0" }, "readmeFilename": "README.md", "description": "A node.js wrapper for Boilerpipe, an excellent Java library for boilerplate removal and fulltext extraction from HTML pages.", @@ -35,6 +35,6 @@ "build": "coffee -co lib/ src/", "prepublish": "coffee -co lib/ src/", "postpublish": "rm -rf lib", - "test": "mocha --compilers coffee:coffee-script --globals lw --recursive ./test -t 10000" + "test": "mocha --compilers coffee:coffee-script/register --globals lw --recursive ./test -t 10000" } } diff --git a/src/index.coffee b/src/index.coffee index 039e91c..95ac556 100644 --- a/src/index.coffee +++ b/src/index.coffee @@ -1,6 +1,8 @@ async = require 'async' java = require 'java' +java.options.push("-Xss1280k") + java.classpath.push "#{__dirname}/../jar/nekohtml-1.9.13.jar" java.classpath.push "#{__dirname}/../jar/xerces-2.9.1.jar" java.classpath.push "#{__dirname}/../jar/boilerpipe-core-1.2.0-xissy.jar"