pivot-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Greg Brown <gkbr...@mac.com>
Subject Re: Pivot Applet Deployment
Date Mon, 09 Nov 2009 13:17:35 GMT
Hello, and welcome!  :-)

First suggestion is to make sure that all of the Pivot JARs are  
available on the applet's classpath. We generally put them in a lib  
directory relative to the HTML page that contains the applet.

Second, make sure that your HTML contains something that looks like  

<script src="http://java.com/js/deployJava.js"></script>
var attributes = {code:"org.apache.pivot.wtk.BrowserApplicationContext 
         + ",lib/pivot-wtk-1.3.jar"
         + ",lib/pivot-wtk-1.3.terra.jar"
         + ",lib/<your application JAR>.jar",
var parameters = {application_class_name:"<your application class  
     java_arguments:"-Dsun.awt.noerasebackground=true - 
deployJava.runApplet(attributes, parameters, "1.6");

If you have done both of those things and still can't get the applet  
to launch, let us know and we'll try to dig a little deeper.


On Nov 9, 2009, at 8:06 AM, rey cata-al wrote:

> Greetings from Philippines!
> I am a java newbie and very much interested in using Pivot.
> I have created a sample netbeans web project based on Menus.java  
> Pivot tutorial.
> I created a new package called MyApplet which contains -  
> Menus.java,document.wtkx,menus.wktx. I added the Jar files. Within  
> the netbeans environment, I can run the program by right clicking on  
> Menus.java then clicked Run.
> However, I can't make it run in the browser.  The java console  
> displays this error:
> class org.apache.pivot.wtk.BrowserApplicationContext$HostApplet not  
> found
> Do I need to create a package "org.apache.pivot.wtk" and put  
> BrowserApplicationContext$HostApplet.class  within it?
> Thanks for any help.
> Rey
> Yahoo! Mail Now Faster and Cleaner. Experience it today!

View raw message