[Primipassi] Java e PATH

Marco Ermini markoer@usa.net
Gio 18 Mar 2004 15:31:49 CET


Il giorno 18/mar/04, alle 14:49, Marco Ermini ha scritto:

> Il giorno 18/mar/04, alle 14:43, Massimiliano Cosimelli ha scritto:
>
>> Ciao,
>>
>> come si fa ad aggiungere la directory dove risiede java nel PATH? E'
>> stato spiegato al corso, ma purtroppo non lo ricordo :-(
>
> Non so cosa ti abbiano spiegato al corso, ma il modo migliore è 
> mettere un paio di files nella directory /etc/profile.d/

Dimenticavo che puoi anche mettere un file .classpath nella directory 
in cui lanci il programma, in un formato XML del tipo:

<?xml version="1.0" encoding="UTF-8"?>
<classpath>
     <classpathentry kind="src" path="src"/>
     <classpathentry kind="src" path="test"/>
     <classpathentry exported="true" kind="lib" 
path="lib/castor-0.9.3.19-xml.jar"/>
     <classpathentry exported="true" kind="lib" 
path="lib/classes12.jar"/>
     <classpathentry exported="true" kind="lib" 
path="lib/log4j-1.2.3.jar"/>
     <classpathentry exported="true" kind="lib" 
path="lib/xercesImpl.jar"/>
     <classpathentry exported="true" kind="lib" path="lib/xml-apis.jar"/>
     <classpathentry exported="true" kind="lib" path="conf"/>
     <classpathentry exported="true" kind="lib" path="lib/iks.jar"/>
     <classpathentry exported="true" kind="lib" path="lib/junit.jar"/>
     <classpathentry kind="output" path="build/classes"/>
</classpath>



ciao

>
-- 
Marco Ermini
http://www.markoer.org - ICQ 50825709/Yahoo! msg "markoer73"
Dubium sapientiae initium. (Descartes)
« This message is for the designated recipient only and may contain
privileged or confidential information. If you have received it in
error, please notify the sender immediately and delete the original.
Any other use of the email by you is prohibited. »





Maggiori informazioni sulla lista primipassi