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. > Didattica > Corsi N - Z > Reti di calcolatori > [JAVA] Problemi compilazione
  Last Thread   Next Thread
Author
Thread    Expand all | Contract all    Post New Thread    Post A Reply
Collapse
No?Ya!
il supercoatto

User info:
Registered: Oct 2002
Posts: 187 (0.02 al dì)
Location: Berghèm
Corso: Tecnologie Della Comunicazione
Anno: ...fuori corso...
Time Online: 1 Day, 9:55:47 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged
[java] Problemi compilazione

non è propriamente relativo a ret... ma se provo a compilare una classe mi da questo errore:

Exception in thread "main" java.lang.NoClassDefFoundError: Server

Non capisco di che si tratti!

qua di sotto il codice (non l'ho testato):

import java.io.*;
import java.net.*;
public class Server{
public static void main(String[] args) throws Exception
{
String servString = "stringa inviata dal server\n";
ServerSocket s = new ServerSocket(6789);
while(true){
Socket socketConnessione = s.accept();
DataOutputStream datiOut = new DataOutputStream(socketConnessione.getOutputStream());
datiOut.writeBytes(servString);
}
}
}


che cosa non va?

Graz!

No?

__________________
http://www.noya.it
--------
Delta9 Drum&Bass Crew
--------
Associazione Orange

28-02-2005 11:35
Click Here to See the Profile for No?Ya! Click Here to See the Blog of No?Ya! Click here to Send No?Ya! a Private Message Visit No?Ya!'s homepage! Find more posts by No?Ya! Add No?Ya! to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
TankJr.
* Giulia Sprint GTA *

User info:
Registered: Nov 2002
Posts: 857 (0.10 al dì)
Location: Gallarate
Corso: Former TICom
Anno:
Time Online: 27 Days, 4:28:54 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

quello è un errore che ti da quando non vede il classpath.. controlla le variabili d'ambiente!

__________________
"Il Buddha, il Divino, dimora nel circuito di un calcolatore o negli ingranaggi del cambio di una moto con lo stesso agio che in cima a una montagna o nei petali di un fiore. Pensare altrimenti equivale a sminuire il Buddha - il che equivale a sminuire sè stessi." Robert M. Pirsig - Lo Zen e l'arte della manutenzione della motocicletta

28-02-2005 14:04
Click Here to See the Profile for TankJr. Click here to Send TankJr. a Private Message Find more posts by TankJr. Add TankJr. to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
No?Ya!
il supercoatto

User info:
Registered: Oct 2002
Posts: 187 (0.02 al dì)
Location: Berghèm
Corso: Tecnologie Della Comunicazione
Anno: ...fuori corso...
Time Online: 1 Day, 9:55:47 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged
come?

Sai dirmi le variabili da settare con Win2000 ?

io ho settato il PATH ma non so se c'è da settare qualcos'altro!!!

__________________
http://www.noya.it
--------
Delta9 Drum&Bass Crew
--------
Associazione Orange

28-02-2005 15:21
Click Here to See the Profile for No?Ya! Click Here to See the Blog of No?Ya! Click here to Send No?Ya! a Private Message Visit No?Ya!'s homepage! Find more posts by No?Ya! Add No?Ya! to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
0m4r
.grande:maestro.

User info:
Registered: Mar 2002
Posts: 7287 (0.84 al dì)
Location: Düsseldorf (DE)
Corso:
Anno: ESAMI FINITI
Time Online: 49 Days, 0:57:33 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

facciamo che mi spieghi lòa struttura delle direcotry utilizzata per il programme e mi indichi quali sono le altre classi coinvolte nell'esecuzione di quella che tu hai postato qui... poi foirse potremmo aiutarti un filino meglio

Off-Topic:
complimenti, bella musica... non ne capisco molto di drum'n'bass ma mi piace ascoltarla e la vostra mi piace.

__________________
http://www.twitter.com/0m4r

Last edited by 0m4r on 28-02-2005 at 18:16

28-02-2005 18:11
Click Here to See the Profile for 0m4r Click Here to See the Blog of 0m4r Click here to Send 0m4r a Private Message Find more posts by 0m4r Add 0m4r to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
TankJr.
* Giulia Sprint GTA *

User info:
Registered: Nov 2002
Posts: 857 (0.10 al dì)
Location: Gallarate
Corso: Former TICom
Anno:
Time Online: 27 Days, 4:28:54 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

guarda il quarto post..

http://www.dsy.it/forum/showthread.php?s=&threadid=6943

__________________
"Il Buddha, il Divino, dimora nel circuito di un calcolatore o negli ingranaggi del cambio di una moto con lo stesso agio che in cima a una montagna o nei petali di un fiore. Pensare altrimenti equivale a sminuire il Buddha - il che equivale a sminuire sè stessi." Robert M. Pirsig - Lo Zen e l'arte della manutenzione della motocicletta

28-02-2005 20:04
Click Here to See the Profile for TankJr. Click here to Send TankJr. a Private Message Find more posts by TankJr. Add TankJr. to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
No?Ya!
il supercoatto

User info:
Registered: Oct 2002
Posts: 187 (0.02 al dì)
Location: Berghèm
Corso: Tecnologie Della Comunicazione
Anno: ...fuori corso...
Time Online: 1 Day, 9:55:47 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged
a posto

Ringrazio Om4r (anche per i complimenti...:oops::oops::oops:)

cmq ho risolto... ho ravanato tra i thread del dsy e ho trovato la soluzione... il problema stava nel mettere un "." (il punto) alla fine del percorso del classpath... non sapete quanti santi ho bestemmiato

__________________
http://www.noya.it
--------
Delta9 Drum&Bass Crew
--------
Associazione Orange

28-02-2005 20:28
Click Here to See the Profile for No?Ya! Click Here to See the Blog of No?Ya! Click here to Send No?Ya! a Private Message Visit No?Ya!'s homepage! Find more posts by No?Ya! Add No?Ya! to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
0m4r
.grande:maestro.

User info:
Registered: Mar 2002
Posts: 7287 (0.84 al dì)
Location: Düsseldorf (DE)
Corso:
Anno: ESAMI FINITI
Time Online: 49 Days, 0:57:33 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

a volte le cose basta giusto saperle ;P

P.S.
0m4r, non Om4r, c'è uno zero al posto della O

__________________
http://www.twitter.com/0m4r

28-02-2005 20:42
Click Here to See the Profile for 0m4r Click Here to See the Blog of 0m4r Click here to Send 0m4r a Private Message Find more posts by 0m4r Add 0m4r to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
yeah
.grande:maestro.

User info:
Registered: Nov 2003
Posts: 1644 (0.20 al dì)
Location: Cologno Monzese
Corso: Informatica Magistrale
Anno: II
Time Online: 12 Days, 21:36:41 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Off-Topic:

Io non ho impostato il classpath e il codice compila e va senza problemi :)

__________________
?

28-02-2005 20:49
Click Here to See the Profile for yeah Click here to Send yeah a Private Message Find more posts by yeah Add yeah to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Skilotto83
..Energia positiva...

User info:
Registered: Jun 2003
Posts: 1608 (0.19 al dì)
Location: Arconate
Corso: Informatica
Anno: LAUREATO!!!
Time Online: 15 Days, 6:32:44 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by yeah
Off-Topic:

Io non ho impostato il classpath e il codice compila e va senza problemi :)


probabilmente hai messo il compilatore e i file che compili della stessa cartella..e da quella cartella lanci il comando per compilare...
La classpath serve teoricamente per dire al sistema operativo dove andare a prendere il compilatore se la chiami da c:
volendo si puo' farne a meno se compili gia' dalla cartella doce c'è il compilatore....
è una comodita'...
correggetemi se sbaglio...

__________________
"Why, Sir, you find no man at all intellectual who is willing to leave London.
No, Sir, when a man is tired of London, he is tired of life; for there is in London all that life can afford."
(DR SAMUEL JOHNSON 1777)

MSN andrea.poretti(at)hotmail.it

28-02-2005 21:09
Click Here to See the Profile for Skilotto83 Click here to Send Skilotto83 a Private Message Find more posts by Skilotto83 Add Skilotto83 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
0m4r
.grande:maestro.

User info:
Registered: Mar 2002
Posts: 7287 (0.84 al dì)
Location: Düsseldorf (DE)
Corso:
Anno: ESAMI FINITI
Time Online: 49 Days, 0:57:33 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by yeah
Off-Topic:

Io non ho impostato il classpath e il codice compila e va senza problemi :)


può darsi che tu il "." lo abbia messo nel PATH mentre no?ya! non lo abbia fatto, ma è unìipotesi non so come avete configurato i vostri sistemi...

__________________
http://www.twitter.com/0m4r

28-02-2005 21:17
Click Here to See the Profile for 0m4r Click Here to See the Blog of 0m4r Click here to Send 0m4r a Private Message Find more posts by 0m4r Add 0m4r to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
yeah
.grande:maestro.

User info:
Registered: Nov 2003
Posts: 1644 (0.20 al dì)
Location: Cologno Monzese
Corso: Informatica Magistrale
Anno: II
Time Online: 12 Days, 21:36:41 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

no :)
Forse è che se il classpath è definito cerca di usarlo (e se è mal configurato va nei pasticci) altrimenti non lo usa e va per le vie standard

__________________
?

28-02-2005 21:20
Click Here to See the Profile for yeah Click here to Send yeah a Private Message Find more posts by yeah Add yeah to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
0m4r
.grande:maestro.

User info:
Registered: Mar 2002
Posts: 7287 (0.84 al dì)
Location: Düsseldorf (DE)
Corso:
Anno: ESAMI FINITI
Time Online: 49 Days, 0:57:33 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

questo lo so, io davo una rissposta all'utilizzo o non utilizzo del "." ;P

__________________
http://www.twitter.com/0m4r

28-02-2005 21:27
Click Here to See the Profile for 0m4r Click Here to See the Blog of 0m4r Click here to Send 0m4r a Private Message Find more posts by 0m4r Add 0m4r to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
All times are GMT. The time now is 18:59.    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.237 seconds (68.02% PHP - 31.98% MySQL) con 26 query.