Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Running Java program without qualifying with package name

13 views
Skip to first unread message

nimmi_s...@post.com

unread,
Feb 15, 2017, 6:05:23 PM2/15/17
to
Hello,

I am cros-posting with Stack Overflow (http://stackoverflow.com/questions/42261552/running-java-program-without-qualifying-with-package-name).

I want to know whether there is a way to run a Java class, which is defined in a package, without giving the package name prefix (by, say, setting the classpath to the appropriate value)? The only way that I am able to run the class is by prefixing the complete package name to the classname.

There are some good suggestions at StackOverflow. Hopefully there will be some ideas provided here as well.

Regards,
NS
0 new messages