I tried it again and it still gives me the same error I copied the code and 
this is what it says

I just don't understand this problem

-------------------------------------------------------
 T E S T S
-------------------------------------------------------
Running org.JasonThomas.ShadowInnovations.AppTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.013 sec

Results :

Tests run: 1, Failures: 0, Errors: 0, Skipped: 0

[INFO]
[INFO] --- maven-jar-plugin:2.3.1:jar (default-jar) @ MavenTest ---
[INFO] Building jar: C:\Program Files\apache-maven-3.0.3\my-app\joker\MavenTest\
target\MavenTest-1.0-SNAPSHOT.jar
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3.000s
[INFO] Finished at: Sun Dec 18 14:10:07 CST 2011
[INFO] Final Memory: 12M/104M
[INFO] ------------------------------------------------------------------------
C:\Program Files\apache-maven-3.0.3\my-app\joker\MavenTest>java -cp target/Maven
Test-1.0-SNAPSHOT.jar org.JasonThomas.ShadowInnovations
Error: Could not find or load main class org.JasonThomas.ShadowInnovations

C:\Program Files\apache-maven-3.0.3\my-app\joker\MavenTest>



________________________________
 From: Robert Scholte [via Maven] <ml-node+s40175n5084324...@n5.nabble.com>
To: Apache Omega <jason007tho...@yahoo.com> 
Sent: Sunday, December 18, 2011 1:21 PM
Subject: RE: having problems with java -cp taget command
 



This problem has nothing to do with Maven, it's java basics. 

First of all, you shouldn't look under src/main/java, this is not on the 
classpath. You should look in the jar. 

The real problem is a typo: 

org.JasnThomas.ShadowInnovations 

org.JasonThomas.ShadowInnovations 

  

see the difference? 

  

-Robert 

  

ps. try to keep packagenames lowercase. 



> Date: Sun, 18 Dec 2011 11:14:20 -0800 
> From: [hidden email] 
> To: [hidden email] 
> Subject: having problems with java -cp taget command 
> 
> I've worked out some kinks just to find another kink 
> i entered (java -cp target/MavenTestApp-1.0-SNAPSHOT.jar 
> org.JasnThomas.ShadowInnovations) and the message i got was could not find 
> or load main class org.JasonThomas.ShadowInnovations and the folder is 
> clearly in the right path 
> src/main/java/org/JasonThomas/ShadowInnovations/App.java 
> 
> how is this possible when the folder is clearly there 
> 
> p.s. sorry i'm posting so much I'm just trying to get started quickly - 
> losing time on actually programing messing around with all this but i gotta 
> learn it. 
> 
> 
> -- 
> View this message in context: 
> http://maven.40175.n5.nabble.com/having-problems-with-java-cp-taget-command-tp5084317p5084317.html
> Sent from the Maven - Users mailing list archive at Nabble.com. 
> 
> --------------------------------------------------------------------- 
> To unsubscribe, e-mail: [hidden email] 
> For additional commands, e-mail: [hidden email] 
>                                          
> --------------------------------------------------------------------- 
To unsubscribe, e-mail: [hidden email] 
For additional commands, e-mail: [hidden email] 



________________________________
 
If you reply to this email, your message will be added to the discussion 
below:http://maven.40175.n5.nabble.com/having-problems-with-java-cp-taget-command-tp5084317p5084324.html
 
To unsubscribe from having problems with java -cp taget command, click here.
NAML

--
View this message in context: 
http://maven.40175.n5.nabble.com/having-problems-with-java-cp-taget-command-tp5084317p5084424.html
Sent from the Maven - Users mailing list archive at Nabble.com.

Reply via email to