Trang web này sẽ có chức năng hạn chế trong khi chúng tôi trải qua bảo trì để cải thiện trải nghiệm của bạn. Nếu một bài viết không giải quyết được vấn đề của bạn và bạn muốn đặt câu hỏi, chúng tôi có cộng đồng hỗ trợ của chúng tôi đang chờ để giúp bạn tại @FirefoxSupport trên Twitter và /r/firefox trên Reddit.

Tìm kiếm hỗ trợ

Tránh các lừa đảo về hỗ trợ. Chúng tôi sẽ không bao giờ yêu cầu bạn gọi hoặc nhắn tin đến số điện thoại hoặc chia sẻ thông tin cá nhân. Vui lòng báo cáo hoạt động đáng ngờ bằng cách sử dụng tùy chọn "Báo cáo lạm dụng".

Tìm hiểu thêm

OS X MOZ_PLUGIN_PATH with custom Java location

  • 7 trả lời
  • 2 gặp vấn đề này
  • 12 lượt xem
  • Trả lời mới nhất được viết bởi 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

Tất cả các câu trả lời (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?