How to use java class object in ASP.NET?

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: cartooncat (cljns_at_sina.com)
Date: 07/13/04


Date: Tue, 13 Jul 2004 19:11:49 +0800

I have to translate an ASP project to ASP.NET, in the former project, a java
class object was used by VBScript:
    Set Obj = Server.CreateObject("ccb.pub.RSAsig")
    Obj.generateKeys()
    Obj.getPrivateKey()
    Obj.getPublicKey()

the object "ccb.pub.RSAsig" is a java class object registered by
javareg.exe, and
generateKeys(), getPrivateKey(), getPublicKey() is its methods.
In the ASP.NET, I create the object(C# language):
   object Obj;
   Obj = Server.CreateObject("ccb.pub.RSAsig");
   Obj.generateKeys();
   Obj.getPrivateKey();
   Obj.getPublicKey();

then compile error: object Obj not include the method generateKeys(),
getPrivateKey() and getPublicKey().

I'm so confused, waiting for help......



Relevant Pages

  • Re: static and threads
    ... > In that language classes are full objects ... In Java this is feels somewhat squishy. ... You have the static fields which are a bit like instance ... variables of a class object. ...
    (comp.lang.java.programmer)
  • Re: Can a class accept a message?
    ... In Java, classes can accept messages, for reasonable definitions of the word "message". ... sends the message "getName" to the class object for String. ... One could also call static methods a message that a class will accept. ...
    (comp.lang.java.programmer)
  • Re: How is tag interface functionality implemented in Java continued ...?
    ... "The method clone for class Object performs a specific cloning ... then a CloneNotSupportedException is thrown. ... Java library code how the exception is thrown ?? ... Java standard specifies how it should be implemented. ...
    (comp.lang.java.programmer)
  • Re: primitive as part of an object or not ?
    ... >>In Java, is it possible to have a primitive variable, that is not part of ... unless you consider the class object an object. ... you couldn't reasonably call static or local variables ... The Easiest Way to Train Anyone... ...
    (comp.lang.java.programmer)