Hi! I am having problems while trying to run pig in local mode from eclipse.
I added the pig.0.8-SNAPSHOT-core.jar, pig.0.8-SNAPSHOT.jar, ivy/libs, and
pig/libs to my project libraries. There were only two things that were
strange for me while compiling
The first thing was a warning:

 [mkdir] Created dir: /workspace/pig08/src-gen/org/apache/pig/data/parser
     [move] Moving 1 file to /workspace/pig08/build/ivy/lib/Pig
     [exec] Result: 1

This is in the build.xml and refers to the <macrodef name="svnversion">
part. As I don't have any committing privileges, I think it doesn't matter.
Is this correct?
And the second thing is the following warning:

[javacc] Warning: Lookahead adequacy checking not being performed since
option LOOKAHEAD is more than 1.  Set option FORCE_LA_CHECK to true to force
checking.

When I try running Pig as a java application I get this exception:

Exception in thread "main" java.lang.NoClassDefFoundError:
org/apache/pig/tools/parameters/ParseException
Caused by: java.lang.ClassNotFoundException:
org.apache.pig.tools.parameters.ParseException
    at java.net.URLClassLoader$1.run(URLClassLoader.java:199)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
Caused by: java.io.IOException: invalid header field
    at java.util.jar.Attributes.read(Attributes.java:389)
    at java.util.jar.Manifest.read(Manifest.java:234)
    at java.util.jar.Manifest.<init>(Manifest.java:52)
    at java.util.jar.JarFile.getManifestFromReference(JarFile.java:162)
    at java.util.jar.JarFile.getManifest(JarFile.java:148)
    at sun.misc.URLClassPath$JarLoader$2.getManifest(URLClassPath.java:696)
    at java.net.URLClassLoader.defineClass(URLClassLoader.java:228)
    at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
    ... 5 more
Could not find the main class: org.apache.pig.Main.  Program will exit.


Any kinda help is highly appreciated.

Renato M.

Reply via email to