aspose file tools*
The moose likes Beginning Java and the fly likes Need help setting up Java Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Need help setting up Java" Watch "Need help setting up Java" New topic
Author

Need help setting up Java

Joe Mathieu
Greenhorn

Joined: May 13, 2012
Posts: 5
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.
Tomek Kaczanowski
author
Ranch Hand

Joined: Oct 26, 2005
Posts: 40

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).

Tomek Kaczanowski
Book author: Practical Unit Testing with TestNG and Mockito
http://practicalunittesting.com
Joe Mathieu
Greenhorn

Joined: May 13, 2012
Posts: 5
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.
Mike Simmons
Ranch Hand

Joined: Mar 05, 2008
Posts: 3018
    
  10
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

Joined: May 13, 2012
Posts: 5
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
Ranch Hand

Joined: Mar 05, 2008
Posts: 3018
    
  10
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.
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 39409
    
  28
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 agree. Here's the link: http://aspose.com/file-tools
 
subject: Need help setting up Java