Win a copy of Reactive Streams in Java: Concurrency with RxJava, Reactor, and Akka Streams this week in the Reactive Progamming forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Ganesh Patekar

Need help setting up Java

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello, I was wondering if anyone could help me set up Java. I recently enrolled in a Java programming class with my college and I need help setting up my systems PATH variable. I have little experience programming with C and will probably need a lot of future help with Java, haha. I've downloaded J2SDK and Eclipse-SDK-3.7.2. I started to read the first chapter for my class and it told me I had to add an entry to my PATH environment variable... How would I go about doing this? Thanks to anyone that helps.
 
author
Posts: 40
IntelliJ IDE Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Joe,

you will find a detailed installation instructions (including PATH thing) on Oracle's site (start with http://www.oracle.com/technetwork/java/javase/downloads/index.html) . Make sure you read the right tutorial (depending on Java version and your OS).
 
Joe Mathieu
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is there any documentation for Java 5? I'm only seeing it for Java 6 and 7. Maybe I'm looking in the wrong area.
 
Rancher
Posts: 3371
31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, there's a link towards the top, on the right, labeled "previous releases".

But in practice, it would be much easier to just use Java 6. Or 7. Even if your instructor said to use 5, that probably just means the instructor hasn't updated their materials yet.
 
Joe Mathieu
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Mike Simmons wrote:Yes, there's a link towards the top, on the right, labeled "previous releases".

But in practice, it would be much easier to just use Java 6. Or 7. Even if your instructor said to use 5, that probably just means the instructor hasn't updated their materials yet.



Thanks for the help everyone. After getting my PATH variable set up (correctly I believe) I just now read this by Mike, lol. So with saying that you think I should just download Java 6 or 7? I figured her syllabus was more than likely out dated. Would it have any effect on the book we're using to learn Java? "Head First Java 2nd Ed." And also, I would obviously need to reset my PATH variable to the new Java 6 or 7 bin directory I'm assuming, so would I need to uninstall the JDK SE 5?
 
Mike Simmons
Rancher
Posts: 3371
31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Personally I would just download Java 7, but if someone like your instructor thinks 6 is better for their class, that's fine too. It really shouldn't matter much. And Head First Java 2nd ed should be just fine with either one. All the stuff they're going to talk about still works just fine - the newer editions just add more stuff, most of it irrelevant to new programmers. You can use a newer version with a slightly older book or course, and everything should work just fine.

As for resetting the PATH and/or uninstalling the old JDK: well, it's possible that a newer install will just handle that stuff for you. (Mine did, but I'm on a Mac; don't know if it will work the same for you.) I would probably uninstall the old one just to be safe, then install 6 or 7, then try to run java or javac from the command line. If it doesn't work, then I would go to fix the PATH with the new location. If it does work - well, try running "java -version" just to make sure it really is running the version you think it is. Sometimes there's another one installed somewhere you don't know about, so it's good to double-check.
 
Marshal
Posts: 65799
250
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Joe Mathieu wrote:Is there any documentation for Java 5? . . .

The setting up process is exactly the same for Java5, Java6 and Java7 unless you use the non-rpm installer on Linux.
 
I am not young enough to know everything. - Oscar Wilde This tiny ad thinks it knows more than Oscar:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!