jotajornaleiro
(usa Ubuntu)
Enviado em 03/03/2013 - 20:04h
quando tento executar o prgrama recebo esta mensagem:
jota@jota-G31T-M7:~/NetBeansProjects/Welcome1/src$ java welcome1
Exception in thread "main" java.lang.NoClassDefFoundError: welcome1
Caused by: java.lang.ClassNotFoundException: welcome1
at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
Could not find the main class: welcome1. Program will exit.
jota@jota-G31T-M7:~/NetBeansProjects/Welcome1/src$ java welcome1.java
Exception in thread "main" java.lang.NoClassDefFoundError: welcome1/java
Caused by: java.lang.ClassNotFoundException: welcome1.java
at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
Could not find the main class: welcome1.java. Program will exit.
jota@jota-G31T-M7:~$ cd /home/jota/NetBeansProjects/Welcome1/src
jota@jota-G31T-M7:~/NetBeansProjects/Welcome1/src$ java welcome1
Exception in thread "main" java.lang.NoClassDefFoundError: welcome1
Caused by: java.lang.ClassNotFoundException: welcome1
at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
Could not find the main class: welcome1. Program will exit.
jota@jota-G31T-M7:~/NetBeansProjects/Welcome1/src$
este é o codigo do programa!
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package welcome1 ;
/**
*
* @author jota
*/
public class Welcome1
{
/**
* @param args the command line arguments
*/
public static void main(String[]args)
{
// TODO code application logic here
System.out.println("Welcome to Java Programing");
}
}