• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

Problem working with eclipse

 
Ranch Hand
Posts: 55
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Marshal
Posts: 79943
396
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 55
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 55
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 55
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 55
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 55
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 40
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Marshal
Posts: 79943
396
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Screaming fools! It's nothing more than a tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic