09-04-2012 12:46 AM - edited 09-04-2012 12:47 AM
I created a new java project in eclipse it appears src folder by default,
I created a "One.java" class in src without creating any package so it itself created in (default package)
Now I created "Two.java" class in "com.test" package.
Now my question is I want to access the method of class "One.java" in "Two.java".
After searching I have done it through Reflection (in run time) .
I need for some other solution/ approach other than reflection mechanism.
Thanks in Advance
Anil Kumar R
09-04-2012 02:18 AM
09-04-2012 05:50 AM - edited 09-04-2012 05:52 AM
The classes and package structure is like that only its made (all classes bundled as jar file),
I have to get and use the class(s) from default package to other package.
In this scenario how can I achieve.
09-04-2012 05:59 AM
09-04-2012 06:21 AM