為了改善您的使用體驗,本網站正在進行維護,部分功能暫時無法使用。若本站的文件無法解決您的問題,想要向社群發問的話,請到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 發問,我們的社群成員將很快會回覆您的疑問。

搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

了解更多

OS X MOZ_PLUGIN_PATH with custom Java location

  • 7 回覆
  • 2 有這個問題
  • 1 次檢視
  • 最近回覆由 mzelic

more options

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

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)

more options

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.

more options

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/).

more options

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.

more options

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...

more options
more options

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?

more options

Has anyone ever tried to put Java plugin in [Profile directory]/plugins?