Hi,

Perhaps your problem lies on this part of your code:

Exception in thread "main" java.lang.NoClassDefFoundError:
argparser/StringHolder
      at com.comcast.seadac.console.ConsoleApp.main(ConsoleApp.java:55)

It may not be only about your classpath; To me it means that you're missing
a jar file (probably a third party library) that has to be inside your
"console" module.

Check inside the "ConsoleApp.java" and see what classes you are using and
check your console module jar if the library that contains that class is
actually inside
the console module jar file.

This is because in other cases the "NoClassDefFoundError" indirectly
pertains to the
another class which is being used by a class that throws the error.

HTH.

On 10/17/06, Ed Young <[EMAIL PROTECTED]> wrote:

Thanks for the reply. I know this is something of a newbie issue, so I
appreciate your help. It's really got me blocked.

I've tried passing the entire path to the jar file including the
filename itself and I get the same error.

Here's where argparser lives:
  c:/Documents and
Settings/eyoung2297c/.m2/repository/argparser/argparser/1.0:
  total 129  free 22717304
  drwxrwxrwx   2 eyoung2297c root        0 Aug 30 13:45 .
  drwxrwxrwx   2 eyoung2297c root        0 Aug 30 13:44 ..
  -rw-rw-rw-   1 eyoung2297c root   131492 Aug 30 13:44 argparser-1.0.jar

Here's the command line:
C:\src\workspace\seadac-10-2>java -cp "c:/Documents and
Settings/eyoung2297c/.m2/repository/argparser/argparser/1.0/argparser-
1.0.jar"
-jar console/target/comcast-seadac-console-1.0-SNAPSHOT.jar
java -cp "c:/Documents and
Settings/eyoung2297c/.m2/repository/argparser/argparser/1.0/argparser-
1.0.jar"
-jar console/target/comcast-seadac-console-1.0-SNAPSHOT.jar
sea DAC Console APP
Exception in thread "main" java.lang.NoClassDefFoundError:
argparser/StringHolder
        at com.comcast.seadac.console.ConsoleApp.main(ConsoleApp.java:55)

Or if I put the jar file in the top level of the project and point to it:
C:\src\workspace\seadac-10-2>java -cp ./argparser-1.0.jar -jar
console/target/comcast-seadac-console-1.0-SNAPSHOT.jar
java -cp ./argparser-1.0.jar -jar
console/target/comcast-seadac-console-1.0-SNAPSHOT.jar
sea DAC Console APP
Exception in thread "main" java.lang.NoClassDefFoundError:
argparser/StringHolder
        at com.comcast.seadac.console.ConsoleApp.main(ConsoleApp.java:55)

Thanks again,

Ed


On 10/16/06, Wendy Smoak <[EMAIL PROTECTED]> wrote:
> On 10/16/06, Ed Young <[EMAIL PROTECTED]> wrote:
>
> > java -cp "c:/Documents and
> > Settings/eyoung2297c/.m2/repository/argparser/argparser/1.0" -jar
> > console/target/comcast-seadac-console-1.0-SNAPSHOT.jar
> > sea DAC Console APP
> > Exception in thread "main" java.lang.NoClassDefFoundError:
> > argparser/StringHolder
> >         at com.comcast.seadac.console.ConsoleApp.main(ConsoleApp.java
:55)
>
> Nothing to do with Maven... you haven't added the argparser jar to
> your classpath.
>
> Make sure you give the path all the way down to the filename of any
> .jar files that contain classes you need.
>
> --
> Wendy
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


--
Ed

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




--
Eduardo Dela Rosa

Reply via email to