搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解

OS X MOZ_PLUGIN_PATH with custom Java location

  • 7 个回答
  • 2 人有此问题
  • 12 次查看
  • 最后回复者为 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?