Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

rhino, potentiality, How works?

 
Raynmune Corsan
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello nice people:
i was learning the rhino doc at here, but i am a javascript beginner and...

Please if you know how to import java classes using rhino, help me. I want to do something like.
If my java clas is

public class MyClass{...}

Then i want to get an object on javascript doing this:

var myObject = new Packages.myPackage.MyClass();

Suggestion are wellcome.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64990
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moved to the Other Open Source Projects forum.
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The syntax you show looks OK. Do you have difficulties creating an object that way?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic