Dsy Network www | forum | my | didattica | howto | wiki | el goog | stats | blog | dona | rappresentanti
Homepage
 Register   Calendar   Members  Faq   Search  Logout 
.dsy:it. : Powered by vBulletin version 2.3.1 .dsy:it. > Community > Tech > [Java] Classpath su Mac OS X
  Last Thread   Next Thread
Author
Thread    Expand all | Contract all    Post New Thread    Post A Reply
Collapse
Laertes
(lei'3tiz)

User info:
Registered: Sep 2004
Posts: 238 (0.03 al dì)
Location: Albignano D'Adda
Corso: ComDig!
Anno: Dottore!
Time Online: 2 Days, 13:06:38 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged
Question [Java] Classpath su Mac OS X

Ciao, un mio amico ha un iBook, ma non riesce a importare il famosissimo prog.io perchè non sa come settare il classpath sull'OS X, ha chiesto a me, ma non siamo comunque riusciti, allora io chiedo a voi... cmq non dovrebbe essere molto diverso da Linux, solo che io su Linux nn l'ho mai fatto.... Grazie!!!:-D :?

15-11-2004 21:16
Click Here to See the Profile for Laertes Click here to Send Laertes a Private Message Find more posts by Laertes Add Laertes to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
recoil
dsy adminz

User info:
Registered: Mar 2002
Posts: 4454 (0.51 al dì)
Location: Milano / Erba
Corso: TICOM
Anno: laureato
Time Online: 61 Days, 16:17:45 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

prova a vedere se nella cartella dell'utente che usa il tuo amico c'è un file .bashrc oppure .chsrc oppure .thsrc ed editalo.

in quel file puoi specificare le variabili d'ambiente. dovresti trovare il path, copia quello che trovi e adattalo alla classpath, poi dovresti essere a posto.


comunque la prossima volta posta nella sezione Tech ;)

__________________
Sono sempre alla ricerca di curriculum interessanti da segnalare alle società con cui ho contatti. Info in pm

15-11-2004 21:54
Click Here to See the Profile for recoil Click here to Send recoil a Private Message Visit recoil's homepage! Find more posts by recoil Add recoil to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Laertes
(lei'3tiz)

User info:
Registered: Sep 2004
Posts: 238 (0.03 al dì)
Location: Albignano D'Adda
Corso: ComDig!
Anno: Dottore!
Time Online: 2 Days, 13:06:38 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Grazie, proverò!!

Ok..recepito, nella sezione tech..:approved:

15-11-2004 21:58
Click Here to See the Profile for Laertes Click here to Send Laertes a Private Message Find more posts by Laertes Add Laertes to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Laertes
(lei'3tiz)

User info:
Registered: Sep 2004
Posts: 238 (0.03 al dì)
Location: Albignano D'Adda
Corso: ComDig!
Anno: Dottore!
Time Online: 2 Days, 13:06:38 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

anke se mooolto in ritardo posto come ho fatto a settare il CLASSPATH con mac OS X 10.3 Panther (funziona anche con 10.4 Tiger) , magari a qualcuno servirà:

Aprire il terminale e nella propria home directory digitare:

vi .profile

Si aprirà l'editor VI

Premere " i " per iniziare

Digitare:
export CLASSPATH=.:/ directory delle classi

Premere "esc" e poi " : " per entrare in modalità "comandi ultima riga"

Digitare: "w" invio per salvare
"q" invio per chiudere
"wq" invio per salvare e uscire

FINE

Riavviare il terminale.

Verificare che il tutto funzioni digitando da terminale: echo $CLASSPATH

Se compare la directory specificata nel .profile, funziona tutto correttamente.
:approved:

Last edited by Laertes on 20-01-2007 at 10:31

01-03-2005 21:15
Click Here to See the Profile for Laertes Click here to Send Laertes a Private Message Find more posts by Laertes Add Laertes to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Laertes
(lei'3tiz)

User info:
Registered: Sep 2004
Posts: 238 (0.03 al dì)
Location: Albignano D'Adda
Corso: ComDig!
Anno: Dottore!
Time Online: 2 Days, 13:06:38 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Funziona anche con 10.5 Leopard

15-11-2007 10:07
Click Here to See the Profile for Laertes Click here to Send Laertes a Private Message Find more posts by Laertes Add Laertes to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Shaper
.consigliere.

User info:
Registered: Sep 2007
Posts: 147 (0.02 al dì)
Location: Milano
Corso: Informatica
Anno: Secondo anno
Time Online: 1 Day, 11:23:27 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Se si lavora con un IDE e non si ha la necessità di impostarlo a livello di sistema si può farlo dall'IDE stesso. Io con NetBeans vado sotto le proprietà del progetto e aggiungo il jar o la cartella..

Ma se lo fai da terminale poi rimane impostato per sempre per tutte le applicazioni?

__________________
Eidolon64|Blog

15-11-2007 16:09
Click Here to See the Profile for Shaper Click here to Send Shaper a Private Message Visit Shaper's homepage! Find more posts by Shaper Add Shaper to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
DarkSchneider
Why so serious?

User info:
Registered: Feb 2004
Posts: 1250 (0.16 al dì)
Location: Brescia
Corso: Informatica
Anno: out of bounds :/
Time Online: 26 Days, 1:01:59 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by Shaper
Ma se lo fai da terminale poi rimane impostato per sempre per tutte le applicazioni? [/B]


beh, teoricamente se lavori a livello di bashrc dell'utente, alteri il profilo utente quindi è valido per tutte le applicazioni che quell'utente utilizza durante la sua sessione

15-11-2007 20:18
Click Here to See the Profile for DarkSchneider Click here to Send DarkSchneider a Private Message Find more posts by DarkSchneider Add DarkSchneider to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Shaper
.consigliere.

User info:
Registered: Sep 2007
Posts: 147 (0.02 al dì)
Location: Milano
Corso: Informatica
Anno: Secondo anno
Time Online: 1 Day, 11:23:27 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by DarkSchneider
beh, teoricamente se lavori a livello di bashrc dell'utente, alteri il profilo utente quindi è valido per tutte le applicazioni che quell'utente utilizza durante la sua sessione
Buono a sapersi, perchè su windows mi pare che anche se setti il classpath con le variabili d'ambiente poi con, ad esempio, NetBeans devi andare comunque a specificare il classpath per ogni progetto.. correggimi se dico una boiata! :?

__________________
Eidolon64|Blog

15-11-2007 20:27
Click Here to See the Profile for Shaper Click here to Send Shaper a Private Message Visit Shaper's homepage! Find more posts by Shaper Add Shaper to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
DarkSchneider
Why so serious?

User info:
Registered: Feb 2004
Posts: 1250 (0.16 al dì)
Location: Brescia
Corso: Informatica
Anno: out of bounds :/
Time Online: 26 Days, 1:01:59 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by Shaper
Buono a sapersi, perchè su windows mi pare che anche se setti il classpath con le variabili d'ambiente poi con, ad esempio, NetBeans devi andare comunque a specificare il classpath per ogni progetto.. correggimi se dico una boiata! :?


ma, guarda...

io sono un novizio di mac os x

... potrebbe tranquillamente essere che sia io ad aver detto una boiata... :D

15-11-2007 22:32
Click Here to See the Profile for DarkSchneider Click here to Send DarkSchneider a Private Message Find more posts by DarkSchneider Add DarkSchneider to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Laertes
(lei'3tiz)

User info:
Registered: Sep 2004
Posts: 238 (0.03 al dì)
Location: Albignano D'Adda
Corso: ComDig!
Anno: Dottore!
Time Online: 2 Days, 13:06:38 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

NetBeans usa xterminal per avviare i programmi (il terminale X11) che non ha niente a che vedere con la bash di mac os x (applicazione terminale) quindi se setti il classpath come ho detto io caricherà la directory dell classi all'avvio della bash, ma per NetBeans si dovrà cmq settare il classpath nel suo ambiente.

Il mio metodo è per chi non utilizza un ambiente di sviluppo (non necessario perchè java è già integrato in OSX) ma vuole programmare con editor di testo + terminale.

Cmq ho provato netbeans 6 su leopard ed è veramente caruccio :D

17-11-2007 13:21
Click Here to See the Profile for Laertes Click here to Send Laertes a Private Message Find more posts by Laertes Add Laertes to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
All times are GMT. The time now is 22:03.    Post New Thread    Post A Reply
  Last Thread   Next Thread
Show Printable Version | Email this Page | Subscribe to this Thread | Add to Bookmarks

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is ON
 

Powered by: vBulletin v2.3.1 - Copyright ©2000 - 2002, Jelsoft Enterprises Limited
Mantained by dsy crew (email) | Collabora con noi | Segnalaci un bug | Archive | Regolamento | Licenze | Thanks | Syndacate
Pagina generata in 0.076 seconds (72.02% PHP - 27.98% MySQL) con 23 query.