ABOUT US

|

SUPPORT

|

BLOGS

 

 

DEVELOPER BLOG

 

 

 

 

 

 

 

Applet deployment techniques for platform deterministic libraries

 

Anthony Scotney

 

 

 

 

 

From time to time WebRenderer is deployed within an Applet. Applets provide a convenient mechanism for launching client applications within the browser. WebRenderer however requires different libraries based on the target platform (Windows, Linux, OS X, Solaris) and architecture (32/64 bit). Traditionally to run an Applet, you needed to specify all of the libraries that are required, and they will all be downloaded. If you intend for the Applet to run on multiple platforms, then traditional Applet deployment means that all the libraries for the supported platforms are required which results in the downloading of many unnecessary files.

All is not lost however. It is possible to launch an Applet in a way that will only download the relevant files for the target system. This is done through a JNLP file that is usually associated and used with Java Web Start programs. The JNLP deployment option for Applets was introduced in Java 1.6.0_10.

Details on using JNLP with Applets can be found at: http://www.oracle.com/technetwork/java/javase/index-142562.html

The following code is an example JNLP file that can be utilized to deploy an Applet with platform targeted libraries:



    
	
		
	

	
	
	    
	    
	    
	

	
	
	    
	    
	

	
	    
	    
	

	
	    
	    
	

	
	    
	    
	

	
	    
	    
	

	
	    
	    
	 
	
	
	    
	    
	
    
    
     
     

This JNLP file (webrenderer-applet.jnlp) specifies the WebRenderer libraries as resources under different Operating Systems and Architectures. Through this deployment specification only the files needed are downloaded to the target machine. For demonstration purposes WebRenderer is run from a simple program called TestBrowser (included with the WebRenderer download) and is specified at the end of the JNLP file above under “applet-desc”.

Enabling JNLP deployment for Applets requires an extra param tag to be added inside the Applet tag that refers to the JNLP file:




The architecture used on a particular platform by the Applet depends on the Java architecture that the browser is using. So on a 64-bit OS that is using 32-bit Java, the 32-bit WebRenderer libraries will be used.

The values for “arch” property are the same as is returned in Java by the function:

System.getProperty("os.arch")

As with all Applets, each library will need to be signed. Details on signing your Applets resources can be found here..

 

 

These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • del.icio.us
  • StumbleUpon
  • Reddit
  • DZone
  • Google Bookmarks
  • LinkedIn
  • TwitThis

 

 


 

 

 

 

About this blog..

 

This is an informal place for the team at JadeLiquid to discuss software, the rotation of the earth and other things usually discussed in the JadeLiquid corridors.

 

 

 

Subscribe: By Feed  By Email

 

 

 

 

 

Categories

 

 

Desktop Edition

 

Java™

 

Server Edition

 

Swing Edition

 

Uncategorized

 

WebRenderer

 

 

 

 

Recent Posts

 

 

Flash in Java browser - Enabling Flash within WebRenderer
Browser Zoom Effect using WebRenderer
WebRenderer Swing now supporting HTML5 video
Enabling HTML 5 WebSockets in WebRenderer
Applet deployment techniques for platform deterministic libraries

 

 

 

 

 

Popular Posts

 

 

Flash in Java browser - Enabling Flash within WebRenderer
Deploying WebRenderer with Java Web Start on 64bit systems
WebRenderer Swing Edition 6 Released!
Rich Test Browser - WebRenderer features on display
Enabling HTML 5 WebSockets in WebRenderer
Browser Zoom Effect using WebRenderer
Applet deployment techniques for platform deterministic libraries
Deploying WebRenderer Server Edition in Tomcat
WebRenderer Swing now supporting HTML5 video
WebRenderer adds high performance Text Search and Highlight capability

 

 

 

 

 

Archives

 

 

September 2013 (1) May 2013 (1) January 2013 (1) November 2012 (2) October 2012 (1) September 2012 (1) May 2012 (1) November 2011 (1) October 2011 (2) September 2011 (1) August 2011 (1)

 

 

 

 

Millions of deployments and counting.. Users of JadeLiquid's tools can be found in every corner of the Earth

 

   News

 

 > Enabling Flash in WebRenderer - Article
 > Browser Zoom Effect using WebRenderer - Article
 > Applet deployment techniques - Article
 > WebRenderer core features on display! - Article
 
 
   Additional News  
 
 > Enabling HTML 5 WebSockets in WebRenderer - Blog
 > 64bit WebRenderer deployment with Web Start - Blog
 > Deploying WebRenderer Server Edition in Tomcat - Blog
 > WebRenderer 6 adds performance text search - Blog
 

 

  Copyright JadeLiquid Software - 2024    Java and the Java Logo are trademarks or registered trademarks of Oracle Corporation in the United States and other countries  Privacy Policy  |  Disclaimer