Skip to main content

Which JAR files are needed for running a rich client with Glassfish hosted J2EE application

Please note these java.net forums are being decommissioned and use the new and improved forums at https://community.oracle.com/community/java.
4 replies [Last post]
dlemmermann
Offline
Joined: 2006-12-30

Hi there,

can anyone tell me, which ones of the many appsrv-XXX.jar files are needed in order to connect a Java / Swing rich client application with a Glassfish backend? In my code I am only referencing the class ProgrammaticLogin.class. The client is NOT running as a Java Webstart application.

Regards,

Dirk Lemmermann

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

Hello, Dirk.

What release of GlassFish are you using?

Assuming it's 3.x, look for gf-client.jar. For the most recent
releases it will be in glassfish3/glassfish/lib. If it is an older
3.x release look in glassfish3/glassfish/modules.

Add the relevant file to your client's class path. Note that gf-
client.jar itself is quite small and refers to many other JARs in its
manifest Class-Path.

More information about running rich clients is here:

http://glassfish.java.net/javaee5/ejb/EJB_FAQ.html

- Tim

On Mar 5, 2012, at 6:02 AM, forums@java.net wrote:

> Hi there,
>
> can anyone tell me, which ones of the many appsrv-XXX.jar files are
> needed in
> order to connect a Java / Swing rich client application with a
> Glassfish
> backend? In my code I am only referencing the class
> ProgrammaticLogin.class.
> The client is NOT running as a Java Webstart application.
>
> Regards,
>
> Dirk Lemmermann
>
>
> --
>
> [Message sent by forum member 'dlemmermann']
>
> View Post: http://forums.java.net/node/884015
>
>

dlemmermann
Offline
Joined: 2006-12-30

I am actually running GF 2.1

tjquinn
Offline
Joined: 2005-03-30

On Mar 5, 2012, at 8:25 AM, forums@java.net wrote:

> I am actually running GF 2.1

The FAQ I pointed to has the answer:

$GLASSFISH_HOME/lib/appserv-rt.jar and javaee.jar

should work for you.

>
>
> --
>
> [Message sent by forum member 'dlemmermann']
>
> View Post: http://forums.java.net/node/884015
>
>

dlemmermann
Offline
Joined: 2006-12-30

Thanks, this works fine now.

Dirk