estou com o mesmo problema…
no meu caso, pelo netbeans executa tranquilamente, porem no prompt da o erro:
Uncaught error fetching image:
java.lang.NullPointerException
at sun.awt.image.URLImageSource.getConnection<Unknown Source>
at sun.awt.image.URLImageSource.getDecoder<Unknown Source>
at sun.awt.image.InputStreamImageSource.doFetch<Unknown Source>
at sun.awt.image.ImageFetcher.fetchloop<Unknown Source>
at sun.awt.image.ImageFetcher.run<Unknown Source>
no erro nao me diz a linha, ai fui atras manualmente e achei
public static void main(String args[]) {
/*
* Set the Nimbus look and feel
*/
//<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
/*
* If Nimbus (introduced in Java SE 6) is not available, stay with the
* default look and feel. For details see
* http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html
*/
try {
for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
if ("Nimbus".equals(info.getName())) {
javax.swing.UIManager.setLookAndFeel(info.getClassName());
break;
}
}
} catch (ClassNotFoundException ex) {
java.util.logging.Logger.getLogger(janelaPrincipal.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
} catch (InstantiationException ex) {
java.util.logging.Logger.getLogger(janelaPrincipal.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
} catch (IllegalAccessException ex) {
java.util.logging.Logger.getLogger(janelaPrincipal.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
} catch (javax.swing.UnsupportedLookAndFeelException ex) {
java.util.logging.Logger.getLogger(janelaPrincipal.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
}
//</editor-fold>
/*
* Create and display the form
*/
java.awt.EventQueue.invokeLater(new Runnable() {
public void run() {
internalFrameJanelaPrincipal = new janelaPrincipal();
System.out.println("111");
internalFrameJanelaPrincipal.setVisible(true);
System.out.println("222");
}
});
}
o problema esta no .setvisible nessa linha que ocorre o erro…
percebi tb que quando crio o .jar ele me traz a o seguinte
Compiling 125 source files to C:\Users\CeSaR\Desktop\ADMClin\ADMclin\build\classes
warning: [options] bootstrap class path not set in conjunction with -source 1.6
Note: C:\Users\CeSaR\Desktop\ADMClin\ADMclin\src\janelaPrincipal\jIFLogin.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
1 warning
Copying 84 files to C:\Users\CeSaR\Desktop\ADMClin\ADMclin\build\classes
acreidot que isso tenha a ver com o erro…
vou tentar esse tutorial que corrigiu o seu problema, dps posto se funcionou ou nao…