elhacker.net cabecera Bienvenido(a), Visitante. Por favor Ingresar o Registrarse
¿Perdiste tu email de activación?.

 

 


Tema destacado: (TUTORIAL) Aprende a emular Sentinel Dongle By Yapis


  Mostrar Mensajes
Páginas: [1]
1  Programación / Java / Re: AYUDA! Error al ejecutar un java en: 29 Noviembre 2014, 00:22 am
Hola necesito de vuestra ayuda.
el ejecutar un programa de java 8u25 y netbeans 8.0.1

me muestra el siguiente mensaje:
run:
Java Result: -1073740771
BUILD SUCCESSFUL (total time: 15 seconds)

este es el codigo:
/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package jbienvenida_1;
import javax.swing.ImageIcon;
import javax.swing.JFrame;
import javax.swing.JOptionPane;


public class JavaAppBienvenida_1 {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        // TODO code application logic here
        //System.out.println("Hola a Todos");
        String bienvenido = "hola a todos en java";
        //System.out.println(bienvenido);
        JFrame frame = new JFrame("JOptionPane showMessageDialog example");
        JOptionPane.showMessageDialog(frame,"gggg" + bienvenido,"hhhhh", JOptionPane.INFORMATION_MESSAGE);
        System.exit(0);
    }
   
}

si embargo, si ejecuto un programa que no necesita mostrar ventanas (pop up o form), todo va perfecto.
agradezco vuestra ayuda.
Páginas: [1]
WAP2 - Aviso Legal - Powered by SMF 1.1.21 | SMF © 2006-2008, Simple Machines