aspose file tools*
The moose likes I/O and Streams and the fly likes Would like to use the ScriptEngineManager in Netbeans Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » I/O and Streams
Bookmark "Would like to use the ScriptEngineManager in Netbeans" Watch "Would like to use the ScriptEngineManager in Netbeans" New topic
Author

Would like to use the ScriptEngineManager in Netbeans

Rooks Forgenal
Ranch Hand

Joined: Jun 05, 2009
Posts: 82
I have written this code in Netbeans and it fails miserably. It is valid code. The purpose is to use Ruby commands in a Java environment.

It is failing on the ninth line. I assume that netbeans is not seeing my scriptengine directory. I downloaded it and unzipped it but I don't know how to point Netbeans to it. Does anyone have any suggestions?
Rooks Forgenal
Ranch Hand

Joined: Jun 05, 2009
Posts: 82
Nevermind. I had my libraries mixed up for JRuby. It is the next code that is really the problem. Once the object is made, how do I use the method inside?

The code inside the File is:
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Would like to use the ScriptEngineManager in Netbeans
 
Similar Threads
Exception in thread "main" NoClassDefFoundError
Server-Side JavaScript
Java 1.6 Scripting Query
Convert String into an expression.
Three questions about Java Scripting API.