Working with Eclipse found a problem when trying to run my program from cygwin. Very awkward, I went to the bin directory of my project and try java getUrl (the name of my project).
There I received an error:
java.lang.NoClassDefFoundError: getUrl (wrong name: getUrl/getUrl)
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:791)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:449)
at java.net.URLClassLoader.access$100(URLClassLoader.java:71)
at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
at java.lang.ClassLoader.loadClass(ClassLoader.java:423)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:476)
Exception in thread "main"
After much research, although the solution was obvious, but I would not find it, I found that since my project was in a package, I should place the file getUrl.class in a directory called getUrl (package name) and run from the root directory as follows: java getUrl.getUrl or java getUrl/getUrl.
I hope it's useful for someone.

