C:\Program Files\Java\jdk1.6.0_20\bin>java -jar c:\eclipse\persistence.jar
Just Created New Library
Status Report of MyLibrary:
Test Drive Library: 2 books; 2 people.
War and Peace by Tolstoy; Available
Great Expectations by Charles Dickens; Available
Jim (3 books) (has 0 of my books)
Sue (3 books) (has 0 of my books)
Books Available: 2
-- End of Status Report--
Checked out War and Peace to Sue
Status Report of MyLibrary:
Test Drive Library: 2 books; 2 people.
War and Peace by Tolstoy; Checked out to Sue
Great Expectations by Charles Dickens; Available
Jim (3 books) (has 0 of my books)
Sue (3 books) (has 1 of my books)
Books Available: 1
-- End of Status Report--
Status Report of MyLibrary:
Test Drive Library: 2 books; 2 people.
War and Peace by Tolstoy; Available
Great Expectations by Charles Dickens; Checked out to Jim
Jim (3 books) (has 1 of my books)
Sue (3 books) (has 0 of my books)
Books Available: 1
-- End of Status Report--
Exception in thread "main" java.lang.NoClassDefFoundError: com/thoughtworks/xstream/io/HierarchicalStreamDriver
at org.persistence.tutorial.MyLibrary.main(MyLibrary.java:140)
Caused by: java.lang.ClassNotFoundException: com.thoughtworks.xstream.io.HierarchicalStreamDriver
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
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)
… 1 more
can anybody tell me what's wrong?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2010-07-07
problem fixed:
in lessen 10 with Eclipse Helios i export to 'runnable Jar' and so it works.
Thanks for this great tutorial!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello
problem running .jar file:
C:\Program Files\Java\jdk1.6.0_20\bin>java -jar c:\eclipse\persistence.jar
Just Created New Library
Status Report of MyLibrary:
Test Drive Library: 2 books; 2 people.
War and Peace by Tolstoy; Available
Great Expectations by Charles Dickens; Available
Jim (3 books) (has 0 of my books)
Sue (3 books) (has 0 of my books)
Books Available: 2
-- End of Status Report--
Checked out War and Peace to Sue
Status Report of MyLibrary:
Test Drive Library: 2 books; 2 people.
War and Peace by Tolstoy; Checked out to Sue
Great Expectations by Charles Dickens; Available
Jim (3 books) (has 0 of my books)
Sue (3 books) (has 1 of my books)
Books Available: 1
-- End of Status Report--
Status Report of MyLibrary:
Test Drive Library: 2 books; 2 people.
War and Peace by Tolstoy; Available
Great Expectations by Charles Dickens; Checked out to Jim
Jim (3 books) (has 1 of my books)
Sue (3 books) (has 0 of my books)
Books Available: 1
-- End of Status Report--
Exception in thread "main" java.lang.NoClassDefFoundError: com/thoughtworks/xstream/io/HierarchicalStreamDriver
at org.persistence.tutorial.MyLibrary.main(MyLibrary.java:140)
Caused by: java.lang.ClassNotFoundException: com.thoughtworks.xstream.io.HierarchicalStreamDriver
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
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)
… 1 more
can anybody tell me what's wrong?
problem fixed:
in lessen 10 with Eclipse Helios i export to 'runnable Jar' and so it works.
Thanks for this great tutorial!