GeeCON Prague 2014*
The moose likes Beginning Java and the fly likes Java SE 7u2 or Java SE 6 Update 30 fresh installation Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Java SE 7u2 or Java SE 6 Update 30 fresh installation " Watch "Java SE 7u2 or Java SE 6 Update 30 fresh installation " New topic
Author

Java SE 7u2 or Java SE 6 Update 30 fresh installation

josh Wilson
Greenhorn

Joined: Jan 30, 2012
Posts: 3

Hi

I'm about learn JAVA. I'm not sure which version to install, Java SE 7u2 or Java SE 6 Update 30, what are all that should be downloded as in

JDK(6/7 Docs) and JRE(6/7 Docs).

If JDK is downloded and installed, is that alone sufficient or JRE has to be done as well.

And how to set the classpath or path variables.

Is Java SE 7 the latest major release?

I use a Dell laptop with Windows Vista Home Premium.
I've just installed only the Java for your computer (Java 6 update 30).

Can anybody please help me out.

Josh Wilson
Mohamed Sanaulla
Saloon Keeper

Joined: Sep 08, 2007
Posts: 3071
    
  33

I would suggest you to read- How to create your first java program. This will solve most of your queries.


Mohamed Sanaulla | My Blog
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 39084
    
  23
Welcome to the Ranch

I would suggest 7u2. When you download it, make sure the letters “SE” (=standard edition) and “DK” (=development kit) appear in what you download. It should be slightly under 80MB. It is worth trying the 64-bit version because most computers in the last few years are 64 bit machines.
Don’t download the JRE; that is not sufficient for developing anything, and is included in the JDK. Make sure to set a PATH environment variable; you will find more details in the link Mohammed gave you.
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 39084
    
  23
If you have a reliable internet connection, you won’t need to download the documentation, but you should bookmark this.
josh Wilson
Greenhorn

Joined: Jan 30, 2012
Posts: 3

Thank you very much for helping me out.

I've installed Java SE 7 update 2.

The installation wizard asked to register the product for free, so I did it creating a new oracle.com account, even though I'm not allowed to complete set up profile, but the product is registered, it says.

After installing this I have a new message everytime I open a new IE9 browser or new tab in it saying "user account control" 'ssvagent.exe' 'Oracle America, Inc' asking for permission to continue.

I'm not sure if I have done something wrong, I clicked run to install the software when downloading, was I wrong doing so. Or is it to do with some MS update. Do I have to unistall and reinstall Java?

And with the path I created a user variable 'Path' and value "C:\Program Files\Java\jdk1.7.0_02\bin" with out semi colon at the end.

None of the checking commands 'java' 'javac' work and come with a stack of messages, and 'java version' comes with "could not find or load main class version". But Helloworld compiles and runs succesfully.

Is java for you computer(jre6) and jre7 included with java 7 conflicting.


Can any body please help me out.


Josh Wilson
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 39084
    
  23
Don’t know about ssvagent. That might be something to do with your registering your Java™ installation. Registration is not compulsory. It is more to do with Oracle being able to say, ”1234567890 people are writing programs in Java™“.

If you are getting that sort of error message, then you have installed something correctly. You can see the sort of error message you get if you don’t install it correctly here (first message shown).
It’s not, “java version”, but “java -version”.
If you can compile and execute a Hello World like this
javac HelloWorld.java
java HelloWorld

then you have got everything working that you need at present.
josh Wilson
Greenhorn

Joined: Jan 30, 2012
Posts: 3

Thank you very much
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 39084
    
  23
You’re welcome
 
GeeCON Prague 2014
 
subject: Java SE 7u2 or Java SE 6 Update 30 fresh installation