Help to embedd mozilla in java application ..new to java

View: New views
1 Messages — Rating Filter:   Alert me  

Help to embedd mozilla in java application ..new to java

by prasanth-6 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Mozilla mozilla;




        GREVersionRange[] range = new GREVersionRange[1];
        range[0] = new GREVersionRange("1.9.0", true, "1.9", false);


        try {
            File grePath =   new File("D:\\xulrunner-1.9.0.2pre.en-
US.win32\\xulrunner\\bin");
            Mozilla.getGREPathWithProperties(range, null);
            LocationProvider locProvider = new
LocationProvider(grePath, grePath);

            mozilla = Mozilla.getInstance();
            mozilla.initialize(grePath);
            mozilla.initEmbedding(grePath, grePath, locProvider);
            } catch (FileNotFoundException e) {
           System.out.println("greGREPathWithProperties cannot find a
GRE");
        } catch (XPCOMException e) {
         System.out.println("initEmbedding failed");
        } catch (Exception e) {
           System.out.println("Exception --->>");
           e.printStackTrace();
        }
_______________________________________________
dev-embedding mailing list
dev-embedding@...
https://lists.mozilla.org/listinfo/dev-embedding
LightInTheBox - Buy quality products at wholesale price