aspose file tools*
The moose likes Beginning Java and the fly likes Java versions Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Java versions" Watch "Java versions" New topic
Author

Java versions

Joniela Geldenhuys
Greenhorn

Joined: Aug 24, 2011
Posts: 10
Hi

I want to know if anybody can help me. I'm doing an introduction course in Java. My parents bought me a Toshiba laptop with windows 7 ultimate.

The software I recieved with my study material is Java SDK 1.5 and Tomcat 5.5.7. They don't work on windows 7. So I want to download newer versions. Which versions must I download that will work on windows 7 ultimate?

When I've finished downloading must I set up any paths? I'm new in the Java programming thing only did VB.

PLEASE HELP
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19696
    
  20

Welcome to the Ranch!

You can use the latest JDK and Tomcat versions without problems, although I'd stick with JDK 6 update 26 because of a bug in Java 7. Just make sure that the Tomcat installer requires a 64-bit JRE (installed with the JDK) if you have a 64-bit Windows.

As for the paths, I suggest setting up two:
- JAVA_HOME, pointing to the root of the JDK folder.
- PATH, it should include %JAVA_HOME%\bin. Keep the existing PATH contents, just add this one to either the start or the end (use ; to separate paths).

Read this for instructions on setting any environment variable. Just ignore the CLASSPATH variable, you don't need it.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
Joniela Geldenhuys
Greenhorn

Joined: Aug 24, 2011
Posts: 10
Thank you very much I will try that
vineet dhar
Greenhorn

Joined: Aug 17, 2011
Posts: 23
Rob Spoor wrote:Welcome to the Ranch!

You can use the latest JDK and Tomcat versions without problems, although I'd stick with JDK 6 update 26 because of a bug in Java 7. Just make sure that the Tomcat installer requires a 64-bit JRE (installed with the JDK) if you have a 64-bit Windows.

As for the paths, I suggest setting up two:
- JAVA_HOME, pointing to the root of the JDK folder.
- PATH, it should include %JAVA_HOME%\bin. Keep the existing PATH contents, just add this one to either the start or the end (use ; to separate paths).

Read this for instructions on setting any environment variable. Just ignore the CLASSPATH variable, you don't need it.




Try adding JAVA_HOME to User Defined Variables and one more thing if you give C:\Program Files\Java\jdk1.7.0\bin\ path setting in System Variables then you can make a new folder anywhere in your hard disk and run the programs directly....no need to store your programs in the bin directry...happy java journey
Joniela Geldenhuys
Greenhorn

Joined: Aug 24, 2011
Posts: 10
ok so I downloaded JDK6 and Tomcat7. can you please explain how to set the paths exactly???

Sorry for being so stupid
Raymond Tong
Ranch Hand

Joined: Aug 15, 2010
Posts: 230
    
    2

Joniela Geldenhuys wrote:ok so I downloaded JDK6 and Tomcat7. can you please explain how to set the paths exactly???

Sorry for being so stupid


1) Run C:\Windows\System32\SystemPropertiesAdvanced.exe
2) Click Environment Variables
3) Select PATH
4) Click Edit
5) Append ";" following by your Java path at the end (e.g. ";C:\Program Files\Java\jdk1.7")

Details can be found
http://www.java.com/en/download/help/path.xml
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19696
    
  20

Raymond Tong wrote:1) Run C:\Windows\System32\SystemPropertiesAdvanced.exe

Or simply press Windows+Break, or right click on My Computer and select Properties. Then select Advanced or something similar (the caption depends on the Windows version). A lot easier than running that command.

Joniela, in a similar way you can create the JAVA_HOME variable, by pressing New instead of Edit.
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 38865
    
  23
Raymond Tong wrote: . . . Append ";" following by your Java path at the end (e.g. ";C:\Program Files\Java\jdk1.7") . . .l
Not at the end, no. There may be a Java™ installation in other folders; there is often a J1.4.2 JRE in the System or System32 folder, for example. The computer will find that Java™ installation first, and blithely use it, oblivious of the fact that you have been compiling on Java7. You will first know about this when you get an incompatible type error. You should put that additional PATH entry at the beginning of the PATH, and delete any other obvious Java™ entries (eg C:\Program Files\Java\jdk1.4.2_12\bin).

Also the PATH entry should begin with the drive letter (commonly C) and end with "bin". So explore in your Java™ installation folder until you find the "bin" folder, and put the complete PATH to that folder in the entry.
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 38865
    
  23
Don't delete anything which isn't an obvious Java™ folder, however. Otherwise you will find something important won't work, and will have to reinstall Windows®.
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 38865
    
  23
More details in our FAQ.
Shinil Mohan
Ranch Hand

Joined: Aug 24, 2011
Posts: 37


Tomcat setup help is available in the below URL

http://tomcat.apache.org/tomcat-5.5-doc/setup.html .. You may need to setup CATALINA_HOME and all based on the your software download.

Also since you are starting with java you can download an IDEA like Eclipse or Netbeans. In Eclipse you can go to the server tab and add tomcat server you have installed (other servers too).. This will help you move faster.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Java versions