El Capitan, Dreamweaver, and Java SE 6

El Capitan, Dreamweaver, and Java SE 6

Update: Java SE 6 is now installable directly via Apple: https://support.apple.com/kb/DL1572?locale=en_US. The following steps are no longer needed.

 

I have worked with Macs for years, both as a tech at my full time job and personally. I am an Apple Certified Mac Technician. (Actually my creds go all the way up to technical coordinator but no one really uses those anymore.) So yes, I am using El Capitan one day after release. I happened to get a new 4K iMac at work so I figured, why not?! I’ll just set it up on El Capitan and migrate my stuff and see how it goes, what’s the harm?

The one major issue I’ve had that impedes my day to day work (now in web development) is I couldn’t get Dreamweaver to open because it was throwing up an error about requiring Java SE 6. Normally I use Netbeans but I like Dreamweaver for quick edits, it opens faster. When I tried to install Apple’s Java 6 version it said it was too old. I installed SE 8, of course, but Dreamweaver didn’t care. Same error.

So I did some googling and found this eventually: https://oliverdowling.com.au/2014/03/28/java-se-8-on-mac-os-x/

The only important part on that site is the first bit, about editing the Info.plist file. I didn’t have to bother with the other stuff. I made that change and voila, Dreamweaver and its little friends now open happily.

The solution is to edit /Library/Java/JavaVirtualMachines/jdk1.8.0_40.jdk/Contents/Info.plist and change:

<key>JVMCapabilities</key>
<array>
    <string>CommandLine</string>
</array>

To:

<key>JVMCapabilities</key>
<array>
    <string>CommandLine</string>
    <string>JNI</string>
    <string>BundledApp</string>
</array>
That’s it!
13 Comments
  • topperwh
    Posted at 00:11h, 17 June Reply

    This is help me a lot!!!
    Now i can keep using Illustrator 6 on new OSX

    Thanks !

  • jack
    Posted at 08:59h, 04 July Reply

    Worked perfectly! Thank you so much!

    I don’t know how you went about editing it, but for anyone editing the file in Terminal, here is some important info:

    In El Capitan, you can’t edit system files because of a new security feature called Rootless.
    I tried saving the edited Info.plist file, but I kept receiving a message saying, “you do not have the necessary permissions to edit this file,” or something like that.

    To disable Rootless, I opened terminal and ran:

    sudo nvram boot-args=”rootless=0″

    Then I restarted my computer (necessary to disable Rootless)
    I navigated to Info.plist and was able to edit it and save it by opening it with the sudo command

    sudo nano Info.plist

    I haven’t done this last step yet, but according to every source I can find, to re-enable Rootless, open terminal and run

    sudo nvram -d boot-args

  • Sarah Bailey
    Posted at 12:31h, 06 July Reply

    Thanks for the info Jack! I wonder if maybe they didn’t implement the rootless thing in the first version of 10.11 because I don’t recall having that issue when I edited the file. But I also tend to edit system files using Text Wrangler instead of in terminal. Text Wrangler notes permissions problems and changes the file permissions if you allow it. So I can see it being either of those possibilities.

    • jackhawley
      Posted at 17:20h, 06 July Reply

      Ahh I can’t believe I didn’t think to have used TextWrangler! For anyone reading this, I would definitely listen to Sarah and use TextWrangler. Thanks for the reply Sarah! I’m currently moving TextWrangler to my dock so I have no excuse for forgetting in the future haha.

  • jibbit
    Posted at 05:26h, 08 July Reply

    thank you for this.. solved my problem for other adobe apps like illustrator

  • Josh Enrico
    Posted at 21:54h, 08 September Reply

    could someone lay this is out in easiest possible way step by step? not sure how to go about this but I think I need to do this in order to run Kronos.

    thank you so much

    • Sarah Bailey
      Posted at 10:55h, 09 September Reply

      Josh,

      1) Download and install the free code editor called textwrangler.http://www.barebones.com/products/textwrangler/

      2) Click on any empty space on your Mac’s desktop and go up to the toolbar and click Go > Go to folder. Paste in /Library/Java/JavaVirtualMachines/ in the box, and hit Go.

      3) Look at the list of jdk folders and find the highest one. If there are no jdk folders or if the Go to folder step fails, you need to install java from here https://java.com/en/download/ then go back to step 2.

      4) Open the folder for the most recent jdk version and find the info.plist file inside. right click and choose open with > Textwrangler.

      5) Find this bit of text:

      <key>JVMCapabilities</key>
      <array>
          <string>CommandLine</string>
      </array>

      6) and replace it with:

      <key>JVMCapabilities</key>
      <array>
          <string>CommandLine</string>
          <string>JNI</string>
          <string>BundledApp</string>
      </array>

      Save the file, if text wrangler asks something about permission just tell it to change and save, or whatever it is that saves the file. Restart, and attempt to open your app.

      • Isleander
        Posted at 07:54h, 02 November Reply

        I have different strings commands in my info.plist

        Also includes: “WebStart” and “Applets”.

        My Mac wouldn’t allow me to make any changes.

  • Alf
    Posted at 08:17h, 01 October Reply

    Please help??? 🙁

    After installing El Capitan, Dreamweaver gives an error about an old Java SE 6 (to install this version).

    I can’t find the file Info.plist in /Library/Java/JavaVirtualMachines/
    The JavaVirtualMachines folder is empty.

    How can I solve this problem?

  • alf
    Posted at 08:48h, 01 October Reply

    Oh found the solution :).

    First download Java from here: https://support.apple.com/kb/DL1572?

    Go to /Library/Java/Home/Bundle/info.plist

    Edit this file and replace this (make a copy and edit in text editor).

    ————————————————-
    JVMCapabilities

    CommandLine

    To:

    JVMCapabilities

    CommandLine
    JNI
    BundledApp

    ————————————————–

    It will save with info.txt, change the name to info.plist and drop/replace this in the Bundle folder.

    Open now your Dreamweaver :)!

    Good luck!

    • Jones
      Posted at 10:57h, 02 October Reply

      You saved my day thank you? Why does this article pop up before the link to the Apple Support page in my search machine?

  • chr.hld
    Posted at 04:52h, 07 October Reply

    Puh, words cannot describe how urgent this helped me.

  • Dean Suhr
    Posted at 14:27h, 03 October Reply

    Was this technique designed to eliminate the need to install Legacy JRE 6 and “fool” Dreamweaver into thinking it was installed?

Leave a Reply