Problem with Auto-Ingest tool


#1

Hi I’m trying to pull down sales report on Apple by using Auto-Ingest tool. I am downloading the script to run locally, but I’ve never been successfully pulling out the report.

My steps:

  1. I download (http://www.apple.com/itunesnews/docs/Autoingestion.class.zip) and save the file Autoingestion.class to the directory where I want the reports delivered.
  2. Then, I go to terminal and change the directory to the directory where I downloaded the Auto Ingest Tool.
  3. I run the following command line - java Autoingestion john@xyz.com letmein 80012345 Sales Daily Summary 20110826, then it throw out the following error:

Exception in thread “main” java.lang.ClassFormatError: Incompatible magic value 791289956 in class file Autoingestion
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
at java.lang.ClassLoader.defineClass(ClassLoader.java:615)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)

Any suggestion how to fix this issue? Thank you.


#2

A magic value of 791289956 corresponds to a file that starts with the four characters:

That looks like you’ve somehow ended up with a Java source file, not a .class.