 |
AppletTalk.com Java discussions newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Roberto Guest
|
Posted: Fri Sep 23, 2005 7:03 am Post subject: [newbie] esecuzione jar |
|
|
Ciao a tutti.
Con Netbeans ho creato un nuovo progetto.
A questo progetto ho aggiunto un jDialog.
Da netbeans, compilando ed eseguendo, è tutto ok, nessun tipo di
problema.
Nel Main, prima di lanciare il jdialog, ho messo un
system.out.println("Ciao a tutti");
Poi provando a fare doppio click sul .jar che mi ha creato non succede
nulla.
Allora faccio da schermata dos queste prove:
C:tempJavaApplication2dist>java JavaApplication2.jar
Exception in thread "main" java.lang.NoClassDefFoundError:
JavaApplication2/jar
C:tempJavaApplication2dist>java -jar JavaApplication2.jar
Ciao a tutti
Exception in thread "main" java.lang.NoClassDefFoundError:
org/jdesktop/layout/G
roupLayout$Group
at javaapplication2.Main.main(Main.java:29)
C:tempJavaApplication2dist>java -cp ./ -jar JavaApplication2.jar
Ciao a tutti
Exception in thread "main" java.lang.NoClassDefFoundError:
org/jdesktop/layout/G
roupLayout$Group
at javaapplication2.Main.main(Main.java:29)
Questo è il mio codice:
package javaapplication2;
public class Main {
public Main() {
}
public static void main(String[] args) {
// TODO code application logic here
System.out.println("Ciao a tutti");
new Test().setVisible(true);
}
}
Dove Test è il mio JDialog.
La riga dell'errore che mi da nelle schermate dos, è quella in cui apro
in jdialog. Infatto lui inizia ad eseguirlo, perchè mi scrive "ciao a
tutti"...
Non capisco...
chi mi aiuta ad eseguirlo al di fuori di netbeans ?
Ho scaricato anche dei .jar che si eseguono semplicemente con il doppio
click. Come si fa ?
Grazie
Roberto
--
-------
Roberto
|
|
| Back to top |
|
 |
Roberto Guest
|
Posted: Fri Sep 23, 2005 10:36 am Post subject: Re: [newbie] esecuzione jar |
|
|
Il 23/09/2005 9.03.08 , Roberto ha scritto :
credo di aver risolto.
Ho provato a fare la stessa cosa con netbeans 4.1 (mentre prima usavo
la beta 5) e tutto funziona perfettamente.
--
-------
Roberto
|
|
| Back to top |
|
 |
|
|
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
|
|