lab 1 - checkSync

0 views
Skip to first unread message

elisabet

unread,
Apr 14, 2010, 5:18:03 AM4/14/10
to LBS course 2010
When I to run checkSync with the command line presented on the web
page, I get the following error:
[elisabet@ed-5355-18 lab1]$ java -cp /chalmers/courses/TDA600/
CheckSync/checkSync.jar:. edu.umd.cs.pugh.CheckSync PasswordApp
Exception in thread "main" java.lang.NoClassDefFoundError: edu/umd/cs/
pugh/CheckSync
Caused by: java.lang.ClassNotFoundException: edu.umd.cs.pugh.CheckSync
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:303)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:
301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:
316)
Could not find the main class: edu.umd.cs.pugh.CheckSync. Program
will exit.


I can't even see the /chalmers/courses/ directory. Any suggestions?

//elisabet.

Arnar Birgisson

unread,
Apr 14, 2010, 6:02:01 AM4/14/10
to lbs-cou...@googlegroups.com
Hej Elisabet,

/chalmers/courses/TDA600 seems to have changed to
/chalmers/groups/tda600. You might need to do "setup_course tda600"
before you see it.

hth,
Arnar

> --
> To unsubscribe, reply using "remove me" as the subject.
>

Mats

unread,
Apr 16, 2010, 7:40:09 AM4/16/10
to LBS course 2010, Tobias Olausson
We get this problem...We ran setup_course, and we have downloaded the
checkSync tool to the same directory as our code.

tda600:[~/eraser]$java -cp ./checkSync.jar:. edu.umd.cs.pugh.CheckSync
PasswordApp
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.bcel.util.JavaWrapper.runMain(Unknown Source)
at org.apache.bcel.util.JavaWrapper.main(Unknown Source)
at edu.umd.cs.pugh.CheckSync.main(Unknown Source)
Caused by: java.lang.VerifyError: (class: Principal$Name, method:
valueOf signature: (Ljava/lang/String;)LPrincipal$Name;) Illegal
constant pool index
at PasswordApp.main(PasswordApp.java:7)
... 7 more

//Mats and Tobias

Asdranias Grigorios

unread,
Apr 16, 2010, 3:17:25 PM4/16/10
to lbs-cou...@googlegroups.com

Hej, 


I managed to run the checkSunc tool in Eclipse. I just added the checkSync.jar as an external jar in my project. Then I ran the application with main class set as "edu.umd.cs.pugh.CheckSync" and one program argument, the "PasswordApp". And it  works.


I attach a screen-shot of what I mean.


/Greg Asdranias


--- On Fri, 16/4/10, Mats <risk2...@gmail.com> wrote:
screenshot.png
Reply all
Reply to author
Forward
0 new messages