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 > Programmazione > [Programmazione] Problemi con J2sdk
  Last Thread   Next Thread
Author
Thread    Expand all | Contract all    Post New Thread    Post A Reply
Collapse
shadow
.consigliere.

User info:
Registered: Sep 2003
Posts: 133 (0.02 al dì)
Location: lainate
Corso: informatica
Anno: III
Time Online: 1 Day, 8:45:02: [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged
Unhappy [Programmazione] Problemi con J2sdk

Buon giorno a tutti,
è da qualche giorno che sto iniziando a scrivere qulche riga di codice in java, ma purtroppo dopo che compilo il file .java e mando in esecuzione il file .class ottenuto ottengo questo tipo di stringa:
Exception in thread "main" java.lang.NoClassDefFoundError: BuonInizio

Di seguito vi riporto le righe di codice scritto:


class BuonInizio {

public static void main (String [] args) {
System.out.println ("Buon Inizio");
}
}


non ci sto capendo più niente AIUTATEMI!!!!!!!!!!!!

19-10-2003 15:42
Click Here to See the Profile for shadow Click here to Send shadow a Private Message Find more posts by shadow Add shadow to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Paul
blue-ringed

User info:
Registered: Jul 2002
Posts: 47 (0.01 al dì)
Location: Lodi
Corso: Info
Anno: fuoricorso
Time Online: 7 Days, 4:45:09: [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

problema di classpath...

imposta la variabile di sistema CLASSPATH

oppure lancia :
java -cp "path" BuonInizio

dove path è la directory che contiene i tuoi file .class

__________________
..non è un arrivederci, è un addio..

19-10-2003 16:08
Click Here to See the Profile for Paul Click Here to See the Blog of Paul Click here to Send Paul a Private Message Find more posts by Paul Add Paul to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Ryudo
.precettore.

User info:
Registered: Apr 2003
Posts: 85 (0.01 al dì)
Location: Arcore
Corso: Informatica
Anno: 1
Time Online: 3 Days, 8:05:43 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Mi sa che il tuo classpath e' incompleto, hai aggiunto l'indicazione della directory corrente nel classpath (il punto in pratica...) ?

19-10-2003 16:09
Click Here to See the Profile for Ryudo Click here to Send Ryudo a Private Message Visit Ryudo's homepage! Find more posts by Ryudo Add Ryudo to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
misterx
.illuminato.

User info:
Registered: Sep 2003
Posts: 154 (0.02 al dì)
Location:
Corso:
Anno:
Time Online: 23:24:56 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

occhio a digitare il nome della classe correttamente

anche se digiti ad esempio java pincopallino ottieni il medesimo errore


sotto che directory hai installato l'ambiente java ?

io ho lasciato quello di default e non ho dovuto specificare alcun SET CLASSPATH= bla bla bla

Last edited by misterx on 19-10-2003 at 16:59

19-10-2003 16:56
Click Here to See the Profile for misterx Click here to Send misterx a Private Message Find more posts by misterx Add misterx to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Polo
.illuminato.

User info:
Registered: Feb 2003
Posts: 213 (0.03 al dì)
Location: Arona
Corso: Informatica Mag.
Anno: 1-(5)
Time Online: 2 Days, 10:27:49 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Attento a come scrivi il nome della classe e ricordati di digitare il nome della classe non quello del file

19-10-2003 20:41
Click Here to See the Profile for Polo Click here to Send Polo a Private Message Find more posts by Polo Add Polo to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
All times are GMT. The time now is 13:13.    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.100 seconds (43.32% PHP - 56.68% MySQL) con 25 query.