{"action":"created","issue":{"url":"https://api.github.com/repos/nctoolbox/nctoolbox/issues/59","labels_url":"https://api.github.com/repos/nctoolbox/nctoolbox/issues/59/labels{/name}","comments_url":"https://api.github.com/repos/nctoolbox/nctoolbox/issues/59/comments","events_url":"https://api.github.com/repos/nctoolbox/nctoolbox/issues/59/events","html_url":"https://github.com/nctoolbox/nctoolbox/issues/59","id":55058652,"number":59,"title":"Strange setup_nctoolbox error","user":{"login":"rsignell-usgs","id":1872600,"avatar_url":"https://avatars.githubusercontent.com/u/1872600?v=3","gravatar_id":"","url":"https://api.github.com/users/rsignell-usgs","html_url":"https://github.com/rsignell-usgs","followers_url":"https://api.github.com/users/rsignell-usgs/followers","following_url":"https://api.github.com/users/rsignell-usgs/following{/other_user}","gists_url":"https://api.github.com/users/rsignell-usgs/gists{/gist_id}","starred_url":"https://api.github.com/users/rsignell-usgs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rsignell-usgs/subscriptions","organizations_url":"https://api.github.com/users/rsignell-usgs/orgs","repos_url":"https://api.github.com/users/rsignell-usgs/repos","events_url":"https://api.github.com/users/rsignell-usgs/events{/privacy}","received_events_url":"https://api.github.com/users/rsignell-usgs/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-01-21T18:36:20Z","updated_at":"2015-01-21T18:50:36Z","closed_at":null,"body":"I was helping a user try to test this version of nctoolbox:\r\nhttps://github.com/rsignell-usgs/nctoolbox/archive/v1.0.x.zip\r\n and when they type `setup_nctoolbox` they get this error:\r\n```\r\n>> setup_nctoolbox\r\n??? Error using ==> setup_nctoolbox at 16\r\nFailed to setup the Java classpath\r\n \r\n>> setup_nctoolbox_java\r\n??? Undefined variable \"org\" or class \"org.apache.log4j.Logger.getRootLogger\".\r\n\r\nError in ==> setup_nctoolbox_java at 5\r\nroot = org.apache.log4j.Logger.getRootLogger();\r\n```\r\nThey are using an old Matlab 2009a box, running linux 64, but the strange thing is that they have no problem running `setup_nctoolbox` on this version:\r\nhttps://github.com/nctoolbox/nctoolbox/archive/1.0.0.zip\r\n"},"comment":{"url":"https://api.github.com/repos/nctoolbox/nctoolbox/issues/comments/70897213","html_url":"https://github.com/nctoolbox/nctoolbox/issues/59#issuecomment-70897213","issue_url":"https://api.github.com/repos/nctoolbox/nctoolbox/issues/59","id":70897213,"user":{"login":"hohonuuli","id":282941,"avatar_url":"https://avatars.githubusercontent.com/u/282941?v=3","gravatar_id":"","url":"https://api.github.com/users/hohonuuli","html_url":"https://github.com/hohonuuli","followers_url":"https://api.github.com/users/hohonuuli/followers","following_url":"https://api.github.com/users/hohonuuli/following{/other_user}","gists_url":"https://api.github.com/users/hohonuuli/gists{/gist_id}","starred_url":"https://api.github.com/users/hohonuuli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hohonuuli/subscriptions","organizations_url":"https://api.github.com/users/hohonuuli/orgs","repos_url":"https://api.github.com/users/hohonuuli/repos","events_url":"https://api.github.com/users/hohonuuli/events{/privacy}","received_events_url":"https://api.github.com/users/hohonuuli/received_events","type":"User","site_admin":false},"created_at":"2015-01-21T18:50:36Z","updated_at":"2015-01-21T18:50:36Z","body":"The upshot is that the 1.0.x does not contain a `log4j.jar`. The current version of Matlab (R2014b) has that jar on the classpath already, so it's not needed. Older versions of Matlab apparently do not. So for 2009a you'll need to drop a log4j.jar file into the `nctoolbox\\java` directory. We can add a conditional workaround in `setup_nctoolbox_java.m` if needed. You can download the most recent version of log4j at [http://search.maven.org/remotecontent?filepath=log4j/log4j/1.2.17/log4j-1.2.17.jar](http://search.maven.org/remotecontent?filepath=log4j/log4j/1.2.17/log4j-1.2.17.jar)\r\n\r\nThe reason 1.0.0 works is that it's java directory contains log4j.jar"}}