You are not logged in.

Dear visitor, welcome to KDE-Forum.org. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

1

Tuesday, April 19th 2005, 1:52pm

Running Eclipse in KDE

I can't run Eclipse in KDE I get the following error:
"
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:
/opt/eclipse/jre/bin/java
'java' in your current PATH"

I set PATH variable in my .bashrc file so I can run Eclipse in the shall...but I would like to also be able to run it by clicking on the icon but I don't know in which file I should set PATH variable

Regards

jacek

Trainee

Posts: 105

Location: Warsaw, Poland

Occupation: Student

  • Send private message

2

Tuesday, April 19th 2005, 2:14pm

RE: Running Eclipse in KDE

Solution 1: Try adding it to .bash_profile.
Solution 2: Try adding it to /etc/profile or somewhere in the /etc/profile.d/.
Solution 3: Write a simple shell script that sets all the required paths and executes Eclipse.

anda_skoa

Professional

Posts: 1,273

Location: Graz, Austria

Occupation: Software Developer

  • Send private message

3

Tuesday, April 19th 2005, 2:43pm

It has to be in the environment which is avlaid when startkde runs.

On KDE3.3 and higher you can easily extend that enirovnment by placing .sh files into
.kde/env/
(or equivalent global directory)

They are then sourced by startkde

Cheers,
_
Qt/KDE Developer
Debian User

4

Thursday, September 21st 2006, 7:22pm

I cannot find the env sub-directory in my home directory.

Is there a graphical way to make KDE aware of Java Virtual Machine? I seek a
solution for JAVA applications in general not only eclipse.

5

Wednesday, January 10th 2007, 8:33am

run this in your konsole:

1. which java
2. java -version

paste the output here
Regards, J.