Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

I have several Java classes with their own main method. How do I tell the Visual Studio .NET IDE which one to use?

0
Posted

I have several Java classes with their own main method. How do I tell the Visual Studio .NET IDE which one to use?

0

Right click on the project file in the Solution Explorer and select Properties at the bottom of the menu. From the dialogue box select the class you want as the Startup Object from the list of classes. Only classes with a main method will be displayed on the list.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123