File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Other Open Source Projects and the fly likes rhino, potentiality, How works? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "rhino, potentiality, How works?" Watch "rhino, potentiality, How works?" New topic
Author

rhino, potentiality, How works?

Raynmune Corsan
Greenhorn

Joined: Nov 04, 2005
Posts: 7
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.


language.Java = language.C*(mechanics.Relativistic/mechanics.Classical)
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60059
    
  65

Moved to the Other Open Source Projects forum.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39551
    
  27
The syntax you show looks OK. Do you have difficulties creating an object that way?


Ping & DNS - updated with new look and Ping home screen widget
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: rhino, potentiality, How works?
 
Similar Threads
How To Create The Compiler For my own Language and how will tokenize the Strings
Rhino usage
Fitting HTML page within JEditorPane
E4X and Java
Javascript access to a Java object