Using Java classes 
Author Message
 Using Java classes

Did anyone succeded in using Java classes from a Microsoft scripting
language ?

I tried the following line in JScript (Windows Script Host) :

var string = GetObject("java:java.lang.String");

or :
var stringBuffer = GetObject("java:java.lang.StringBuffer");
stringBuffer.StringBuffer("dfsdf");

It seems that the GetObject call works (some other class fail, like
java.lang.System), but I was not able to call a method (either static or
not) of those classes.

Microsoft says that the virtual machine enable to use any Java object as a
COM object ( http://www.*-*-*.com/ #java_com_2).

Does anyone know why it doesn't work ?

Olivier Mengu.



Sat, 29 Dec 2001 03:00:00 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. Using Java classes

2. Using Java classes

3. Calling Java Classes from a Java jar library from VBScript

4. call a java class from vbscript

5. Java class to generate postscript

6. Accessing Java classes from Javascript

7. PROBLEM: Accessing database through Java-class in ASP (Jscript)

8. How do i create an Object from a JAVA Class

9. VBScript/JScript + Java Class

10. Calling Java classes from VBScript

11. Java Class object

12. Question on Java Classes inserted into HTML code...

 

 
Powered by phpBB® Forum Software