{"id":505,"date":"2011-09-14T03:55:11","date_gmt":"2011-09-14T03:55:11","guid":{"rendered":"http:\/\/poojanwagh.opalstacked.com\/techblog\/?p=505"},"modified":"2011-09-14T03:56:57","modified_gmt":"2011-09-14T03:56:57","slug":"fixing-crashplan-in-the-presence-of-native-jdkjre","status":"publish","type":"post","link":"https:\/\/tech.poojanblog.com\/blog\/un\/fixing-crashplan-in-the-presence-of-native-jdkjre\/","title":{"rendered":"Fixing CrashPlan (in the presence of native JDK\/JRE)"},"content":{"rendered":"<p>I recently installed subsonic, which has a Java dependency. The www\/subsonic port installed Java.<\/p>\n<p>Unfortunately, this (or something else I did) broke CrashPlan (which uses the Linux Java in the java\/linux-sun-jre16 port).<\/p>\n<p>I had to take a few unexpected steps to fix this.<br \/>\n<!--more--><br \/>\nNamely:<\/p>\n<h3>Re-install linux-sun-jre16<\/h3>\n<p>I&#8217;m not sure if this was necessary, but I did it to make sure that the Linux Java didn&#8217;t get over-written by the native Java. It didn&#8217;t. Linux Java installs in a different directory (see below).<\/p>\n<h3>Link the linux java to the Linux compat directories<\/h3>\n<p>The Linux Java gets installed in <code>\/usr\/local\/linux-sun-jre1.6\/<\/code>. However, the <code>\/compat\/linux\/bin\/bash<\/code> shell will pick up the native java. I have no idea how this all worked before I installed native Java, but I linked all the java files to the compat linux bin directory:<br \/>\n<code><br \/>\nln -s \/usr\/local\/linux-sun-jre1.6\/bin\/* \/usr\/compat\/linux\/usr\/local\/bin<br \/>\n<\/code><\/p>\n<h3>Fix up Java class paths<\/h3>\n<p>For whatever reason, CrashPlan would start at this point but would not be able to load <code>jtux<\/code>. I added the following to the CrashPlanEngine script (in \/usr\/compat\/linux\/usr\/local\/crashplan\/bin):<br \/>\n<code><br \/>\n      FULL_CP=&#8221;${TARGETDIR}:${TARGETDIR}\/lib\/com.backup42.desktop.jar:${TARGETDIR}\/lang&#8221;<br \/>\n<\/code><\/p>\n<p>Basically, it was missing the direct \/lib directory. Again, I&#8217;m not sure why this wasn&#8217;t a problem before.\n<\/p>\n<div class='wp_likes' id='wp_likes_post-505'><a class='like' href=\"javascript:wp_likes.like(505);\" title='' ><img data-recalc-dims=\"1\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/tech.poojanblog.com\/blog\/wp-content\/plugins\/wp-likes\/images\/like.png\" alt='' border='0'\/><\/a><span class='text'>Be the first to like.<\/span><\/p>\n<div class='like' ><a href=\"javascript:wp_likes.like(505);\">Like<\/a><\/div>\n<div class='unlike' ><a href=\"javascript:wp_likes.unlike(505);\">Unlike<\/a><\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>I recently installed subsonic, which has a Java dependency. The www\/subsonic port installed Java. Unfortunately, this (or something else I did) broke CrashPlan (which uses the Linux Java in the java\/linux-sun-jre16 port). I had to take a few unexpected steps to fix this. Be the first to like. Like Unlike<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[1],"tags":[143,144,141,12,145],"class_list":["post-505","post","type-post","status-publish","format-standard","hentry","category-un","tag-backup-linux","tag-compat","tag-crashplan","tag-freebsd","tag-java"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/tech.poojanblog.com\/blog\/wp-json\/wp\/v2\/posts\/505","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tech.poojanblog.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tech.poojanblog.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tech.poojanblog.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/tech.poojanblog.com\/blog\/wp-json\/wp\/v2\/comments?post=505"}],"version-history":[{"count":4,"href":"https:\/\/tech.poojanblog.com\/blog\/wp-json\/wp\/v2\/posts\/505\/revisions"}],"predecessor-version":[{"id":516,"href":"https:\/\/tech.poojanblog.com\/blog\/wp-json\/wp\/v2\/posts\/505\/revisions\/516"}],"wp:attachment":[{"href":"https:\/\/tech.poojanblog.com\/blog\/wp-json\/wp\/v2\/media?parent=505"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tech.poojanblog.com\/blog\/wp-json\/wp\/v2\/categories?post=505"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tech.poojanblog.com\/blog\/wp-json\/wp\/v2\/tags?post=505"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}