[nbusers] Independent NB RCP application and project.properties classpath.

  • From: "DarkNathan" < >
  • To:
  • Subject: [nbusers] Independent NB RCP application and project.properties classpath.
  • Date: Tue, 13 Nov 2012 05:11:53 -0500

Hi,

i have followed this (http://netbeans.dzone.com/nb-call-ejb-on-glassfish
tutorial on how to connect an ejb deployed on a GlassFish server from a 
Netbeans RCP application.

As said, i used the package-appclient command from GlassFish installation to 
create a single jar containing the needed dependencies. I extract it at the 
root of my application and added the gf-client.jar to my classpath using the 
project.properties file:


Code:
run.args.extra=-cp:a ./appclient/glassfish/lib/gf-client.jar



It works but only when i'm running the application within the IDE, how can i 
make it works for an independent application? (i mean after packaging it as a 
Mac OSX application for example).

PS: I found this comment on the linked tutorial:


> 
> Right, but the package-appclient copies everything for you and you should 
> be able to put it on the classpath using the endorsed mechanism. Unpack the 
> jar created by that and add everything you need from there (the jars) to 
> your application installer. Then you can use the endorsed 
> (-J-Djava.endorsed.dirs=${GFCLIENT_PATH}) mechanism in your app.conf to put 
> it on the application classpath. This way you should be able to deploy it 
> together with your client.
> 


But to be honest, i'm not sure to understand.

Thanks.






[nbusers] Independent NB RCP application and project.properties classpath.

DarkNathan 11/13/2012

Project Features

About this Project

www was started in November 2009, is owned by jpirek, and has 21 members.
By use of this website, you agree to the NetBeans Policies and Terms of Use (revision 20140418.2d69abc). © 2013, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo
 
 
Close
loading
Please Confirm
Close