Eclipse does a lot of voodoo behind the scenes to make sure everything is plugged together in a really big an robust way. Good for your development environment, but way overkill for production.
Java only knows to look in very specific places for bytecode to load into it's runtime.
If you want runtime flexibility to load classes within your gui from anywhere, it sounds like you will want to look into either extending the classloader so you can add to your classpath at runtime. Or do a more hacky solution and use reflection to bypass the scope of the standard classloader.
Here is an example of a custom classloader that can load jar files and search for class bytecode inside: http://kalanir.blogspot.com/2010/01/how-to-write-custom-class-loader-to.html
This question might be useful to go through as well as a couple of the answers are informative: http://stackoverflow.com/questions/7884393/can-a-directory-be-added-to-the-class-path-at-runtimehttps://stackoverflow.com/questions/7884393/can-a-directory-be-added-to-the-class-path-at-runtime
Another totally different option, if you don't want or need the ability to dynamically alter your classpath at runtime, would be to preemptively either add the folder your testng tests are in to your CLASSPATH environment variable, or move them to a folder that is already defined in your CLASSPATH.
Remember though, if those tests have any 3rd party dependencies, no matter what solution you choose. Make sure those get added too otherwise you'll just run into the same problem the moment your test tries to invoke it.