natcl/max_package_downloader

java errors

Closed this issue · 1 comments

Hi,

I just updated the package downloader using "git clone". Upon opening the "Extras > Package Downoader" patch in Max I now get the below errors, and it does not seem able to download packages.

Thanks!
Trond

java.lang.NoClassDefFoundError: org/json/JSONException
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Class.java:2436)
at java.lang.Class.getDeclaredMethods(Class.java:1793)
at com.cycling74.max.MaxObject._get_all_methods(MaxObject.java:2173)
at com.cycling74.max.MaxObject._init_mxj_message_table_low(MaxObject.java:2519)
at com.cycling74.max.MaxObject._init_mxj_message_table(MaxObject.java:2498)
Caused by: java.lang.ClassNotFoundException: org.json.JSONException
at com.cycling74.max.MXJClassLoaderImpl.lookupClassData(MXJClassLoaderImpl.java:220)
at com.cycling74.max.MXJClassLoaderImpl.doLoadClass(MXJClassLoaderImpl.java:111)
at com.cycling74.max.MXJClassLoaderImpl.loadClass(MXJClassLoaderImpl.java:88)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
... 6 more
mxj: could not find constructor
(mxj) unable to construct instance of package_downloader

Hi Trond, yeah the correct version to use now is the one tagged v1:
https://github.com/natcl/max_package_downloader/archive/1.zip

I'll correct the readme regarding this. The master is to development version and can be unstable.

From now on it should in theory be possible to upgrade the package using the package downloader itself (you'll need to restart Max obviously)