CrazyEngineers
  • Execution of java program with arguments in Netbeans IDE

    Nithya.P

    Member

    Updated: Oct 27, 2024
    Views: 1.1K
    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.
    0
    Replies
Howdy guest!
Dear guest, you must be logged-in to participate on CrazyEngineers. We would love to have you as a member of our community. Consider creating an account or login.
Replies
  • Vishal Sharma

    MemberMay 30, 2013

    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()
    Are you sure? This action cannot be undone.
    Cancel
Home Channels Search Login Register