I am developing a java application and to run this i am using some command line arguments.
These command line arguments are basically a class name and function,and this particular class is in different project.
Is there any way to add this class in classpath of my java project apart from creating its jar and add it in build path.
P.S My IDE is Eclipse.
You can link up two projects at build time.
Right click on your project, Java Build Path, Projects tab and add the project you want to be added to the classpath.
If you want to add command line arguments while running a program from Eclipse, go to Run menu, Run Configurations, select your last run configuration, go to Arguments tab and type in the argument(s) you want and save it.