Skip to main content
Stack Overflow for Teams is now Stack Internal: See how we’re powering the human intelligence layer of enterprise AI. Read more >
Filter by
Sorted by
Tagged with
0 votes
1 answer
180 views

I am trying to create a web application(in java) that can communicate with a ros server. Therefore I use the rosnode module. For the website I use vaadin. My problem is that I do not know how to call/...
CoderOfTheForce's user avatar
2 votes
0 answers
457 views

I am trying to run .kts scripts (using Script Engine) from a Kotlin program. The Kotlin scripts reside in the resource folder of the project and normally they have support for auto-completion, IDE ...
Andrei Ciobanu's user avatar
1 vote
0 answers
273 views

I'm running Python through Java's Scripting Engine. The basic hello world is working well, but it fails when I import pandas in the python script. StringWriter stringWriter = new StringWriter(); ...
Palak Bansal's user avatar
0 votes
1 answer
1k views

I'm working on a java spring app which I need to provide the ability to add new code without altering standard code. My challenges: Store "custom" code in a database Inject code at execution time ...
felix53's user avatar
  • 41
2 votes
1 answer
322 views

I'm using groovy/nashorn as java engine but not able to interpolate Strings. jdk.nashorn.api.scripting.NashornScriptEngine scriptEngine =(NashornScriptEngine) factory.getEngineByName("nashorn"); ...
Zizou's user avatar
  • 953
-2 votes
1 answer
106 views

What I want to do is, I have a semantic parser written in Java, and this semantic parser will output one-liner code in Python (string). And I want to make this consecutively. Methods I searched are ...
anton-sturluson's user avatar
1 vote
1 answer
251 views

I'm not quite a total newbie to OSGi, but apparently newbie enough. What I want to do is write an OSGi (Apache Felix) bundle and use the Java scripting API (JSR-223) with for example Groovy. For ...
tbeernot's user avatar
  • 2,680
5 votes
1 answer
1k views

I have a following class with one variable of type Long package com.nm.poc; public class JSLong{ private Long longValue; public Long getLongValue() { return longValue; } public void ...
Nitesh's user avatar
  • 97
0 votes
1 answer
1k views

I want to be able to pass an object into ScriptEngine via put() and be able to access its properties and methods from within the scripting engine. e.g public class MyClass { String getName() { ...
ycomp's user avatar
  • 8,613
30 votes
4 answers
70k views

How can I determine if a variable exists from within the Groovy code running in the Scripting Engine? The variable was put by ScriptEngine's put method
ycomp's user avatar
  • 8,613
0 votes
1 answer
402 views

I have abc.html page in which i am calling two javascript files as below in the head tag:- <head> <script src="script_files/1.js"></script> <script src="script_files/2.js">...
Vinay's user avatar
  • 735
1 vote
2 answers
3k views

I'm trying to create ScriptEngine with name "nashorn": ScriptEngineManager manager = new ScriptEngineManager(); ScriptEngine engine = manager.getEngineByName("nashorn"); if (engine == null) { ...
Ksenia's user avatar
  • 3,751
0 votes
1 answer
460 views

I'm using the Java Scripting API which is working quite well. Now I have a function where I want to get all <a> tags from a String and then add/remove attributes before returning the ...
msp's user avatar
  • 3,371
1 vote
1 answer
1k views

I'm using Rhino to interpret javascripts by Java. My use case requires these javascripts making (multiple) service calls (RESTful/Webservices/HTTP GET/POST). Some of these service calls are async in ...
ankitn's user avatar
  • 71