XPage Java class problem

I’m trying to instantiate a Google CalenderService class via server-side javascript.

I believe I have installed the libraries correctly, but get the following error:

Script interpreter error, line=1, col=52: Object does not support instantiation com.google.gdata.calendar.CalendarService:

Here’s the code:

myService = new Packages.com.google.gdata.calendar.CalendarService();

Subject: Could you attach a sample?

Subject: I have a workaround

Hi,

I had the same problem some minutes ago.

I can’t explain why this problem occurs, but you can fix it you write a public method into your scriptlibrary containing the class you want to instantiate.

This method only contains this code:

function getLib1() {

var lib1 = new libTest1();

return lib1;

}

So this method instantiates the class for you and returns the instance.

As I said, I don’t know why this problem occurs, but it works.