Questions tagged [liveconnect]

LiveConnect allows ECMAscript code running Mozilla's Rhino interpreter to access Java code in a transparent way.

This tag should be used in questions specific to Mozilla Rhino ECMAscript interpreter that relates to ECMAscript or JavaScript AND Java. It's a way to embed Java code in your JavaScript scripts.

You can check Embedding Rhino or Scripting Java for tutorials.

Note that the Rhino interpreter can sandbox the interpreted code to disallow this functionality. You won't see this active in a browser since it poses security risks. That said, it's a very powerful technology that enables a lot of possibility for projects using Rhino.

54 questions
2
votes
2 answers

Send Java object from JavaScript to Applet

How I can send Java object from JavaScript to Java? LiveConnect allow us to get Java objects from calling applet method. i.e. we can have following method in applet: public MyClass getMyClass() { return new MyClass(); }` where MyClass is: public…
WelcomeTo
  • 19,843
  • 53
  • 170
  • 286
2
votes
0 answers

Applet printing; Applet discards security permission ; Windows7 & Java7

Using Java Liveconnect able to access printer through applet from browser, for access rights I've added permission java.lang.RuntimePermission "queuePrintJob"; in C:\Program Files (x86)\Java\jre7\lib\security\java.policy file. But still I'm getting…
vels4j
  • 11,208
  • 5
  • 38
  • 63
2
votes
3 answers

Can a java applet manipulate the HTML page containing it?

I wanted to know if I can write something on the HTML page containing my Java applet from within the applet. More generally, what interactions are possible between these two? Thanks.
Mohammad Alinia
  • 320
  • 2
  • 9
1
vote
0 answers

Efficiently streaming audio samples retrieved from a java object in Gecko (firefox extension)

I am writing a firefox extension which needs to play a certain PCM stream. The samples are retrieved from a java module over LiveConnect: Java code: public class Synthesizer { ... public float[] synthesizeFloats(int[] symbols) { //…
smichak
  • 4,716
  • 3
  • 35
  • 47
1
vote
2 answers

How can an Applet call a method in a different frame (from the same web site)?

Given an Applet in one frame in a multi-frame web application where all frames are loaded from the same web server, how can that Applet invoke JavaScript methods in other frames? I tried something like…
Eddie
  • 53,828
  • 22
  • 125
  • 145
1
vote
0 answers

SSAS Multidimensional Security Role Not Working on PowerBI server (on prem) Reports

We are seeking for your assistance for populating filtered data from SSAS Multidimensional cube on the Reports, which are deployed on PowerBI Report Server (on prem). Currently, when Power BI Connect with SSAS Via live connect, all the users who…
1
vote
1 answer

Do we need a scheduled refresh with Live Connection?

I am working on SSAS Tabular project and I am using Live Connection when importing data to Power BI. Do I need to schedule refresh in Power BI ?
Martin James
  • 126
  • 1
  • 3
  • 19
1
vote
1 answer

How can I decouple java to javascript calls? Applet is waiting on itself!

I am having trouble avoiding a sporadic crash in my applet that appears to be caused by a thread waiting on itself. Strangely, this only seems to happen in google chrome. 30-second read: Applet.methodA() calls…
Ben
  • 1,292
  • 9
  • 17
1
vote
0 answers

How to connect a Hive Database on Google Cloud Dataproc to Tableau Online, does Tableau Bridge helps in live connection?

How to connect a Hive Database on Google Cloud Dataproc to Tableau Online as a data source? Does the Tableau Bridge helps in this to have live connection between Dataproc to Tableau Online?
1
vote
1 answer

Java to javascript type conversion

Can somebody explain what does this mean? Boxing objects for Java numeric values (the java.lang classes Byte, Character, Short, Int, Long, Float, and Double) are unboxed and converted to the closest available JavaScript numeric type, except when…
Andrey M.
  • 3,688
  • 3
  • 33
  • 36
1
vote
3 answers

Mac OS X: java.lang.ClassNotFoundException: com.sun.java.browser.plugin2.DOM

I am trying to use the new LiveConnect features introduced in Java 6 Update 10. Code looks like this (copied from the applet tutorial): Class c = Class.forName("com.sun.java.browser.plugin2.DOM"); Method m = c.getMethod("getDocument",…
Thilo
  • 257,207
  • 101
  • 511
  • 656
1
vote
2 answers

Passing binary data from Javascript into a Java applet via LiveConnect

I'm working on an application with a javascript front end that can receive a bunch of octets from the server (for the time being I'm using php's chr() to simulate some data). Trying to pass the data from javascript into an applet to be manipulated…
cmjreyes
  • 246
  • 4
  • 12
1
vote
1 answer

Java 8 Update 91 Issue

While applet initializing when using isActive() method. It only return undefined. This problem only comes "Java 8 Update 91". Can anyone tel me the solution to fine applet loaded or not? I have used the following code: function isAppletActive(app)…
1
vote
0 answers

In OS X, Firefox 26, Java 7u51 Liveconnect is broken?

The applets are working in Windows and Linux but in OS X the LiveConnect calls are broken since Java was upgraded to 7u51. The applets are signed (Comodo), they have correct MANIFEST file (Permissions: all-permissions, Caller-Allowable-Codebase and…
Aldekein
  • 3,538
  • 2
  • 29
  • 33
1
vote
0 answers

Accessing Json and httpclient jars in browser using javaFx

In my application i am loading javafx application in browser using java Live connect api, and accessing the fx application through jsp using dtjava.js as referred in http://docs.oracle.com/javafx/2/deployment/deployment_toolkit.htm . With reference…
rajuthoutu
  • 188
  • 2
  • 2
  • 12