User    Pass    













Key Benefits




Standards Supported




Download Now


API Documentation


Developers Guide


Code Examples


Updated Builds


Technical Articles






Jump to:

General WebRenderer Functions

  WebRenderer example code base.


Advanced WebRenderer functions


Application test examples


Deploying WebRenderer

WebRenderer DOM




Packaging WebRenderer in a Java Archive (JAR)




Packaging WebRenderer JAR file for deployment

Sometimes deploying native libraries can be troublesome. An easy way to get around any issues is to place the WebRenderer native libraries into a single JAR file and extract them at run-time. This is particularly useful when deploying into secure environments that require digtally signed Java Archives.

How to package webrenderer.dll in a JAR:

1) Package the webrenderer.dll into a jar using the following command
jar cvf wr.jar webrenderer.dll

2) To deploy simply send the JAR to the target machine through your preferred deployment method

3) Unpack the webrenderer.dll from the JAR file created in step 1 with the following code:

public void loadLibrary() {
try {
// The location of the wr.jar file after you download to the local machine
JarFile f = new JarFile("C:\\<MYLOCATON>\\wr.jar");
// Reading in the webrenderer.jar and getting the webrenderer.dll from this file
InputStream is = f.getInputStream(new ZipEntry("webrenderer.dll"));
// Output directory for webrenderer.dll -> you can make this any directory such as the users home directory
FileOutputStream out = new FileOutputStream("webrenderer.dll");

// Reading the webrenderer.jar file and writing the webrenderer.dll to the disk
int n = 0;
while((n = is.read()) > -1) {
} catch(Exception e) {
System.out.println("Exception caught with JAR: " + e);

Remember to call BrowserFactory.setLibraryPath("Location to webrenderer.dll") before you call any other WebRenderer methods and after you extract webrenderer.dll out of the wr.jar.

Please contact us if you have any questions regarding deployment of WebRenderer.



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




 > 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


 Java and the Java Logo are trademarks or registered trademarks of Oracle Corporation in the United States and other countries 

Privacy Policy  |   Disclaimer