Javabeans - Active X Packager -- Dispatch Error

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:11]
# 1
Hi, I also encounter this error. May I know whether you have it fixed? :) Thanks!
yitian at 2007-6-29 9:00:45 > top of Java-index,Desktop,Developing for the Desktop...
# 2
I'm no expert on this yet, but did you tryStr = obj.Nameinstead ofStr = obj.getName
tweaker at 2007-6-29 9:00:45 > top of Java-index,Desktop,Developing for the Desktop...
# 3
Where to get JavaBeans bridge for active X controls and how to use it?where to get Information about it.Please do tell me.
aparna_chitragar at 2007-6-29 9:00:45 > top of Java-index,Desktop,Developing for the Desktop...