• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

configure eclipse

 
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm using gusty gibbon 7.10 on my PC.My JAVA_HOME is /home/icta/jdk1.6.0 and I'v set path in /etc/bash.bashrc correctly.I can compile and run a simple java program using text editor source file. After I installed eclipse 3.2 on my PC.
When I'm going to run eclipse it gives "A Java Runtime Environment (JRE) or Java Development Kit (JDK) must be available in order to run Eclipse. No Java virtual machine was found after searching the following locations: /usr/lib/j2sdk1.4-sun/bin/java".

Can anybody help me on this matter to set the path properly.

Thank You!!
 
Ranch Hand
Posts: 1683
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It is recommended that you explicitly specify which Java VM to use when running Eclipse. This is achieved with the -vm command line argument:

<path to eclipse install>/eclipse.exe -vm /home/icta/jdk1.6.0/bin/jre/javaw.exe
 
Marshal
Posts: 79180
377
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
. . . and don't ask the same question twice.
 
kasun chathuranga
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thank You for replies and sorry for the duplicating the same post.(actually it was an accident

I think your reply is on installing process, isn't it? But I have already installed eclipse. So is that mean that I can not set the path now? Is it essential to install eclipse again.

Thank You!
 
Roger Chung-Wee
Ranch Hand
Posts: 1683
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The -vm command line argument is for starting eclipse. Try it and let us know if it works.
 
kasun chathuranga
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It is not working. Message is "bash: /usr/lib/eclipse/eclipse.exe: No such file or directory".
One more thing. The "javaws.exe" is in "/home/icta/jdk1.6.0/jre/bin".
 
Saloon Keeper
Posts: 27764
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Add to .bashrc (if you're using bash):



Also, you're attempting to execute the Windows version of Eclipse. Did you install the correct distribution? The Linux executable isn't named "eclipse.exe", it's named "eclipse".
 
kasun chathuranga
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thank You Tim Holloway!!!
Now it is working.....
 
Tim Holloway
Saloon Keeper
Posts: 27764
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Sadly, this problem is going to get worse - the Mono system uses ".exe" and ".dll" files just like Windows. It used to be you could tell just by looking.
 
The harder I work, the luckier I get. -Sam Goldwyn So tiny. - this ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic