This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes Java SDK help Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Java SDK help" Watch "Java SDK help" New topic
Author

Java SDK help

Logan Knecht
Greenhorn

Joined: Jun 05, 2008
Posts: 16
Pretty much my brother said hey let's learn Java and gave me a link to this site, as well as exercises, and then I bought the Headfirst into Java book as well. I've worked with a bit of C# and some scripting so I'm excited to learn, but I have no idea how to get the SDK set up going. I know that there is the 1.6 version out, but I don't know what I need to install so I can compile from the command prompt, and run files as well.

I'm also not sure about path files for bin folders. I'm not sure if it should be Path, or CLASSPATH, or what.

I would really appreciate any input or help on how to get started with this. I would really also appreciate if you didn't give me a link and say do x, to get such and such, because sometimes links like that are vague, like sun.java.com. If you do put a link could you please elaborate or tell me specifically what to do.

Thanks a lot in advance I really appreciate any help.
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 38057
    
  22
Welcome to JavaRanch, Logan

No links? But the links I shall give are very detailed and give step-by-step instructions.

You virtually never need to alter your classpath.
You virtually always have to alter your PATH, otherwise you get error messages like "java is not recognised as a program or file."

Download Java here. Make sure to use what is called JDK 6 update 6.
The installation instructions are on this page. When you install Java, write down the name of the folder you are installing it into.

You will find this link in the Java Tutorial called "Common Problems." In it, you get a link to instructions on setting the PATH. You will almost certainly want to set it permanently.

Remember:
  • Your PATH starts with the drive letter (eg C:\) on Windows and / on Linux.
  • Your PATH ends with bin.
  • If your PATH doesn't work on Windows, try closing the command prompt window and opening a new one.
  • You can set your PATH for the lifetime of a shell on Linux by writing something like export PATH=/usr/java/jdk1.6.0_06/bin/:$PATH
  • Setting the PATH permanently on Linux means editing a text file, sometimes .bashrc. Go onto a Linux forum for more details about that.
  • You can set the PATH for the lifetime of a command prompt window on Windows, but I can't remember how ot do it.
  • Good luck with it Any problems, don't hesitate to ask again.
     
    I agree. Here's the link: http://aspose.com/file-tools
     
    subject: Java SDK help
     
    Similar Threads
    Java for Win 98/ME
    Head First Java. What I need and downloads.
    Very new to web services and trying to start
    Security Policies
    Need career guidance...