Finally I'm able to deploy the project.. Since no one replied to the
post I'm going to post the work around myself.

1. First problem I faced was... My applet could not locate the
Libraries. Although I created a lib folder, placed the information
about libraries inside the MANIFEST file, but nothing seemed to work.

Reason: When the applet is loaded, it just loads the applet code and
the libraries present inside the lib folder are not loaded.
Essentially, the library references are broken.

Workaround: Google Calendar library files need to be present on the
client machine on which applet is going to be executed. So copy all
the library files and paste it inside the "Java\jre1.x.y_z\lib\ext"
folder on the client machine. This makes the Google libraries visible
to your applet.

2. Even after doing step 1. The things wont work. This time you might
see a different kind of exception, could not initialize
GoogleService.

Reason: Simple. Applets run under the constrained environment so it
doesn't have the right to execute services on the client machine.

WorkAround: Provide your Applet with the sufficient privileges and
Sign the Jar file so that your applet can execute the Services.

And your are ready to go.

=================================================================================
Request......

Please please if anyone knows how to load the client libraries from
the server itself without having to save the libraries on the Client
machine please reply to this thread and let me know. It would be a
great help.

e.g. Like we do for JDBC drivers in which we actually load the
libraries. Is something like that possible for Google libraries too.
=================================================================================

Thanks,
-SaM

On Apr 29, 3:22 pm, sam_thrust <[EMAIL PROTECTED]> wrote:
> Hey folks,
>
> I created a pretty neat Google Calendar type Interface(JApplet) in
> Netbeans. Integrated it with Google Calendar. When ever i run the
> Applet file from inside Netbeans it run absolutely perfect. I'm able
> to retrieve google calendar events, modify the previous events, delete
> the events and add new events.
>
> The problem comes when I try to run the HTML file which invokes my
> applet. Whenever the i open the file it throws the following
> exception.
>
> java.lang.NoClassDefFoundError: com/google/gdata/util/ServiceException
>         at ui.CalendarPanel.loadEvents(CalendarPanel.java:264)
>         at ui.CalendarPanel.jComboRoomNoActionPerformed(CalendarPanel.java:
> 159)
>         at ui.CalendarPanel.access$100(CalendarPanel.java:22)
>         at ui.CalendarPanel$2.actionPerformed(CalendarPanel.java:113)
>         at javax.swing.JComboBox.fireActionEvent(Unknown Source)
>         at javax.swing.JComboBox.contentsChanged(Unknown Source)
>         at javax.swing.AbstractListModel.fireContentsChanged(Unknown Source)
>         at javax.swing.DefaultComboBoxModel.setSelectedItem(Unknown Source)
>         at javax.swing.DefaultComboBoxModel.addElement(Unknown Source)
>         at javax.swing.JComboBox.addItem(Unknown Source)
>         at ui.CalendarPanel.initialize(CalendarPanel.java:75)
>         at ui.CalendarPanel.<init>(CalendarPanel.java:40)
>         at ui.ComputerRRApplet.init(ComputerRRApplet.java:30)
>         at sun.applet.AppletPanel.run(Unknown Source)
>         at java.lang.Thread.run(Unknown Source)
> Caused by: java.lang.ClassNotFoundException:
> com.google.gdata.util.ServiceException
>         at sun.applet.AppletClassLoader.findClass(Unknown Source)
>         at java.lang.ClassLoader.loadClass(Unknown Source)
>         at sun.applet.AppletClassLoader.loadClass(Unknown Source)
>         at java.lang.ClassLoader.loadClass(Unknown Source)
>         at java.lang.ClassLoader.loadClassInternal(Unknown Source)
>         ... 15 more
>
> I dont know is it the problem with the Jar File or something else. I
> copied all the google calendar apis to the jar and specified the
> following classpath in the meta-inf file.
>
> Class-Path: gdata-appsforyourdomain-1.0.jar gdata-appsforyourdomain-
> meta-1.0.jar gdata-base-1.0.jar gdata-calendar-1.0.jar gdata-calendar-
> meta-1.0.jar gdata-client-1.0.jar gdata-client-meta-1.0.jar gdata-
> codesearch-1.0.jar gdata-codesearch-meta-1.0.jar gdata-
> contacts-1.0.jar gdata-contacts-meta-1.0.jar gdata-core-1.0.jar gdata-
> docs-1.0.jar gdata-docs-meta-1.0.jar gdata-media-1.0.jar gdata-
> photos-1.0.jar gdata-photos-meta-1.0.jar gdata-spreadsheet-1.0.jar
> gdata-spreadsheet-meta-1.0.jar gdata-youtube-1.0.jar gdata-youtube-
> meta-1.0.jar sample-util.jar
>
> But no success. Please help me I need to deliver this project asap, :-
> ((
>
> Thanks in anticipation.
> -SaM
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Calendar Data API" group.
To post to this group, send email to 
[email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-calendar-help-dataapi?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to