Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Java > Java Open Source > BOOK: Professional Hibernate
Password Reminder
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
BOOK: Professional Hibernate
This is the forum to discuss the Wrox book Professional Hibernate by Eric Pugh, Joseph D. Gradecki; ISBN: 9780764576775
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional Hibernate section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old March 28th, 2005, 08:47 PM
Registered User
Join Date: Mar 2005
Location: , , .
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts

Why in this day and age do I have to suffer this?

CLASSPATH WOES (separate post) :

C:\Java\Swing\standalone>echo %CLASSPATH%
HOME%\hibernate2.jar;C:\SQLServerJDBC\lib\msbase.j ar;C:\SQLServerJDBC\lib\msutil
.jar;C:\SQLServerJDBC\lib\mssqlserver.jar;C:\j2sdk 1.4.2_06\bin;C:\Hibernate\hibe

As you can see all imaginable jars are in this classpath and I can view it right there in my command line when I echo the classpath.

and yet when I do the following :

C:\Java\Swing\standalone>java CDTest
Exception in thread "main" java.lang.NoClassDefFoundError: CDTest

That is the error I get!

Until I have to use the following command line "command":

C:\Java\Swing\standalone>java -classpath .;C:\Hibernate\hibernate2.jar;C:\Hibern
b\commons-collections-2.1.1.jar;C:\SQLServerJDBC\lib\msbase.jar;C:\SQLSe rverJDBC
\lib\mssqlserver.jar;C:\SQLServerJDBC\lib\msutil.j ar;C:\Hibernate\lib\ehcache-0.
9.jar;C:\Hibernate\lib\cglib-full-2.0.2.jar CDTest

And it works then.

I have to include the path in the command line, why is that?

Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Installation woes gcallaway Beginning PHP 9 March 31st, 2008 07:05 PM
onClick woes DennyLoi Javascript How-To 1 November 3rd, 2007 01:13 PM
Array woes hillbilly geek PHP How-To 2 January 8th, 2006 12:28 AM
Form woes komputatek Access 2 March 15th, 2005 11:47 AM
Installation woes mattm BOOK: Beginning PHP4/PHP 5 ISBN: 978-0-7645-4364-7; v5 ISBN: 978-0-7645-5783-5 2 June 26th, 2003 03:40 PM

All times are GMT -4. The time now is 01:11 AM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.