Comments (7)
@chipat what exactly are you trying to do? I'm not totally clear.
from nodyn.
Hello @lance ,
I just forked the source code and I am trying to run nodyn directly from the source (I am using intellij IDE). Basically, I am trying to run .
java org.projectodd.nodyn.Main --debug --console
Would that work? (assuming all jars are in the classpath)
Thanks!
from nodyn.
I don’t typically run from an IDE. How are you supplying the args to Main.main()?
On May 6, 2014, at 5:26 PM, Chirag Patel [email protected] wrote:
Hello Lance,
I just forked the source code and I am trying to run nodyn directly from the source (I am using intellij IDE). Basically, I am trying to run .java org.projectodd.nodyn.Main --debug --console
Would that work? (assuming all jars are in the classpath)
Thanks!
—
Reply to this email directly or view it on GitHub.
from nodyn.
Yes. Thats pretty much what I am doing. The Main.main() is being called with two args "--debug" and "--console"
Here is the entire stack trace. (Sorry for not attaching the entire stack trace earlier :) )
There was an error loading the module util.js. Error message: ReferenceError: unable to reference: global
org.dynjs.exception.ThrowException: ReferenceError: unable to reference: global
at .(util.js:67)
at Object.require(util.js:659)
at Object.require(node_console.js:1)
at .(:15)
at .(Unknown Source)
at org.dynjs.runtime.interp.InvokeDynamicInterpretingVisitor.getValue(InvokeDynamicInterpretingVisitor.java:146)
at org.dynjs.runtime.interp.BasicInterpretingVisitor.visit(BasicInterpretingVisitor.java:966)
at org.dynjs.parser.ast.DotExpression.accept(DotExpression.java:70)
at org.dynjs.runtime.interp.InvokeDynamicInterpretingVisitor.visit(InvokeDynamicInterpretingVisitor.java:64)
at org.dynjs.parser.ast.FunctionCallExpression.accept(FunctionCallExpression.java:85)
at org.dynjs.runtime.interp.BasicInterpretingVisitor.visit(BasicInterpretingVisitor.java:875)
at org.dynjs.parser.ast.IfStatement.accept(IfStatement.java:93)
at org.dynjs.runtime.interp.BasicInterpretingVisitor.visit(BasicInterpretingVisitor.java:286)
at org.dynjs.parser.ast.BlockStatement.accept(BlockStatement.java:117)
at org.dynjs.runtime.interp.InterpretedBasicBlock.call(InterpretedBasicBlock.java:28)
at org.dynjs.runtime.wrapper.JavascriptFunction.call(JavascriptFunction.java:45)
at org.dynjs.runtime.ExecutionContext.call(ExecutionContext.java:157)
at org.dynjs.runtime.linker.InterpretingInvokeDynamicHandler.call(InterpretingInvokeDynamicHandler.java:40)
at org.dynjs.runtime.interp.InvokeDynamicInterpretingVisitor.visit(InvokeDynamicInterpretingVisitor.java:89)
at org.dynjs.parser.ast.FunctionCallExpression.accept(FunctionCallExpression.java:85)
at org.dynjs.runtime.interp.InvokeDynamicInterpretingVisitor.visit(InvokeDynamicInterpretingVisitor.java:31)
at org.dynjs.parser.ast.AssignmentExpression.accept(AssignmentExpression.java:32)
at org.dynjs.runtime.interp.BasicInterpretingVisitor.visit(BasicInterpretingVisitor.java:480)
at org.dynjs.parser.ast.ExpressionStatement.accept(ExpressionStatement.java:54)
at org.dynjs.runtime.interp.BasicInterpretingVisitor.visit(BasicInterpretingVisitor.java:286)
at org.dynjs.parser.ast.BlockStatement.accept(BlockStatement.java:117)
at org.dynjs.runtime.interp.InterpretedBasicBlock.call(InterpretedBasicBlock.java:28)
at org.dynjs.runtime.wrapper.JavascriptProgram.execute(JavascriptProgram.java:37)
at org.dynjs.runtime.ExecutionContext.execute(ExecutionContext.java:124)
at org.dynjs.runtime.Runner.execute(Runner.java:82)
at org.dynjs.runtime.modules.ClasspathModuleProvider.load(ClasspathModuleProvider.java:25)
at org.dynjs.runtime.builtins.Require.call(Require.java:153)
at org.dynjs.runtime.AbstractNativeFunction.call(AbstractNativeFunction.java:67)
at org.dynjs.runtime.ExecutionContext.call(ExecutionContext.java:157)
at org.dynjs.runtime.linker.InterpretingInvokeDynamicHandler.call(InterpretingInvokeDynamicHandler.java:40)
at org.dynjs.runtime.interp.InvokeDynamicInterpretingVisitor.visit(InvokeDynamicInterpretingVisitor.java:89)
at org.dynjs.parser.ast.FunctionCallExpression.accept(FunctionCallExpression.java:85)
at org.dynjs.runtime.interp.BasicInterpretingVisitor.visit(BasicInterpretingVisitor.java:1520)
at org.dynjs.parser.ast.VariableDeclaration.accept(VariableDeclaration.java:43)
at org.dynjs.runtime.interp.BasicInterpretingVisitor.visit(BasicInterpretingVisitor.java:1531)
at org.dynjs.parser.ast.VariableStatement.accept(VariableStatement.java:80)
at org.dynjs.runtime.interp.BasicInterpretingVisitor.visit(BasicInterpretingVisitor.java:286)
at org.dynjs.parser.ast.BlockStatement.accept(BlockStatement.java:117)
at org.dynjs.runtime.interp.InterpretedBasicBlock.call(InterpretedBasicBlock.java:28)
at org.dynjs.runtime.wrapper.JavascriptProgram.execute(JavascriptProgram.java:37)
at org.dynjs.runtime.ExecutionContext.execute(ExecutionContext.java:124)
at org.dynjs.runtime.Runner.execute(Runner.java:82)
at org.dynjs.runtime.modules.ClasspathModuleProvider.load(ClasspathModuleProvider.java:25)
at org.dynjs.runtime.builtins.Require.call(Require.java:153)
at org.dynjs.runtime.AbstractNativeFunction.call(AbstractNativeFunction.java:67)
at org.dynjs.runtime.ExecutionContext.call(ExecutionContext.java:157)
at org.dynjs.runtime.linker.InterpretingInvokeDynamicHandler.call(InterpretingInvokeDynamicHandler.java:40)
at org.dynjs.runtime.interp.InvokeDynamicInterpretingVisitor.visit(InvokeDynamicInterpretingVisitor.java:89)
at org.dynjs.parser.ast.FunctionCallExpression.accept(FunctionCallExpression.java:85)
at org.dynjs.runtime.interp.InvokeDynamicInterpretingVisitor.visit(InvokeDynamicInterpretingVisitor.java:31)
at org.dynjs.parser.ast.AssignmentExpression.accept(AssignmentExpression.java:32)
at org.dynjs.runtime.interp.BasicInterpretingVisitor.visit(BasicInterpretingVisitor.java:480)
at org.dynjs.parser.ast.ExpressionStatement.accept(ExpressionStatement.java:54)
at org.dynjs.runtime.interp.BasicInterpretingVisitor.visit(BasicInterpretingVisitor.java:286)
at org.dynjs.parser.ast.BlockStatement.accept(BlockStatement.java:117)
at org.dynjs.runtime.interp.InterpretedBasicBlock.call(InterpretedBasicBlock.java:28)
at org.dynjs.runtime.wrapper.JavascriptProgram.execute(JavascriptProgram.java:37)
at org.dynjs.runtime.ExecutionContext.eval(ExecutionContext.java:139)
at org.dynjs.runtime.Runner.evaluate(Runner.java:102)
at org.projectodd.nodyn.Main.initScript(Main.java:116)
at org.projectodd.nodyn.Main.initializeRuntime(Main.java:83)
at org.dynjs.cli.Main.startRepl(Main.java:144)
at org.dynjs.cli.Main.run(Main.java:65)
at org.projectodd.nodyn.Main.main(Main.java:51)
nodyn console.
Type exit and press ENT
from nodyn.
OK - I think I see what’s going on. I will take a look at this tonight or in the morning.
Lance
On May 6, 2014, at 5:57 PM, Chirag Patel [email protected] wrote:
Yes. Thats pretty much what I am doing. The Main.main() is being called with two args "--debug" and "--console"
Here is the entire stack trace. (Sorry for not attaching the entire stack trace earlier :) )
at .(util.js:67)
at Object.require(util.js:659)
at Object.require(node_console.js:1)
at .(:15)
at .(Unknown Source)
at org.dynjs.runtime.interp.InvokeDynamicInterpretingVisitor.getValue(InvokeDynamicInterpretingVisitor.java:146)
at org.dynjs.runtime.interp.BasicInterpretingVisitor.visit(BasicInterpretingVisitor.java:966)
at org.dynjs.parser.ast.DotExpression.accept(DotExpression.java:70)
at org.dynjs.runtime.interp.InvokeDynamicInterpretingVisitor.visit(InvokeDynamicInterpretingVisitor.java:64)
at org.dynjs.parser.ast.FunctionCallExpression.accept(FunctionCallExpression.java:85)
at org.dynjs.runtime.interp.BasicInterpretingVisitor.visit(BasicInterpretingVisitor.java:875)
at org.dynjs.parser.ast.IfStatement.accept(IfStatement.java:93)
at org.dynjs.runtime.interp.BasicInterpretingVisitor.visit(BasicInterpretingVisitor.java:286)
at org.dynjs.parser.ast.BlockStatement.accept(BlockStatement.java:117)
at org.dynjs.runtime.interp.InterpretedBasicBlock.call(InterpretedBasicBlock.java:28)
at org.dynjs.runtime.wrapper.JavascriptFunction.call(JavascriptFunction.java:45)
at org.dynjs.runtime.ExecutionContext.call(ExecutionContext.java:157)
at org.dynjs.runtime.linker.InterpretingInvokeDynamicHandler.call(InterpretingInvokeDynamicHandler.java:40)
at org.dynjs.runtime.interp.InvokeDynamicInterpretingVisitor.visit(InvokeDynamicInterpretingVisitor.java:89)
at org.dynjs.parser.ast.FunctionCallExpression.accept(FunctionCallExpression.java:85)
at org.dynjs.runtime.interp.InvokeDynamicInterpretingVisitor.visit(InvokeDynamicInterpretingVisitor.java:31)
at org.dynjs.parser.ast.AssignmentExpression.accept(AssignmentExpression.java:32)
at org.dynjs.runtime.interp.BasicInterpretingVisitor.visit(BasicInterpretingVisitor.java:480)
at org.dynjs.parser.ast.ExpressionStatement.accept(ExpressionStatement.java:54)
at org.dynjs.runtime.interp.BasicInterpretingVisitor.visit(BasicInterpretingVisitor.java:286)
at org.dynjs.parser.ast.BlockStatement.accept(BlockStatement.java:117)
at org.dynjs.runtime.interp.InterpretedBasicBlock.call(InterpretedBasicBlock.java:28)
at org.dynjs.runtime.wrapper.JavascriptProgram.execute(JavascriptProgram.java:37)
at org.dynjs.runtime.ExecutionContext.execute(ExecutionContext.java:124)
at org.dynjs.runtime.Runner.execute(Runner.java:82)
at org.dynjs.runtime.modules.ClasspathModuleProvider.load(ClasspathModuleProvider.java:25)
at org.dynjs.runtime.builtins.Require.call(Require.java:153)
at org.dynjs.runtime.AbstractNativeFunction.call(AbstractNativeFunction.java:67)
at org.dynjs.runtime.ExecutionContext.call(ExecutionContext.java:157)
at org.dynjs.runtime.linker.InterpretingInvokeDynamicHandler.call(InterpretingInvokeDynamicHandler.java:40)
at org.dynjs.runtime.interp.InvokeDynamicInterpretingVisitor.visit(InvokeDynamicInterpretingVisitor.java:89)
at org.dynjs.parser.ast.FunctionCallExpression.accept(FunctionCallExpression.java:85)
at org.dynjs.runtime.interp.BasicInterpretingVisitor.visit(BasicInterpretingVisitor.java:1520)
at org.dynjs.parser.ast.VariableDeclaration.accept(VariableDeclaration.java:43)
at org.dynjs.runtime.interp.BasicInterpretingVisitor.visit(BasicInterpretingVisitor.java:1531)
at org.dynjs.parser.ast.VariableStatement.accept(VariableStatement.java:80)
at org.dynjs.runtime.interp.BasicInterpretingVisitor.visit(BasicInterpretingVisitor.java:286)
at org.dynjs.parser.ast.BlockStatement.accept(BlockStatement.java:117)
at org.dynjs.runtime.interp.InterpretedBasicBlock.call(InterpretedBasicBlock.java:28)
at org.dynjs.runtime.wrapper.JavascriptProgram.execute(JavascriptProgram.java:37)
at org.dynjs.runtime.ExecutionContext.execute(ExecutionContext.java:124)
at org.dynjs.runtime.Runner.execute(Runner.java:82)
at org.dynjs.runtime.modules.ClasspathModuleProvider.load(ClasspathModuleProvider.java:25)
at org.dynjs.runtime.builtins.Require.call(Require.java:153)
at org.dynjs.runtime.AbstractNativeFunction.call(AbstractNativeFunction.java:67)
at org.dynjs.runtime.ExecutionContext.call(ExecutionContext.java:157)
at org.dynjs.runtime.linker.InterpretingInvokeDynamicHandler.call(InterpretingInvokeDynamicHandler.java:40)
at org.dynjs.runtime.interp.InvokeDynamicInterpretingVisitor.visit(InvokeDynamicInterpretingVisitor.java:89)
at org.dynjs.parser.ast.FunctionCallExpression.accept(FunctionCallExpression.java:85)
at org.dynjs.runtime.interp.InvokeDynamicInterpretingVisitor.visit(InvokeDynamicInterpretingVisitor.java:31)
at org.dynjs.parser.ast.AssignmentExpression.accept(AssignmentExpression.java:32)
at org.dynjs.runtime.interp.BasicInterpretingVisitor.visit(BasicInterpretingVisitor.java:480)
at org.dynjs.parser.ast.ExpressionStatement.accept(ExpressionStatement.java:54)
at org.dynjs.runtime.interp.BasicInterpretingVisitor.visit(BasicInterpretingVisitor.java:286)
at org.dynjs.parser.ast.BlockStatement.accept(BlockStatement.java:117)
at org.dynjs.runtime.interp.InterpretedBasicBlock.call(InterpretedBasicBlock.java:28)
at org.dynjs.runtime.wrapper.JavascriptProgram.execute(JavascriptProgram.java:37)
at org.dynjs.runtime.ExecutionContext.eval(ExecutionContext.java:139)
at org.dynjs.runtime.Runner.evaluate(Runner.java:102)
at org.projectodd.nodyn.Main.initScript(Main.java:116)
at org.projectodd.nodyn.Main.initializeRuntime(Main.java:83)
at org.dynjs.cli.Main.startRepl(Main.java:144)
at org.dynjs.cli.Main.run(Main.java:65)
at org.projectodd.nodyn.Main.main(Main.java:51)
—
Reply to this email directly or view it on GitHub.
from nodyn.
@chipat @softwarepsychology please give it a try with this latest commit and let me know how it works for you.
from nodyn.
It worked! Awesome...! Thank you @lance!
from nodyn.
Related Issues (20)
- Cannot subclass Array HOT 2
- mvn install hangs on test failure HOT 2
- ES6 Features (generators) HOT 2
- Build fails on Open JDK 1.8
- Error with programmatic code
- Static files with express doesn't work
- Invoke Java APIs from Nodyn HOT 3
- fs.readFileSync won't read files >512kb HOT 2
- Nodyn unable to initialize when using https module
- fs.writeFile hangs on Windows
- Scripts loaded from .jar file
- Node version support HOT 1
- java.nio.BufferOverflowException during fs.readFileSync() HOT 1
- Support process.hrtime()
- Does not work on windows HOT 3
- vertx example does not work... not found in any repositories HOT 1
- Java code should not ex.printStackTrace()
- Broken Links on JBoss.org HOT 8
- Nodyn should maintain process.cwd separate from System.getProperty(user.dir) HOT 1
- Programmatic instructions for gae HOT 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nodyn.