Object XXXXDispatch Failed..please help

Hello Everyone

I tried to pack a class containing a simple method

e.g:

public class Test

{

public String getName()

{

String name = "humanbeing";

return name;

}

}

I used Visual Cafe with Jdk1.3 to get a jar file and used the Javabeans-ActiveX bridge to get

1. Test.tlb

2. Test.reg files

When i Opened VisualBasic, i used the references to look for my tlb files and added the Test.tlb file

In the Object Viewer, i was able to see the method getName.

I wrote a simple VB prog,

with the Click event,

Dim obj As Test.Test

Dim Str As String

set obj = New Test.Test

Str = obj.getName

MsgBox Str

End sub

==========================================

When i compiled, it went fine, but when i tried executing i got a run time Error

"Method getName of Object TestDispatch failed"

==========================================

I don't have any clue to what is happening.

Can i not use a bean to include all my methods to be used via VB?

Help me guys...

Thanks

sai_karthik

[1169 byte] By [sai_karthik] at [2007-9-26 2:10:44]
# 1
Try to clean up your JREs - have only one installed and/or try different version. I had the same problem, now it seems to work fine ... I use JRE 1.3.0C.Nik
n_toshev at 2007-6-29 9:02:00 > top of Java-index,Desktop,Deploying...