Learn How to Assign Arguments in NetBeans: A Java Tutorial - Da Jeans

  • Context: Java 
  • Thread starter Thread starter Math Jeans
  • Start date Start date
Click For Summary
SUMMARY

This discussion focuses on assigning arguments to the args[] parameter in Java using the NetBeans IDE. User Da Jeans, new to NetBeans, sought assistance for a Java assignment requiring argument assignment. Another user confirmed that arguments can be set in the project properties under the run configuration, specifically by assigning a main class along with the desired arguments. This method successfully resolved the issue for Da Jeans.

PREREQUISITES
  • Familiarity with Java programming concepts
  • Basic understanding of the NetBeans IDE interface
  • Knowledge of project properties and run configurations in NetBeans
  • Experience with command-line arguments in Java applications
NEXT STEPS
  • Explore how to configure project properties in NetBeans
  • Learn about Java command-line arguments and their usage
  • Investigate debugging techniques in NetBeans for Java applications
  • Study best practices for managing Java project configurations
USEFUL FOR

Java developers, students learning Java programming, and anyone using NetBeans for their development projects will benefit from this discussion.

Math Jeans
Messages
347
Reaction score
0
Hi. I am using NetBeans as my new Java compiler.

I have been searching throughout the program, and I have not figured out how to assign arguments to args[] through this compiler.

I'm working on a Java assignment, and it required the use of this.

Any help would be appreciated.


---Da Jeans
 
Technology news on Phys.org
I'm new to NetBeans too, and I haven't tried any programs which need arguments, so I'm not sure whether this is what you want, but I've noticed that in the project properties/run page you can assign a main class together with arguments.
 
Ok. It worked perfectly. Thanks for the help.
 

Similar threads

Replies
8
Views
3K
  • · Replies 3 ·
Replies
3
Views
7K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 9 ·
Replies
9
Views
3K
Replies
11
Views
3K
  • · Replies 8 ·
Replies
8
Views
4K
  • · Replies 3 ·
Replies
3
Views
4K
  • · Replies 15 ·
Replies
15
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 9 ·
Replies
9
Views
3K