facebook

Can I create Java programs with this?

  1. MyEclipse IDE
  2.  > 
  3. Off Topic
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #227147 Reply

    357mag
    Member

    I have had lots of problems getting a compiler to work. First I tried Borland’s JBuilder Foundation. Too complicated. Then I downloaded from Sun their j2sdk1.4.2. Create a simple Hello World program. Saved it to a folder. Opened up a command window. Gave the compile command. Nope. Does not work. Error messages. Tried lots of different things. Still don’t work. Was going to download Eclipse but can’t even access the newsgroups for some reason. Now on to MyEclipse. Can I create simple Java console programs with this? Can I compile and run my programs from within MyEclipse? Or is it just a text editor? I would prefer to use a tool that I can not only create my source code with, but also will allow me to compile and run the program.

    #227152 Reply

    Riyad Kalla
    Member

    Moving to OT > Soft Dev.

    357mag, I think you need a good getting started book to understand why your app running from console didn’t work first, then I would suggest you grab:
    1) NetBeans
    OR
    2) Eclipse SDK

    They are both free Java IDEs. MyEclipse is an addon to Eclipse (#2) that adds a lot of J2EE development tools, definately not something you need at this point in time.

    #227161 Reply

    357mag
    Member

    Well I did download NetBeans 4.0 and started a new project and typed my HelloWorld code into the code window, but when I hit the Run button I get “Project Hello does not have a main class set. No main classes found.” And I was looking on the NetBeans web site for some help forums but I found none, so where do I post questions for help with NetBeans?

    If you can help me get started with NetBeans that would be appreciated. Really all I need to be able to do is start a new project, open a code window with nothing in it, and type my code from my book and hit the Run button and run my program.

    #227167 Reply

    Riyad Kalla
    Member

    357,
    You *desperately* need a Introduction to Java book, the problem with your class is that you need a main method:

    
    public static void main(String[] args)
    {
    // your code here
    }
    

    These questions are not “NetBeans” questions, they are “Beginner Java” questions, I suggest you register and post here:
    http://forums.java.sun.com/forum.jspa?forumID=31

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: Can I create Java programs with this?

You must be logged in to post in the forum log in