By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,826 Members | 815 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,826 IT Pros & Developers. It's quick & easy.

access java class with moniker

P: n/a
Hi,
I need to access Java object through an ASP page. I reckon that there
are two ways:
1) If the Java object is registered as a COM then access it through the
ProgID using CreateObject method.
2) Direct access to the java class through java moniker. I am trying to
do this ..but failed to get it working.

I created a class called Javatest and put it in the
Windows/java/TrustLib and also put it in the classpath.

In the ASP code..I did this,
<%
1. Dim strResult
2. set javaObject = GetObject("java:ClassName")
3. strResult = javaObject.SomeFunction()
4. set javaObject = nothing
%>

I keep getting the "No object for moniker" error.

I also tried registering the class with javareg and tried to access.
Still the same error. Any ideas...checks?

thanks,
den

Jul 19 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
<%
1. Dim strResult
2. set javaObject = GetObject("java:JavaTest")
3. strResult = javaObject.SomeFunction()
4. set javaObject = nothing
%>
why are you calling it with "java:ClassName" when clearly that's not the
name of your class? or is this just a misleading example?

and what about the method name?

________________________________________
Atrax. MVP, IIS
http://rtfm.atrax.co.uk/

newsflash : Atrax.Richedit 1.0 now released.
http://rtfm.atrax.co.uk/infinitemonk...trax.RichEdit/

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Jul 19 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.