14 questions
0
votes
1
answer
181
views
Can not call javascript rosnode module from java
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/...
1
vote
0
answers
273
views
Using pandas and other libraries with Java's ScriptEngine
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();
...
2
votes
1
answer
322
views
String expression interpolation support in java scripting engines
I'm using groovy/nashorn as java engine but not able to interpolate Strings.
jdk.nashorn.api.scripting.NashornScriptEngine scriptEngine =(NashornScriptEngine) factory.getEngineByName("nashorn");
...
1
vote
1
answer
251
views
How to get OSGiScriptEngineManager running
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 ...
0
votes
1
answer
1k
views
If I bind an object of one of my classes to a scripting engine, how can I access it as an object of that class from withing the scripting engine?
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() { ...
0
votes
1
answer
403
views
Calling java script files synchronously failing in Microsoft Edge browser.
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">...
0
votes
1
answer
460
views
Manipulating HTML nodes with java javascript scripting API
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 ...