Re: Trying to embed mozilla, can't getGREPathWithProperties
Javier Pedemonte <[email protected]>
| Newsgroups | gmane.comp.mozilla.devel.java |
|---|---|
| Message-ID | <FYidnY0oqaWpFY_bnZ2dnUVZ_tvinZ2d__29061.5856218666$1175620013$gmane$org@mozilla.org> |
[email protected] wrote: > Second, the unix command ' ./xulrunner-bin --find-gre 1.8.0.4' returns > the path to the libxpcom.dylib file, but the command './xulrunner-bin > --register-global' gives me: > > "Registration not implemented on this platform!" > > I assume that this is related to the source o my problems (though I > could be way off). Can I register and get GREs on a Mac? No, you cannot register XULRunner on a Mac. Instead, XULRunner is installed as a Framework. The method Mozilla.getGREPathWithProperties() looks for the installed framework. If you didn't install XULRunner correctly, then getGREPathWithProperties() will not find it and return null. > File grePath = new File("/Users/myname/sources/mozilla/obj-i686-apple- darwin8.8.2/dist/XUL.framework/Versions/1.8.0.4"); This is your built version and not installed. The locations that getGREPathWithProperties() will look at are /Library/Frameworks/XUL.framework and ~/Library/Frameworks/XUL.framework. javier