Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
java config and J2EE
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
phunni
Apprentice
Apprentice


Joined: 05 May 2003
Posts: 217
Location: Bristol, UK

PostPosted: Tue May 27, 2003 11:50 am    Post subject: java config and J2EE Reply with quote

Is there a way of adding the j2ee classes to my classpath using java-config? I tried java-config --list-available-packages and j2ee wasn't there

It seems a shame to have to manually add it to my classpath - especially when the tool has so neatly done everything else for me
_________________
Old School is the way forward!
Back to top
View user's profile Send private message
cdmstro
Tux's lil' helper
Tux's lil' helper


Joined: 26 Apr 2003
Posts: 93

PostPosted: Sat May 31, 2003 1:41 pm    Post subject: Reply with quote

Quote:
Is there a way of adding the j2ee classes to my classpath using java-config? I tried java-config --list-available-packages and j2ee wasn't there


java-config scans the /usr/share subdirectories for files named 'package.env', to add additional packages for use by the java-config command I have created 'stub' directories for additional libraries I want to make avaliable.

Within the stub directory, I create the file 'package.env' containing the class path of the libraries for that package. The file should contain the following:
Code:

DESCRIPTION="Package description"
CLASSPATH=/opt/build/classes:/opt/build/lib/mypkg.jar

the CLASSPATH line can contain as many different libraries as you want, it makes it really easy to switch around my classpaths depending on what I want to do.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum