AppletTalk.com Forum Index AppletTalk.com
Java discussions newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

[newbie] esecuzione jar

 
Post new topic   Reply to topic    AppletTalk.com Forum Index -> Java (Italian)
View previous topic :: View next topic  
Author Message
Roberto
Guest





PostPosted: Fri Sep 23, 2005 7:03 am    Post subject: [newbie] esecuzione jar Reply with quote



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





PostPosted: Fri Sep 23, 2005 10:36 am    Post subject: Re: [newbie] esecuzione jar Reply with quote



Il 23/09/2005 9.03.08 , Roberto ha scritto :
Quote:
(cut)

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
Display posts from previous:   
Post new topic   Reply to topic    AppletTalk.com Forum Index -> Java (Italian) All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.