Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes Other Java Products and Servers and the fly likes How to set Glassfish classpath in order to get all jars in a folder? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Products » Other Java Products and Servers
Bookmark "How to set Glassfish classpath in order to get all jars in a folder?" Watch "How to set Glassfish classpath in order to get all jars in a folder?" New topic
Author

How to set Glassfish classpath in order to get all jars in a folder?

Rogerio Kioshi
Ranch Hand

Joined: Apr 12, 2005
Posts: 689
Hi,

I'd like to how can I set Glassfish classpath in order to get all jars in a folder.

I'm trying to put:

C:\libsJava\*.jar

in "Server Classpath" field and "Classpath Prefix" field (Application Server > JVM Settings > Path Settings).

But it's not working. If I write the whole jar name (like C:\libsJava\log.jar, for instance) it loads the jar correctly.

There are many jars inside this folder, so I didn't want to write every line of each jar.



SCEA 5 (part 1), SCBCD, SCWCD, SCJP, CLP, CLS
Kees Jan Koster
JavaMonitor Support
Rancher

Joined: Mar 31, 2009
Posts: 251
    
    5
Dear Rogerio,

You should put your JAR files into your WAR files, not into Glassfish. Doing the latter will make upgrading or changing your app server a pain.

Kees Jan


Java-monitor, JVM monitoring made easy <- right here on Java Ranch
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to set Glassfish classpath in order to get all jars in a folder?