Because a thing seems difficult for you, do not think it impossible for anyone to accomplish. – Marcus Aurelius
Header

Problem : While downloading file from mozswing, it generates the following exception.

XML Parsing Error: undefined entity 
Location: chrome://mozapps/content/downloads/unknownContentType.xul 
Line Number 30, Column 18:    <description>&intro.label;</description> 

Cause:
Missing DTD for branding, one of the two DTDs Read more

Ω First follow my previous blog “How to compile xulrunner c++ source code for mozswing under windows OS.” 
on Step 5 of my previous blog add following line under conf/mozconfig-part-debug or under any other mozconfig-part-XXXX file.
ac_add_options –enable-debug

Ω Now … Read more


//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

Persistence with Java SE an example

November 28th, 2011 | Posted by CcR in J2SE | Java - (0 Comments)

1. Create a Entity Class {Employee.java}

import javax.persistence.Entity;
import javax.persistence.Id;

@Entity // Make Employee Class into an entity by annotate the class with @Entity.
public class Employee {
@Id private int id; //property that holds the persistent identity of … Read more