Support » Plugin: Fast Velocity Minify » Getting prompt for Java JDK from MacOS when I view page

  • Resolved karlazz

    (@karlazz)


    Hello,

    Your plugin looks great and your support is timely. I would like to add it to my multisite.

    I tested it and when the plugin is activated I see this modal box come up when I visit a site page:
    To use the “java” command-line tool you need to install a JDK

    It happens when I open a page for the first time in my browser.

    I am on a Mac with El Capitan. This happens in both Chrome and Firefox. The modal is not attached to the browser, it is a message from my OS. I can tell because I can change to another app and the modal is still hanging there on top.

    I can’t be the only person who does not have a JDK loaded. Will this happen to my site visitors who are similarly ill-equipped? I have never seen a web page do that before.

    Can you tell me why I get this message and can it be fixed on your end?

    Thank you,
    Karla

Viewing 3 replies - 1 through 3 (of 3 total)
  • Please notify me of replies

    Plugin Author Raul Peixoto

    (@alignak)

    Hi,

    Are you perhaps running the site on your localhost under the same user, or are you using it on remote linux server?

    The js files minification uses one of 2 methods:

    One, it uses java to run YUI or Google Closure, OR
    Second, it falls back to PHP Minify (no java required).

    What the plugin does is to check if the java command is available by trying to execute it (hence you may see that on the logs or get a OS message IF you’re running the site on localhost with the same user) and if it fails, it falls back to PHP Minify (less efficient).

    When you have the site on a remote server, the java command is ran by the php user so there is no popup or anything like that, because like you said, it’s not attached to the browser.

    You can force the use of PHP Minify instead of java on the plugin settings, there’s an option for that.

    Regards,

    Raul

    • This reply was modified 2 years, 5 months ago by  Raul Peixoto.

    Thanks for the clarification and the quick response. I am testing the plugin locally. I will push it up to a staging server as soon as possible and continue testing there.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Getting prompt for Java JDK from MacOS when I view page’ is closed to new replies.