1

I want to write a wrapper in javascript for a java class.

If I consider a simple java program

class Hello{

public static void main(String args [])
{
System.out.println("Welcome to java prog....");
}

}

How do I write a wrapper class in javascript for this. I tried searching over internet but had no success.

It would also be helpful if somebody give pointer's as where to look at

v09
  • 840
  • 2
  • 12
  • 22
  • 1
    javascript is unrelated to java. – tay10r Jun 28 '13 at 05:42
  • DO you mean you want to simulate a Java class in JavaScript ? – mohkhan Jun 28 '13 at 05:43
  • unless you're asking [this question](http://stackoverflow.com/questions/7487908/how-can-i-use-javascript-in-java) – tay10r Jun 28 '13 at 05:44
  • Basically I have client program which is written in java which receives message feeds from rabbitmq client. Now the idea is to wrap the client program in javascript and then redirect the message feeds to the browser. Does this make sense ? – v09 Jun 28 '13 at 05:50
  • @mohkhan : yes. reason I have explained above. – v09 Jun 28 '13 at 05:52
  • @TaylorFlores I think we can write a wrapper for a java api/function – v09 Jun 28 '13 at 05:54
  • @vijju you keep saying wrapper, do you mean a javascript library to run java programs? – tay10r Jun 28 '13 at 05:56

0 Answers0