• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Java versions

 
Joniela Geldenhuys
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 20545
56
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Joniela Geldenhuys
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you very much I will try that
 
vineet dhar
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 255
2
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 20545
56
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 49361
62
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 49361
62
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 49361
62
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
More details in our FAQ.
 
Shinil Mohan
Ranch Hand
Posts: 37
Hibernate Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic