Skip to main content

Missing Jar Files?

1 reply [Last post]
jaredkrull
Offline
Joined: 2009-12-24

I have a glassfish setup (V3) and am coding a Java SE App that looks up EJBs via JNDI.

All's fine running from the IDE, but when I try to run the jar file from the command line I am getting dependancy exceptions for classes such as com.sun.logging.LogDomains.

Looking on the web, the answer seems to be that I add extra jars (appserv-ext.jar, appserv-admin.jar, appserv-deployment-client.jar), but they are not in my lib folder. I have appserv-rt.jar, javaee.jar & jndi-properties.jar but looking at the advice I should have the three jars that I need in the same folder.

Am I missing something or is there a problem with my installation.

I'd appreciate any advice

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
tjquinn
Offline
Joined: 2005-03-30

In GlassFish v3 it should be sufficient to add appserv-rt.jar to your class path. Actually, this JAR simply refers to gf-client.jar, but we've retained appserv-rt.jar for backward compatibility with v2.

The other JARs you mentioned were in v2 but v3 does not contain those specific JARs.

- Tim