Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Would like to use the ScriptEngineManager in Netbeans

 
Rooks Forgenal
Ranch Hand
Posts: 82
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 82
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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:
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic