wood burning stoves 2.0*
The moose likes JBoss/WildFly and the fly likes What does this means -root of classpath Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "What does this means -root of classpath" Watch "What does this means -root of classpath" New topic
Author

What does this means -root of classpath

avihai marchiano
Ranch Hand

Joined: Jan 10, 2007
Posts: 342
I need to have file import.sql in the root of the classpath.
my application is deployed as an ear.
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 9930
    
159

It means that you have to place the import.sql file directly in the .ear (and not in any sub-folders). Like this:



[My Blog] [JavaRanch Journal]
avihai marchiano
Ranch Hand

Joined: Jan 10, 2007
Posts: 342
I think that root of the classpath means that it cant be in a package.
Its ok to put it in a jar (i tried and it work) , but it have to be in the top level of the jar.

Thank you
 
 
subject: What does this means -root of classpath
 
Similar Threads
Struts2: Test action classes
Bsic steps to add log4j
Problem reading resource bundle with java.io.File but not with Resource Bundle
How Struts2.xml is Configured...
where to write the client code in websphere?