Dobrý den,
asi před půl hodinou jsem začal s Javou, a napsal jsem si tento "program":
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package hello.world.app;
/**
* The HelloWorldApp class implements an application that
* simply prints "Hello World!" to standard output.
*/
public class HelloWorldApp {
/**
* @param args the command line arguments
*/
public static void main(String[] args) {
System.out.println("Hello World!"); // Display the string.
}
}
Kompilace proběhne v pořádku, ale když chci spustit program, tak to vypíše jen:
run:
java.lang.NoClassDefFoundError: idn/IDN
Caused by: java.lang.ClassNotFoundException: idn.IDN
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
Could not find the main class: idn.IDN. Program will exit.
Exception in thread "main" Java Result: 1
BUILD SUCCESSFUL (total time: 0 seconds)
Ale nevypíše to "Hello world!". Nevíte v čem je problém? (Používám NetBeans IDE 7.2)