- This topic has 3 replies, 2 voices, and was last updated 19 years, 9 months ago by Riyad Kalla.
-
AuthorPosts
-
357magMemberI 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.
Riyad KallaMemberMoving 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 SDKThey 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.
357magMemberWell 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.
Riyad KallaMember357,
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 -
AuthorPosts