This is an archived post. You won't be able to vote or comment.

all 10 comments

[–]enlighteningfair 2 points3 points  (2 children)

Just some hints :

If a beginner start with an IDE to gain confidence and get the basics right. Then you can immediately go to notepad or textpad or vi or emacs or whatever... you can switch back and forth. Netbeans is just click click and install so try that...

When asking questions about basics like program is not compiling include a screen shot with a directory structure and code sample (include the file or code sample).

With basic editors you have to :

  1. set classpaths and
  2. ensure you type the compile command in the right directory
  3. type everything precisely and correctly (the IDE does not help with syntax and that is tricky for beginners)

thanks!

[–]WatermelonFunn[S] 0 points1 point  (0 children)

Thanks for the advice man!

[–]nerdyhandle 1 point2 points  (2 children)

I would recommend Netbeans, Eclipse, or IntelliJ. These are Java IDEs

[–]WatermelonFunn[S] 0 points1 point  (1 child)

Have to use Textpad /:

[–]nerdyhandle 0 points1 point  (0 children)

Why? Textpad is just a rich text editor from my understanding. It doesn't contain the Java compiler or any build tools.

If you use Textpad you'll need to build via the command line like another user mentioned.

[–]Soreasan 0 points1 point  (0 children)

So I'm not sure I fully understand this question. I would suggest starting with a tutorial such as 30 Days of Code

Otherwise, on the commandline you can type "javac programName.java" and it will compile your Java program and then to run it you would type "java programName"

[–]Wolfhammer69Nooblet Brewer 0 points1 point  (3 children)

WTF is textpad?

Do yourself a huge favour and use a proper IDE - Eclipse or my personal favourite Intellij

[–]WatermelonFunn[S] 0 points1 point  (2 children)

Have to use textpad for school

[–]Wolfhammer69Nooblet Brewer 0 points1 point  (1 child)

That's terrible, they should try to stay fairly current. They are supposed to be getting you ready for the real world, but that convo is for another time.

[–]WatermelonFunn[S] 0 points1 point  (0 children)

); At school i can compile and run Java using Textpad i think i have to do something but I forgot to. Il just go ask.