Posts Tagged j2se

XML Parsing Error : undefined entry [xulrunner]

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> 

Missing DTD for branding, one of the two DTDs required by “unknownContentType.xul”. Read more

, , , ,

No Comments

How to debug mozswing Xulrunner native (c/c++) code.

Ω 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

Ω … 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:
Read more

, , , , ,

No Comments

Persistence with Java SE an example

1. Create a Entity Class {}

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

, , ,

No Comments