OS X MOZ_PLUGIN_PATH with custom Java location
I'm trying to use Firefox with Java both on a usb stick. On Windows this works with setting the MOZ_PLUGIN_PATH environment variable to java plugin location (..\Java\bin\plugin2).
I tried to do the same on Mac OS X (10.9.5), Firefox 33.0.1, Java 7u67 but it doesn't work. It works only if Java is locally installed.
For the test I copied the /Library/Internet Plug-Ins/JavaAppletPlugin.plugin and unpacked JRE (jre/lib) to some test directory and set the MOZ_PLUGIN_PATH to it.
Thanks in advance for any help, Marko
Όλες οι απαντήσεις (7)
Mozilla Firefox, Portable Edition {web link} Mozilla Firefox®, Portable Edition is the popular Mozilla Firefox web browser bundled with a PortableApps.com Launcher as a portable app, so you can take your bookmarks, extensions and saved passwords with you.
This is only for Windows. So I have everything working on Windows, but the problem is Mac OS X. I need a way to point to a custom Java directory plugin (not /Library/Internet Plug-ins/).
That I did not know. Did you contact http://portableapps.com/ to see if they have a Mac version?
I called the big guys to help out.
Thanks for your help! I found a couple of portable Mac versions but none work. I had no luck with portableapps forum. There is similar topic: http://portableapps.com/node/21946#comment-218725
I even pulled the Firefox source code and greped for MOZ_PLUGIN_PATH which is in file xpcom/io/nsAppFileLocationProvider.cpp I'm not much of a C programmer, but it seems that this environment variable is ignored on Mac OS.
If Java in Firefox works with installed Java, then it should be possible to use it in a different location (usb stick), maybe with recompiling something differenet...
This confirms that MOZ_PLUGIN_PATH is not read in Mac OS:
Mac OS X ~/Library/Internet Plug-Ins. /Library/Internet Plug-Ins. /System/Library/Frameworks/JavaVM.framework/Versions/Current/Resources. Plug-ins within toolkit bundles. Profile directory/plugins, where Profile directory is a user profile directory.
I did the following: - moved JavaAppletPlugin.plugin from /Library/Internet Plug-In to some [temp_dir]/plugins. So there is no java support now, and applets are not working - started Firefox from command line with -profile [temp_dir]
But applet is still not loaded. Do you know is there something else than JavaAppletPlugin.plugin that is needed?
Has anyone ever tried to put Java plugin in [Profile directory]/plugins?