Whats is the fully qualified name of a Java class written in the DDE?

Hi,

I have written in the DDE 8.5.1 a java class called ‘Atest’ The libraries name is ‘Otto’ and I have tried both the package (default package)and later ‘Testing’. It compiles without error and the Script library also show no error image (red box with white cross)

Its tiny, it just sets a field :

package Testing;

public class Atest {

int x;



Atest() {

	x=1;

}

}

I then tried to use it in a form

(Globals) Options:

Uselsx"*javacon"

(Globals) Declaration:

Dim AtestClass As JavaClass

Dim JavaSession As JavaSession

Dim MyObject as JavaObject

Postopen Event:

Set JavaSession=New JavaSession

Set AtestClass=JavaSession.GetClass(“Atest”) '<— Bang !

I always get the error message that it can’t find the class. I have tried in GetClass also:

‘Otto.Testing.Atest’, ‘Testing.Atest’ and ‘Otto.Atest’

So what is wrong ???

TIA

Joe

Subject: 8.5.1 DDE documentation concerning Java not up to date

Problem solved:

The help for 8.5.1 is in this point not really up to date, so it was a bit confusing as the extended example does not really reflect the current status.

Only ‘Uselsx"*javacon"’ was mentioned, but now one has to add also a USE “javalibraryname”. Like with a Lotusscript library. Simple if one knows it …

If one has created his own package , which is advised, getting the class is done like its usual in Java:

Set MyClass=JavaSession.GetClass(“packagename.classname”)

Joe