1. Home >
  2. Apps >
  3. Groups >

Execution of java program with arguments in Netbeans IDE

Question asked by Nithya.P in #Java on May 30, 2013
Nithya.P
Nithya.P · May 30, 2013
Member of CrazyEngineers
Hi,
In Netbeans IDE, I have to run multiple java files with arguments in each and all the files should be in a single project. Can any one please help me with my problem. Posted in: #Java
Vishal Sharma
Vishal Sharma · May 30, 2013
Member of CrazyEngineers
Use any one file as your main program (which consist of your main())
and keep the remaining programs with class definitions.
you can access those classes using your main program.

suppose your main program is abc.java and supporting program is def.java with class name def and a function func()

then from your main program you can use this function by doing this

def.func()

You must log-in or sign-up to reply to this post.

Click to Log-In or Sign-Up