Archive for December, 2011

How to compile xulrunner c++ source code for mozswing under windows OS.

Step 1
Download and install Microsoft Visual Studio 2005 (32 bit).
Note : I have tested this only with Microsoft Visual Studio 2005 on windows XP.

Step 2
Download and install MozillaBuild.
Download Mozilla Build

Also ensure you have … Read more

, , , ,

No Comments

Javascript window.print() compatible mozswing 2.0 xulrunner native library.

 

Replace the existing native library of mozswing 2.0 beta 2 with the following native library. This version is same as of mozswing 2.0 beta2 except, it support javascript windows.print() command.

native.zip
Patched and compiled by Shishir Pokharel.

 … Read more

, , , , ,

No Comments

Create a pojo class of Json objects [using jackson]


//1. create a class to map the json data e.g
import org.codehaus.jackson.annotate.JsonAnyGetter;
import org.codehaus.jackson.annotate.JsonAnySetter;
import org.codehaus.jackson.annotate.JsonCreator;
import org.codehaus.jackson.annotate.JsonProperty;

import java.util.HashMap;
import java.util.Map;

/**
*
* @author Shishir Pokharel
*/
public class model {

// and then "other" stuff:
protected 
Read more

, , , , ,

No Comments