-->
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: Class path in Executable jar
PostPosted: Wed May 03, 2006 10:02 am 
Newbie

Joined: Fri Apr 28, 2006 9:42 am
Posts: 9
Location: Florida, USA
Hibernate version: 3.1

General Question: This I think is not a Hibernate specific question but hopefully someone can answer it anyway.
The manifest specifies the Main-Class and the Class-Path. The hibernate3.jar is first in my list of jar files in the manifest.
If I build my jar and execute it within the Eclipse Workspace project structure it works fine. However, when I move the jar out into say the root of C:, it fails to find the Hibernate jar ie; ClassNotFoundException. I have tried all kinds of ways of specifying the location of the jars eg; hibernate3.jar, ../hibernate3.jar and so on, but nothing works. I have verified that the manifest is being accessed - by changing a jar name to an invalid name. The manifest is in meta-inf directory, which off the root of the executable jar. All jar files are also directly off the jar root. Here's the executable structure:
com/foo/bar/
com/foo/bar/bar1/ and so on...
jars
meta-inf/MANIFEST.MF

Any help with this admittedly java101 question would be appreciated...


Top
 Profile  
 
 Post subject: Re: Classpath in exec jar file
PostPosted: Wed May 03, 2006 10:39 am 
Newbie

Joined: Fri Apr 28, 2006 9:42 am
Posts: 9
Location: Florida, USA
Sorry, just fixed the issue by putting all the jar files in the JAVA_HOME/jre/lib/ext directory. However, it seems like a less than ideal solution.


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.