Results 1 to 10 of 10
  1. #1
    Herbert is offline Member
    Join Date
    Jan 2015
    Posts
    5
    Rep Power
    0

    Default Need help to set up Java

    I am a complete newbie when it comes to Java programming but I intend to learn at least the basics of the language.
    After studying many tutorials I am confused as how to set Java up.

    So far I installed a Java Development Kit ( JDK ) but it seems that in order to write Java code I need more.Eclipse was
    mentionned,however when I try to jnstall it my Antivirus blocks it as unsafe and rejects the eclipse install.

    Questions:

    1) What is the purpose of Eclipse,the way I understand it allows to write codes.
    2) Can I use anything else ?
    3) Could anybody send an installed and working Eclipse by e-mail to : [email removed to protect the poster against spammers or worse ...]
    4) What else is needed ?

    Your help is appreciated

    Herbert
    Last edited by JosAH; 01-22-2015 at 04:42 PM.

  2. #2
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    13,541
    Rep Power
    27

    Default Re: Need help to set up Java

    Here's the link to the first (non-IDE) bit of the Oracle tutorial.
    You don't need an IDE. At least for the first few days learning you probably shouldn't use one, as knowing how compilation works and classpaths is very useful knowledge later on when trying to figure out problems.
    Please do not ask for code as refusal often offends.

    ** This space for rent **

  3. #3
    KevinWorkman's Avatar
    KevinWorkman is offline Crazy Cat Lady
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    4,143
    Rep Power
    16

    Default Re: Need help to set up Java

    You don't need an IDE (which is what eclipse is) to write code.

    You can write code using a basic text editor like notepad. Or they make text editors for programmers, such as JEdit. Then you compile your code using the command-line tools that come with the JDK.

    Here is a tutorial on compiling and running Java code via the command line: Java Setup - Static Void Games

    The purpose of IDEs like eclipse is to handle stuff like compiling and setting up the classpath, as well as features like auto-complete. But if you're just starting out, I highly recommend using a basic text editor and the command line, at least until you understand the basics.

    Eclipse does not need to be installed. It just unzips as a directory. It's weird that your anti-virus is flagging it. Where did you download it from?
    How to Ask Questions the Smart Way
    Static Void Games - GameDev tutorials, free Java and JavaScript hosting!
    Static Void Games forum - Come say hello!

  4. #4
    gimbal2 is offline Just a guy
    Join Date
    Jun 2013
    Location
    Netherlands
    Posts
    5,114
    Rep Power
    13

    Default Re: Need help to set up Java

    1) Good question! to help experienced programmers manage large software projects. As such, it is not designed for you yet
    2) Most certainly; including nothing else (see 1) )
    3) no. And that is a doubly serious no; not only can you not ask such a thing of strangers, but email servers tend to have size restrictions on attachments
    4) a brain willing to learn

    Now what I say in 1) is really true, but there are other arguments. An IDE such as Eclipse has a wonderful feature that is actually very helpful when you want to learn the language; it gives you instant feedback on code you typed in. You don't have to do any compile actions to know of any mistakes you made, you instantly see it happening on-screen.

    I wrote this article to help people get up and running to learn the Java language with Eclipse, without having to dive into the inner details just yet. Just to get you to a point where you can start typing in code and learning:

    I want to learn Java: 01p. Install Eclipse and learn the language
    "Syntactic sugar causes cancer of the semicolon." -- Alan Perlis

  5. #5
    KevinWorkman's Avatar
    KevinWorkman is offline Crazy Cat Lady
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    4,143
    Rep Power
    16

    Default Re: Need help to set up Java

    Quote Originally Posted by gimbal2 View Post
    Now what I say in 1) is really true, but there are other arguments. An IDE such as Eclipse has a wonderful feature that is actually very helpful when you want to learn the language; it gives you instant feedback on code you typed in. You don't have to do any compile actions to know of any mistakes you made, you instantly see it happening on-screen.
    This is a subjective thing and everybody has different opinions, but I'll offer mine: I think the feature you're describing is actually one more reason that novices should **not** use an IDE. How many times have we seen posts that say "Java is underlining my code in red and I don't know why"?

    Using a command line forces you to actually read the compiler errors and stack traces. It gets you into the habit of compiling early and often. These are skills that people who rely on IDEs from the outset lack. And don't get me started on over-reliance on autocomplete!
    How to Ask Questions the Smart Way
    Static Void Games - GameDev tutorials, free Java and JavaScript hosting!
    Static Void Games forum - Come say hello!

  6. #6
    gimbal2 is offline Just a guy
    Join Date
    Jun 2013
    Location
    Netherlands
    Posts
    5,114
    Rep Power
    13

    Default Re: Need help to set up Java

    People who ask that question I don't see have much of a future in programming to be honest. You can't cater to the people who really don't want to make any effort.
    "Syntactic sugar causes cancer of the semicolon." -- Alan Perlis

  7. #7
    Herbert is offline Member
    Join Date
    Jan 2015
    Posts
    5
    Rep Power
    0

    Default Re: Need help to set up Java

    To your information : I am not looking for a future in Java programming.It is a hobby.
    Secondly,before make your dumb remark regarding effort,how do you know I did not make any ???

    Herbert

  8. #8
    jim829 is offline Senior Member
    Join Date
    Jan 2013
    Location
    Northern Virginia, United States
    Posts
    6,226
    Rep Power
    14

    Default Re: Need help to set up Java

    Quote Originally Posted by Herbert View Post
    Secondly,before make your dumb remark regarding effort,how do you know I did not make any ???
    You clearly did not read the posts correctly. Gimbal was responding to Kevin's general comment. It had nothing to do with you.

    Regards,
    Jim
    The JavaTM Tutorials | SSCCE | Java Naming Conventions
    Poor planning on your part does not constitute an emergency on my part

  9. #9
    Herbert is offline Member
    Join Date
    Jan 2015
    Posts
    5
    Rep Power
    0

    Default Re: Need help to set up Java

    In this case I owe Gimbal an apology.

    Herbert

  10. #10
    gimbal2 is offline Just a guy
    Join Date
    Jun 2013
    Location
    Netherlands
    Posts
    5,114
    Rep Power
    13

    Default Re: Need help to set up Java

    I'll accept if you promise to not assume the worst in the future.
    "Syntactic sugar causes cancer of the semicolon." -- Alan Perlis

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •