Creator of the Apache Tapestry web application framework and the Apache HiveMind dependency injection container. Howard has been an active member of the Java community since 1997. He specializes in all things Tapestry, including on-site Tapestry training and mentoring, but has lately been spreading out into fun new areas including functional programming (with Clojure), and NodeJS. Howard is a DZone MVB and is not an employee of DZone and has posted 72 posts at DZone. You can read more from them at their website. View Full User Profile

Getting CrashPlan to work on Mac after JDK 1.7 upgrade

07.09.2012
| 4978 views |
  • submit to reddit

After upgrading my Mac to JDK 1.7, I noticed that CrashPlan stopped working. Given just how much trouble I got in a ways back when I lost a month's worth of pictures and videos of my son I'm now a belt and suspenders kind of backup guy ... the belt may be TimeMachine, but the suspenders are CrashPlan.

After working it out with their technical staff, it turns out CrashPlan is not compatible with JDK 1.7 on Mac which is rather unfortunate. And, having installed JDK 1.7, it was trying to use that version!

Getting it working is pretty easy however; most of the information is available in their recipe for starting and stopping the CrashPlan engine. The key part is that the com.crashplan.engine.plist file includes an entry where you can specify the path to the Java executable; with a bit of experimentation to find the right path, it appears to be working.

The only change I made to the file was to change the path; the first entry for the ProgramArguments key:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>com.crashplan.engine</string>
<key>UserName</key>
<string>root</string>
<key>GroupName</key>
<string>wheel</string>
<key>Nice</key>
<integer>20</integer>
<key>KeepAlive</key>
<true/>
<key>OnDemand</key>
<false/>
<key>RunAtLoad</key>
<true/>
<key>AbandonProcessGroup</key>
<true/>
<key>WorkingDirectory</key>
<string>/Applications/CrashPlan.app/Contents/Resources/Java</string>
<key>ProgramArguments</key>
<array>
<string>/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Commands/java</string>
<string>-Dapp=CrashPlanService</string>
<string>-Xmn10m</string>
<string>-Xms15m</string>
<string>-Xmx1024m</string>
<string>-DappBaseName=CrashPlan</string>
<string>-Djava.awt.headless=true</string>
<string>-Dfile.encoding=UTF-8</string>
<string>-Djava.net.preferIPv4Stack=true</string>
<string>-Dsun.net.inetaddr.ttl=300</string>
<string>-Dnetworkaddress.cache.ttl=300</string>
<string>-Dsun.net.inetaddr.negative.ttl=0</string>
<string>-Dnetworkaddress.cache.negative.ttl=0</string>
<string>-DCP_USER_NAME=</string>
<string>-DCP_USER_HOME=/Users/hlship</string>
<string>-cp</string>
<string>lib/com.backup42.desktop.jar:lang</string>
<string>com.backup42.service.CPService</string>
<string>CP_USER_NAME=</string>
<string>CP_USER_HOME=/Users/hlship</string>
</array>
<key>StandardErrorPath</key>
<string>/Library/Logs/CrashPlan/engine_error.log</string>
<key>StandardOutPath</key>
<string>/Library/Logs/CrashPlan/engine_output.log</string>
</dict>
</plist>

You will, of course, need to sudo to edit the file and to stop and relaunch the CrashPlan engine. Now, having set this up (and, coincidentally, renewed by annual subscription) my computer is happily chugging away, making the backups.

 

Published at DZone with permission of Howard Lewis Ship, author and DZone MVB. (source)

(Note: Opinions expressed in this article and its replies are the opinions of their respective authors and not those of DZone, Inc.)

Comments

Howard Lewis Ship replied on Tue, 2012/07/10 - 4:30pm

I'm occasionally stunned at which of my blog posts JavaLobby chooses to pick up.

Tim Maher-de Troyer replied on Fri, 2012/10/26 - 11:54am

Utterly brilliant piece of forensics.

 I have just updated Apples Java 6 and, because the preferences entries are now stuffed, CP gave up.

I applied your manual patch (After having gone through all of the uninstall, re-install rubbish then poncing about looking for a wrapper for a jndi library) and it worked first time.

 Thanks loads.

Regs

Tim 

Christopher Price replied on Sun, 2012/11/04 - 6:42am

If you are reading this, you probably are having issues with CrashPlan after Apple's JDK 1.6-killbit update. If so, you need to follow this newer guide:

https://crashplan.zendesk.com/entries/22199717-apple-update-java-1-06-0-37-causes-crashplan-to-not-start-for-anyone-running-java-1-6-alongside-1-7

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.