wood burning stoves 2.0*
The moose likes Beginning Java and the fly likes Problem working with  eclipse Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Problem working with  eclipse " Watch "Problem working with  eclipse " New topic
Author

Problem working with eclipse

prathimaprasun rao
Ranch Hand

Joined: Jun 29, 2006
Posts: 55
hello everyone,
i wanted to install eclipse in my system.
so i downloaded j2se from the below link.
https://sdlc2e.sun.com/ECom/EComActionServlet/DownloadPage:~:com.sun.sunit.sdlc.content.DownloadPageInfo;jsessionid=17B8527CE48E3D7AF48D4240E8CAD60A;jsessionid=17B8527CE48E3D7AF48D4240E8CAD60A
when i installed the j2se, in the command prompt, i typed the following to see the version.
c:\java -version
java -version"1.3.1_01"
then i installed eclipse.
when i try to open eclipse, it says
Version "1.3.1_01"of the JVM is not suitable for this product. Version 1.4.1 or greater is required."
SO what shall I do if i want to install eclipse in my system.
I have set all the path and home variables also.
Eagerly waiting for reply!
Prathima.
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 39478
    
  28
Go here, find where it says "JDK 6u1" and follow the links there to download Java 6 (most recent update = 01 at present).
On the page I quoted, you will find installation instructions. Make sure to set your PATH appropriately, preferably permanently. When you open Eclipse you can set it to use any particular version of Java.

BTW: You don't actually have to install Eclipse on Windows. You can simply save it in a folder. Open the folder and double-click the round blue "eclipse" icon. Since Eclipse is an executable "jar," it will run immediately. You can even copy a link from that icon onto your desktop.
[ April 29, 2007: Message edited by: Campbell Ritchie ]
prathimaprasun rao
Ranch Hand

Joined: Jun 29, 2006
Posts: 55
I made eclipse shortcut on the desktop.
when i tried to open eclipse , it displayed version 1.4.0_1 or more is needed.
prathimaprasun rao
Ranch Hand

Joined: Jun 29, 2006
Posts: 55
I have set the path in the following way:

Under User Variables


Variable name: Path
Variable Value:

%J2EE_HOME%\bin;%JAVA_HOME%\bin;C:\jdk1.5.0_06\bin

Under System Variables
Variable Name: JAVA_HOME
Variable Value: C:\jdk1.6.0_01

Please let me know if I have done any mistake while setting the path variables.
Waiting for reply!
Prathima
prathimaprasun rao
Ranch Hand

Joined: Jun 29, 2006
Posts: 55
hello sir,
i again installed " Java(TM) SE Development Kit 6 Update 1" from the Sun Downloads.
When I try to see the java version in the command prompt, it displayed
java version "1.3.1_01". But according to the eclipse documentation, it should display "java version "1.6.0_01"

Please guide me how to install eclipse in my system.
Mark Freeman
Ranch Hand

Joined: Aug 02, 2006
Posts: 40
What is your J2EE_HOME variable set to? I think that could actually be the source of your problem. Notice that you have 3 different settings to your javapath. Can you look at that and tell which one it is going to use? I doubt it; make sure you have one path setting for java if you want it to be consistent.

Originally posted by prathimaprasun rao:
I have set the path in the following way:

%J2EE_HOME%\bin;%JAVA_HOME%\bin;C:\jdk1.5.0_06\bin

Under System Variables
Variable Name: JAVA_HOME
Variable Value: C:\jdk1.6.0_01


mark
[ April 29, 2007: Message edited by: Mark Freeman ]
prathimaprasun rao
Ranch Hand

Joined: Jun 29, 2006
Posts: 55
hello sir,
J2EE_HOME variable is not set to anything.
Only JAVA_HOME is set to C:\jdk1.6.0_01.
So could you tell me what I should do now?
Regards,
Prathima
prathimaprasun rao
Ranch Hand

Joined: Jun 29, 2006
Posts: 55
hello sir,
for eclipse does the java version needs to be 1.4 or greater.
the j2se version is only 1.3 even though i downloaded j2se update 6
Waiting for reply!
Mark Freeman
Ranch Hand

Joined: Aug 02, 2006
Posts: 40
if your j2ee variable is not set to anything, remove it. If you are using windows, it may be worth rebooting if you haven't already.

Yes, eclipse needs to use the jre 1.4 or greater.
[ April 29, 2007: Message edited by: Mark Freeman ]
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 39478
    
  28
Mark Freeman is right; you ought to uninstall all old versions of Java. You probably don't need to restart Windows.

Go into eclipse->window->preferences->Java->Build Path->User Libraries, and see if you can't get it to recognise your JDK1.6 on that box.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Problem working with eclipse