Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 2 of 2

Thread: JAVA PROGRAMMING PROBLEM WITH NETBEANS

  1. #1
    Junior Member
    Join Date
    Oct 2019
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default JAVA PROGRAMMING PROBLEM WITH NETBEANS

    I have created a Package with several source files. All the files have the Main Class but when I try to run them an error message comes up with the list of the files and it says project does not have a main class set. How can I set up the packageproject>source codes correctly. I tried to attache a screenprint of the file but it was declined

  2. #2
    Member Helium c2's Avatar
    Join Date
    Nov 2023
    Location
    Kekaha, Kaua'i
    Posts
    102
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Re: JAVA PROGRAMMING PROBLEM WITH NETBEANS

    From start to end, just like Basic programming, name all the files in the package that will be used. At that point in time. Then which is the end class to use. The Main class is the class that controls all the class files within the package. Then the ending file. Main class then written with all its member classes with the package to function systematically as a package. Making up a unit of task to perform functions and needed data as the output. So write the Main class with those criteria in mind.
    Last edited by Helium c2; December 11th, 2023 at 12:57 AM. Reason: spelling

Similar Threads

  1. Replies: 1
    Last Post: March 29th, 2014, 10:37 AM
  2. Java Programming Problem Help pls!
    By svensonhsv in forum What's Wrong With My Code?
    Replies: 2
    Last Post: November 14th, 2013, 06:22 PM
  3. how do i solve this programming problem in dr java?
    By jennavg in forum What's Wrong With My Code?
    Replies: 4
    Last Post: April 8th, 2013, 12:22 PM
  4. Problem with java swing JButton in Netbeans IDE
    By vrp in forum What's Wrong With My Code?
    Replies: 2
    Last Post: January 12th, 2011, 11:38 PM