On 6 October 2016 at 03:01, Justin Compson <justincomp...@yahoo.com> wrote: > Understood that the code hasn't been released but I thought that users could > use the snapshot version? I'm just trying to use the samples given and I'm > unable to even utilize the samples.
Snapshots are works in progress and may be in any state. They are intended for developers who understand the restrictions, limitations and risks. > I don't recall where I got the source but I think it was here: > https://github.com/apache/commons-imaging That is a mirror of the current trunk, so is a work-in-progress and may not even compile. > I even tried the Sanselan version and was unable to get that working either. > Is there a place where I can get the binary version of either? I've had > trouble with the import statements and then executing my test programs > primarily because of the taginfo class. The Sanselan version is available from the Download link on the Commons Imaging site which currently leads to http://commons.apache.org/proper/commons-imaging/download_sanselan.cgi > All I'm really trying to grab is camera make, and a few other things to > rename my images for personal sorting purposes and planned on using Imaging > as I've had other success with Apache libraries. If you download the Sanselan source as well as the binary, it looks like there are some samples in the test tree - there's one called MetadataExample.java that might be suitable as a starting point. Note that the Sanselan 0.97-incubating release is also available from Maven Central. > Thanks for any help. > > -------------------------------------------- > On Wed, 10/5/16, sebb <seb...@gmail.com> wrote: > > Subject: Re: [imaging] Unable to download the binary from any mirror or > archive site. > To: "Commons Users List" <user@commons.apache.org>, "Justin Compson" > <justincomp...@yahoo.com> > Date: Wednesday, October 5, 2016, 6:31 PM > > On 27 September 2016 at > 21:13, Justin Compson > <justincomp...@yahoo.com.invalid> > wrote: > > Hi, > > > > I'm trying to leverage the commons > imaging library but I'm unable to download the binary > from any mirror or archive site. > > That's because the code has not yet been > released. > > > I have found > some source files in other locations but I've been > unable to get them to work either. I don't use an IDE, > I'm just using the command line in windows. > > > > I've been able to > successfully implement MySQL and fileuploader without issue > so I'm not sure what I'm doing wrong here. > > > > When I am able to > compile a project with what I believe is a valid .jar file > it still can't find all of the classes: > > Where did you get the > source? > > > Z:\Web Projects\Java > Code>java -cp . MetadataExample2 > > > Error: A JNI error has occurred, please check your > installation and try again > > Exception in > thread "main" java.lang.NoClassDefFoundError: > org/apache/commons/imaging/formats/tiff/taginfos/TagInfo > > at > java.lang.Class.getDeclaredMethods0(Native Method) > > at > java.lang.Class.privateGetDeclaredMethods(Class.java:2701) > > at > java.lang.Class.privateGetMethodRecursive(Class.java:3048) > > at > java.lang.Class.getMethod0(Class.java:3018) > > at > java.lang.Class.getMethod(Class.java:1784) > > at > sun.launcher.LauncherHelper.validateMainClass(LauncherHelper.java:544) > > at > sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:526) > > Caused by: > java.lang.ClassNotFoundException: > org.apache.commons.imaging.formats.tiff.taginfos.TagInfo > > at > java.net.URLClassLoader.findClass(URLClassLoader.java:381) > > at > java.lang.ClassLoader.loadClass(ClassLoader.java:424) > > at > sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331) > > at > java.lang.ClassLoader.loadClass(ClassLoader.java:357) > > ... 7 more > > > > I'm convinced it > is just my jar file isn't setup right and I'd rather > use a compiled version than doing it on my own as I'm by > no means an expert. > > > > Please help! > > > > Thanks, > > > > Justin Compson > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: user-unsubscr...@commons.apache.org > > For additional commands, e-mail: user-h...@commons.apache.org > > > --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@commons.apache.org For additional commands, e-mail: user-h...@commons.apache.org