• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Rogerio Kioshi
Ranch Hand
Posts: 690
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.


 
Kees Jan Koster
JavaMonitor Support
Rancher
Posts: 251
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic