-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: CLASSPATH issue with hibernate
PostPosted: Sat May 30, 2009 1:30 am 
Newbie

Joined: Sat May 30, 2009 1:12 am
Posts: 2
Hi,

I have an issue which looks simple, but too complex.

i have a stand alone application which uses hibernate with DB2 database.

I am trying to run it on AIX machine.

I have set the CLASSPATH environment variable to <DB2HOME>/sqllib/java/*.jar
i made sure all DB2 related jars which is required to run my application is are in the classpath.

I am using type 4 driver of DB2 , ie com.ibm.DB2.jcc.DB2Driver

Now problem is while running the application it says Class not found, com.ibm.DB2.jcc.DB2Driver ......

My question , when i set the classpath in the environment why my jvm does not take the class from there.??

I have also tryied running the jvm with -classpath DB2HOME>/sqllib/java/db2jcc.jar:..... option still same error am getting.

Please help.


Top
 Profile  
 
 Post subject: Re: CLASSPATH issue with hibernate
PostPosted: Sat May 30, 2009 10:01 am 
Newbie

Joined: Sat May 30, 2009 1:12 am
Posts: 2
Finally got the reason, -jar option i used while running the application is over riding the -cp option. And there is no way, i can give the manifest class-path, the environment variable. What is the solution? Run the application with out -jar option, giving the class name.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.