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
[email protected]
https://lists.mozilla.org/listinfo/dev-embedding

Reply via email to