Home » Language IDEs » Java Development Tools (JDT) » Installing Eclipse
Installing Eclipse [message #103439] |
Sun, 12 October 2003 15:13  |
Eclipse User |
|
|
|
Originally posted by: jgold03.swbell.net
I am a newbie who is having trouble getting Eclipse to run. I am using
Red Hat 9.0. I downloaded the most recent Java SDK and JRE rpms, and ran
them. I then downloaded eclipse, and extracted the folder into my home
directory. I then ran eclipse, and I got 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:
/root/eclipse/jre/bin/java
'java' in your current PATH
However, when I run this command:
# echo $PATH
/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin :/usr/X11R6/bin:/root/bin:/usr/java/j2sdk1.5.1_05/bin:/usr/j ava/j2re1.4.2_01/bin
Any ideas?
|
|
| | | | | |
Re: Installing Eclipse [message #103524 is a reply to message #103491] |
Sun, 12 October 2003 18:13   |
Eclipse User |
|
|
|
Originally posted by: jgold03.swbell.net
Jason Goldberg wrote:
> Jens Andersen wrote:
> > Jason Goldberg wrote:
> > > Jens Andersen wrote:
> > >
> > >
> > >>Jason Goldberg wrote:
> > >>
> > >>>I am a newbie who is having trouble getting Eclipse to run. I am using
> > >>>Red Hat 9.0. I downloaded the most recent Java SDK and JRE rpms, and
ran
> > >>>them. I then downloaded eclipse, and extracted the folder into my home
> > >>>directory. I then ran eclipse, and I got 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:
> > >>>/root/eclipse/jre/bin/java
> > >>>'java' in your current PATH
> > >>>
> > >>>However, when I run this command:
> > >>>
> > >>># echo $PATH
> > >>>
> > >>>
> > >
> > >
>
/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin :/usr/X11R6/bin:/root/bin:/usr/java/j2sdk1.5.1_05/bin:/usr/j ava/j2re1.4.2_01/bin
> > >
> > >>>Any ideas?
> > >>>
> > >>
> > >>Try to setup the JAVA_HOME variable in your .bashrc like:
> > >
> > >
> > >>export JAVA_HOME=/usr/java/j2sdk1.5.1_05
> > >>export PATH=$JAVA_HOME/bin:$PATH
> > >
> > >
> > >>/jens
> > >
> > >
> > >>P.S. Try to look at the other redhat/Eclipse thread in the SWT newsgroup
> > >
> > >
> > > Another question, since you know what you are talking about. When I set
> > > my $PATH variable and then restarted, the $PATH variable was reset. How
> > > to I make it permanent?
> > >
> > >
> > You should open the .bashrc file in your home folder and add:
> > export JAVA_HOME=/usr/java/j2sdk1.5.1_05
> > export PATH=$JAVA_HOME/bin:$PATH
> > then save the .bashrc file. Then you type the following in your terminal.
> > .. .bashrc
> > next time you login or open a terminal the JAVA_HOME and PATH should be
> > set permanent.
> > Regards,
> > Jens ;-)
> ok I added the stuff to my .bashrc file, but when i go to the terminal and
> type in:
> #.. .bashrc
> - or -
> # .bashrc
> It says command not found.
Also, even when I set my temp env variables to work for java, i still
can't run eclipse... I get the same error.
|
|
|
Re: Installing Eclipse [message #103536 is a reply to message #103524] |
Sun, 12 October 2003 18:16   |
Eclipse User |
|
|
|
Originally posted by: ja.it-practice.dk-nospam
Jason Goldberg wrote:
> Jason Goldberg wrote:
>
>
>>Jens Andersen wrote:
>
>
>>>Jason Goldberg wrote:
>
>
>>>>Jens Andersen wrote:
>>>>
>>>>
>>>>
>>>>>Jason Goldberg wrote:
>>>>>
>>>>>
>>>>>>I am a newbie who is having trouble getting Eclipse to run. I am using
>>>>>>Red Hat 9.0. I downloaded the most recent Java SDK and JRE rpms, and
>
> ran
>
>>>>>>them. I then downloaded eclipse, and extracted the folder into my home
>>>>>>directory. I then ran eclipse, and I got 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:
>>>>>>/root/eclipse/jre/bin/java
>>>>>>'java' in your current PATH
>>>>>>
>>>>>>However, when I run this command:
>>>>>>
>>>>>># echo $PATH
>>>>>>
>>>>>>
>>>>
>>>>
> /usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin :/usr/X11R6/bin:/root/bin:/usr/java/j2sdk1.5.1_05/bin:/usr/j ava/j2re1.4.2_01/bin
>
>>>>>>Any ideas?
>>>>>>
>>>>>
>>>>>Try to setup the JAVA_HOME variable in your .bashrc like:
>>>>
>>>>
>>>>>export JAVA_HOME=/usr/java/j2sdk1.5.1_05
>>>>>export PATH=$JAVA_HOME/bin:$PATH
>>>>
>>>>
>>>>>/jens
>>>>
>>>>
>>>>>P.S. Try to look at the other redhat/Eclipse thread in the SWT newsgroup
>>>>
>>>>
>>>>Another question, since you know what you are talking about. When I set
>>>>my $PATH variable and then restarted, the $PATH variable was reset. How
>>>>to I make it permanent?
>>>>
>>>>
>>>
>>>You should open the .bashrc file in your home folder and add:
>
>
>>>export JAVA_HOME=/usr/java/j2sdk1.5.1_05
>>>export PATH=$JAVA_HOME/bin:$PATH
>
>
>>>then save the .bashrc file. Then you type the following in your terminal.
>
>
>>>.. .bashrc
>
>
>>>next time you login or open a terminal the JAVA_HOME and PATH should be
>>>set permanent.
>
>
>>>Regards,
>
>
>>>Jens ;-)
>
>
>
>>ok I added the stuff to my .bashrc file, but when i go to the terminal and
>>type in:
>
>
>>#.. .bashrc
>
>
>>- or -
>
>
>># .bashrc
>
>
>>It says command not found.
>
>
> Also, even when I set my temp env variables to work for java, i still
> can't run eclipse... I get the same error.
>
What if you type:
java
in your konsole - does it work?
|
|
|
Re: Installing Eclipse [message #103551 is a reply to message #103536] |
Sun, 12 October 2003 18:20   |
Eclipse User |
|
|
|
Originally posted by: jgold03.swbell.net
Jens Andersen wrote:
> Jason Goldberg wrote:
> > Jason Goldberg wrote:
> >
> >
> >>Jens Andersen wrote:
> >
> >
> >>>Jason Goldberg wrote:
> >
> >
> >>>>Jens Andersen wrote:
> >>>>
> >>>>
> >>>>
> >>>>>Jason Goldberg wrote:
> >>>>>
> >>>>>
> >>>>>>I am a newbie who is having trouble getting Eclipse to run. I am using
> >>>>>>Red Hat 9.0. I downloaded the most recent Java SDK and JRE rpms, and
> >
> > ran
> >
> >>>>>>them. I then downloaded eclipse, and extracted the folder into my home
> >>>>>>directory. I then ran eclipse, and I got 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:
> >>>>>>/root/eclipse/jre/bin/java
> >>>>>>'java' in your current PATH
> >>>>>>
> >>>>>>However, when I run this command:
> >>>>>>
> >>>>>># echo $PATH
> >>>>>>
> >>>>>>
> >>>>
> >>>>
> >
/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin :/usr/X11R6/bin:/root/bin:/usr/java/j2sdk1.5.1_05/bin:/usr/j ava/j2re1.4.2_01/bin
> >
> >>>>>>Any ideas?
> >>>>>>
> >>>>>
> >>>>>Try to setup the JAVA_HOME variable in your .bashrc like:
> >>>>
> >>>>
> >>>>>export JAVA_HOME=/usr/java/j2sdk1.5.1_05
> >>>>>export PATH=$JAVA_HOME/bin:$PATH
> >>>>
> >>>>
> >>>>>/jens
> >>>>
> >>>>
> >>>>>P.S. Try to look at the other redhat/Eclipse thread in the SWT newsgroup
> >>>>
> >>>>
> >>>>Another question, since you know what you are talking about. When I set
> >>>>my $PATH variable and then restarted, the $PATH variable was reset. How
> >>>>to I make it permanent?
> >>>>
> >>>>
> >>>
> >>>You should open the .bashrc file in your home folder and add:
> >
> >
> >>>export JAVA_HOME=/usr/java/j2sdk1.5.1_05
> >>>export PATH=$JAVA_HOME/bin:$PATH
> >
> >
> >>>then save the .bashrc file. Then you type the following in your terminal.
> >
> >
> >>>.. .bashrc
> >
> >
> >>>next time you login or open a terminal the JAVA_HOME and PATH should be
> >>>set permanent.
> >
> >
> >>>Regards,
> >
> >
> >>>Jens ;-)
> >
> >
> >
> >>ok I added the stuff to my .bashrc file, but when i go to the terminal and
> >>type in:
> >
> >
> >>#.. .bashrc
> >
> >
> >>- or -
> >
> >
> >># .bashrc
> >
> >
> >>It says command not found.
> >
> >
> > Also, even when I set my temp env variables to work for java, i still
> > can't run eclipse... I get the same error.
> >
> What if you type:
> java
> in your konsole - does it work?
yes
|
|
|
Re: Installing Eclipse [message #103562 is a reply to message #103551] |
Sun, 12 October 2003 18:22   |
Eclipse User |
|
|
|
Originally posted by: jgold03.swbell.net
Jason Goldberg wrote:
> Jens Andersen wrote:
> > Jason Goldberg wrote:
> > > Jason Goldberg wrote:
> > >
> > >
> > >>Jens Andersen wrote:
> > >
> > >
> > >>>Jason Goldberg wrote:
> > >
> > >
> > >>>>Jens Andersen wrote:
> > >>>>
> > >>>>
> > >>>>
> > >>>>>Jason Goldberg wrote:
> > >>>>>
> > >>>>>
> > >>>>>>I am a newbie who is having trouble getting Eclipse to run. I am
using
> > >>>>>>Red Hat 9.0. I downloaded the most recent Java SDK and JRE rpms, and
> > >
> > > ran
> > >
> > >>>>>>them. I then downloaded eclipse, and extracted the folder into my
home
> > >>>>>>directory. I then ran eclipse, and I got 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:
> > >>>>>>/root/eclipse/jre/bin/java
> > >>>>>>'java' in your current PATH
> > >>>>>>
> > >>>>>>However, when I run this command:
> > >>>>>>
> > >>>>>># echo $PATH
> > >>>>>>
> > >>>>>>
> > >>>>
> > >>>>
> > >
>
/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin :/usr/X11R6/bin:/root/bin:/usr/java/j2sdk1.5.1_05/bin:/usr/j ava/j2re1.4.2_01/bin
> > >
> > >>>>>>Any ideas?
> > >>>>>>
> > >>>>>
> > >>>>>Try to setup the JAVA_HOME variable in your .bashrc like:
> > >>>>
> > >>>>
> > >>>>>export JAVA_HOME=/usr/java/j2sdk1.5.1_05
> > >>>>>export PATH=$JAVA_HOME/bin:$PATH
> > >>>>
> > >>>>
> > >>>>>/jens
> > >>>>
> > >>>>
> > >>>>>P.S. Try to look at the other redhat/Eclipse thread in the SWT
newsgroup
> > >>>>
> > >>>>
> > >>>>Another question, since you know what you are talking about. When I
set
> > >>>>my $PATH variable and then restarted, the $PATH variable was reset.
How
> > >>>>to I make it permanent?
> > >>>>
> > >>>>
> > >>>
> > >>>You should open the .bashrc file in your home folder and add:
> > >
> > >
> > >>>export JAVA_HOME=/usr/java/j2sdk1.5.1_05
> > >>>export PATH=$JAVA_HOME/bin:$PATH
> > >
> > >
> > >>>then save the .bashrc file. Then you type the following in your
terminal.
> > >
> > >
> > >>>.. .bashrc
> > >
> > >
> > >>>next time you login or open a terminal the JAVA_HOME and PATH should be
> > >>>set permanent.
> > >
> > >
> > >>>Regards,
> > >
> > >
> > >>>Jens ;-)
> > >
> > >
> > >
> > >>ok I added the stuff to my .bashrc file, but when i go to the terminal
and
> > >>type in:
> > >
> > >
> > >>#.. .bashrc
> > >
> > >
> > >>- or -
> > >
> > >
> > >># .bashrc
> > >
> > >
> > >>It says command not found.
> > >
> > >
> > > Also, even when I set my temp env variables to work for java, i still
> > > can't run eclipse... I get the same error.
> > >
> > What if you type:
> > java
> > in your konsole - does it work?
> yes
OK, when i
# ./eclipse
It opens eclipse
but when I try and use a launcher I get the error
|
|
|
Re: Installing Eclipse [message #103577 is a reply to message #103551] |
Sun, 12 October 2003 18:26   |
Eclipse User |
|
|
|
Originally posted by: ja.it-practice.dk-nospam
Jason Goldberg wrote:
> Jens Andersen wrote:
>
>
>>Jason Goldberg wrote:
>
>
>>>Jason Goldberg wrote:
>>>
>>>
>>>
>>>>Jens Andersen wrote:
>>>
>>>
>>>>>Jason Goldberg wrote:
>>>
>>>
>>>>>>Jens Andersen wrote:
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>>Jason Goldberg wrote:
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>>I am a newbie who is having trouble getting Eclipse to run. I am using
>>>>>>>>Red Hat 9.0. I downloaded the most recent Java SDK and JRE rpms, and
>>>
>>>ran
>>>
>>>
>>>>>>>>them. I then downloaded eclipse, and extracted the folder into my home
>>>>>>>>directory. I then ran eclipse, and I got 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:
>>>>>>>>/root/eclipse/jre/bin/java
>>>>>>>>'java' in your current PATH
>>>>>>>>
>>>>>>>>However, when I run this command:
>>>>>>>>
>>>>>>>># echo $PATH
>>>>>>>>
>>>>>>>>
>>>>>>
>>>>>>
> /usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin :/usr/X11R6/bin:/root/bin:/usr/java/j2sdk1.5.1_05/bin:/usr/j ava/j2re1.4.2_01/bin
>
>>>>>>>>Any ideas?
>>>>>>>>
>>>>>>>
>>>>>>>Try to setup the JAVA_HOME variable in your .bashrc like:
>>>>>>
>>>>>>
>>>>>>>export JAVA_HOME=/usr/java/j2sdk1.5.1_05
>>>>>>>export PATH=$JAVA_HOME/bin:$PATH
>>>>>>
>>>>>>
>>>>>>>/jens
>>>>>>
>>>>>>
>>>>>>>P.S. Try to look at the other redhat/Eclipse thread in the SWT newsgroup
>>>>>>
>>>>>>
>>>>>>Another question, since you know what you are talking about. When I set
>>>>>>my $PATH variable and then restarted, the $PATH variable was reset. How
>>>>>>to I make it permanent?
>>>>>>
>>>>>>
>>>>>
>>>>>You should open the .bashrc file in your home folder and add:
>>>
>>>
>>>>>export JAVA_HOME=/usr/java/j2sdk1.5.1_05
>>>>>export PATH=$JAVA_HOME/bin:$PATH
>>>
>>>
>>>>>then save the .bashrc file. Then you type the following in your terminal.
>>>
>>>
>>>>>.. .bashrc
>>>
>>>
>>>>>next time you login or open a terminal the JAVA_HOME and PATH should be
>>>>>set permanent.
>>>
>>>
>>>>>Regards,
>>>
>>>
>>>>>Jens ;-)
>>>
>>>
>>>
>>>>ok I added the stuff to my .bashrc file, but when i go to the terminal and
>>>>type in:
>>>
>>>
>>>>#.. .bashrc
>>>
>>>
>>>>- or -
>>>
>>>
>>>># .bashrc
>>>
>>>
>>>>It says command not found.
>>>
>>>
>>>Also, even when I set my temp env variables to work for java, i still
>>>can't run eclipse... I get the same error.
>>>
>>
>>What if you type:
>
>
>>java
>
>
>>in your konsole - does it work?
>
>
> yes
>
Hmmmmm. Try starting eclipse by typing:
../path/to/your/eclipse-folder/eclipse -vm /path/to/your/j2sdk/bin
|
|
|
Re: Installing Eclipse [message #103588 is a reply to message #103562] |
Sun, 12 October 2003 18:29   |
Eclipse User |
|
|
|
Originally posted by: ja.it-practice.dk-nospam
Jason Goldberg wrote:
> Jason Goldberg wrote:
>
>
>>Jens Andersen wrote:
>
>
>>>Jason Goldberg wrote:
>
>
>>>>Jason Goldberg wrote:
>>>>
>>>>
>>>>
>>>>>Jens Andersen wrote:
>>>>
>>>>
>>>>>>Jason Goldberg wrote:
>>>>
>>>>
>>>>>>>Jens Andersen wrote:
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>>Jason Goldberg wrote:
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>>I am a newbie who is having trouble getting Eclipse to run. I am
>
> using
>
>>>>>>>>>Red Hat 9.0. I downloaded the most recent Java SDK and JRE rpms, and
>>>>
>>>>ran
>>>>
>>>>
>>>>>>>>>them. I then downloaded eclipse, and extracted the folder into my
>
> home
>
>>>>>>>>>directory. I then ran eclipse, and I got 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:
>>>>>>>>>/root/eclipse/jre/bin/java
>>>>>>>>>'java' in your current PATH
>>>>>>>>>
>>>>>>>>>However, when I run this command:
>>>>>>>>>
>>>>>>>>># echo $PATH
>>>>>>>>>
>>>>>>>>>
>>>>>>>
>>>>>>>
> /usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin :/usr/X11R6/bin:/root/bin:/usr/java/j2sdk1.5.1_05/bin:/usr/j ava/j2re1.4.2_01/bin
>
>>>>>>>>>Any ideas?
>>>>>>>>>
>>>>>>>>
>>>>>>>>Try to setup the JAVA_HOME variable in your .bashrc like:
>>>>>>>
>>>>>>>
>>>>>>>>export JAVA_HOME=/usr/java/j2sdk1.5.1_05
>>>>>>>>export PATH=$JAVA_HOME/bin:$PATH
>>>>>>>
>>>>>>>
>>>>>>>>/jens
>>>>>>>
>>>>>>>
>>>>>>>>P.S. Try to look at the other redhat/Eclipse thread in the SWT
>
> newsgroup
>
>>>>>>>
>>>>>>>Another question, since you know what you are talking about. When I
>
> set
>
>>>>>>>my $PATH variable and then restarted, the $PATH variable was reset.
>
> How
>
>>>>>>>to I make it permanent?
>>>>>>>
>>>>>>>
>>>>>>
>>>>>>You should open the .bashrc file in your home folder and add:
>>>>
>>>>
>>>>>>export JAVA_HOME=/usr/java/j2sdk1.5.1_05
>>>>>>export PATH=$JAVA_HOME/bin:$PATH
>>>>
>>>>
>>>>>>then save the .bashrc file. Then you type the following in your
>
> terminal.
>
>>>>
>>>>>>.. .bashrc
>>>>
>>>>
>>>>>>next time you login or open a terminal the JAVA_HOME and PATH should be
>>>>>>set permanent.
>>>>
>>>>
>>>>>>Regards,
>>>>
>>>>
>>>>>>Jens ;-)
>>>>
>>>>
>>>>
>>>>>ok I added the stuff to my .bashrc file, but when i go to the terminal
>
> and
>
>>>>>type in:
>>>>
>>>>
>>>>>#.. .bashrc
>>>>
>>>>
>>>>>- or -
>>>>
>>>>
>>>>># .bashrc
>>>>
>>>>
>>>>>It says command not found.
>>>>
>>>>
>>>>Also, even when I set my temp env variables to work for java, i still
>>>>can't run eclipse... I get the same error.
>>>>
>>>
>>>What if you type:
>
>
>>>java
>
>
>>>in your konsole - does it work?
>
>
>>yes
>
>
>
> OK, when i
>
> # ./eclipse
>
> It opens eclipse
>
> but when I try and use a launcher I get the error
>
What error - what does it say? By the way - you should try starting
eclipse by typing ./path/to/your/eclipe/eclipse -vm
/path/to/your/j2sdk/bin/java. Is you pointing to your JRE or SDK?
|
|
|
Re: Installing Eclipse [message #103601 is a reply to message #103588] |
Sun, 12 October 2003 18:34   |
Eclipse User |
|
|
|
Originally posted by: jgold03.swbell.net
Jens Andersen wrote:
> Jason Goldberg wrote:
> > Jason Goldberg wrote:
> >
> >
> >>Jens Andersen wrote:
> >
> >
> >>>Jason Goldberg wrote:
> >
> >
> >>>>Jason Goldberg wrote:
> >>>>
> >>>>
> >>>>
> >>>>>Jens Andersen wrote:
> >>>>
> >>>>
> >>>>>>Jason Goldberg wrote:
> >>>>
> >>>>
> >>>>>>>Jens Andersen wrote:
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>>Jason Goldberg wrote:
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>>I am a newbie who is having trouble getting Eclipse to run. I am
> >
> > using
> >
> >>>>>>>>>Red Hat 9.0. I downloaded the most recent Java SDK and JRE rpms,
and
> >>>>
> >>>>ran
> >>>>
> >>>>
> >>>>>>>>>them. I then downloaded eclipse, and extracted the folder into my
> >
> > home
> >
> >>>>>>>>>directory. I then ran eclipse, and I got 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:
> >>>>>>>>>/root/eclipse/jre/bin/java
> >>>>>>>>>'java' in your current PATH
> >>>>>>>>>
> >>>>>>>>>However, when I run this command:
> >>>>>>>>>
> >>>>>>>>># echo $PATH
> >>>>>>>>>
> >>>>>>>>>
> >>>>>>>
> >>>>>>>
> >
/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin :/usr/X11R6/bin:/root/bin:/usr/java/j2sdk1.5.1_05/bin:/usr/j ava/j2re1.4.2_01/bin
> >
> >>>>>>>>>Any ideas?
> >>>>>>>>>
> >>>>>>>>
> >>>>>>>>Try to setup the JAVA_HOME variable in your .bashrc like:
> >>>>>>>
> >>>>>>>
> >>>>>>>>export JAVA_HOME=/usr/java/j2sdk1.5.1_05
> >>>>>>>>export PATH=$JAVA_HOME/bin:$PATH
> >>>>>>>
> >>>>>>>
> >>>>>>>>/jens
> >>>>>>>
> >>>>>>>
> >>>>>>>>P.S. Try to look at the other redhat/Eclipse thread in the SWT
> >
> > newsgroup
> >
> >>>>>>>
> >>>>>>>Another question, since you know what you are talking about. When I
> >
> > set
> >
> >>>>>>>my $PATH variable and then restarted, the $PATH variable was reset.
> >
> > How
> >
> >>>>>>>to I make it permanent?
> >>>>>>>
> >>>>>>>
> >>>>>>
> >>>>>>You should open the .bashrc file in your home folder and add:
> >>>>
> >>>>
> >>>>>>export JAVA_HOME=/usr/java/j2sdk1.5.1_05
> >>>>>>export PATH=$JAVA_HOME/bin:$PATH
> >>>>
> >>>>
> >>>>>>then save the .bashrc file. Then you type the following in your
> >
> > terminal.
> >
> >>>>
> >>>>>>.. .bashrc
> >>>>
> >>>>
> >>>>>>next time you login or open a terminal the JAVA_HOME and PATH should
be
> >>>>>>set permanent.
> >>>>
> >>>>
> >>>>>>Regards,
> >>>>
> >>>>
> >>>>>>Jens ;-)
> >>>>
> >>>>
> >>>>
> >>>>>ok I added the stuff to my .bashrc file, but when i go to the terminal
> >
> > and
> >
> >>>>>type in:
> >>>>
> >>>>
> >>>>>#.. .bashrc
> >>>>
> >>>>
> >>>>>- or -
> >>>>
> >>>>
> >>>>># .bashrc
> >>>>
> >>>>
> >>>>>It says command not found.
> >>>>
> >>>>
> >>>>Also, even when I set my temp env variables to work for java, i still
> >>>>can't run eclipse... I get the same error.
> >>>>
> >>>
> >>>What if you type:
> >
> >
> >>>java
> >
> >
> >>>in your konsole - does it work?
> >
> >
> >>yes
> >
> >
> >
> > OK, when i
> >
> > # ./eclipse
> >
> > It opens eclipse
> >
> > but when I try and use a launcher I get the error
> >
> What error - what does it say? By the way - you should try starting
> eclipse by typing ./path/to/your/eclipe/eclipse -vm
> /path/to/your/j2sdk/bin/java. Is you pointing to your JRE or SDK?
Well, I restarted and now it works. Thanks :)
|
|
|
Re: Installing Eclipse [message #103612 is a reply to message #103601] |
Sun, 12 October 2003 18:37   |
Eclipse User |
|
|
|
Originally posted by: ja.it-practice.dk-nospam
Jason Goldberg wrote:
> Jens Andersen wrote:
>
>
>>Jason Goldberg wrote:
>
>
>>>Jason Goldberg wrote:
>>>
>>>
>>>
>>>>Jens Andersen wrote:
>>>
>>>
>>>>>Jason Goldberg wrote:
>>>
>>>
>>>>>>Jason Goldberg wrote:
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>>Jens Andersen wrote:
>>>>>>
>>>>>>
>>>>>>>>Jason Goldberg wrote:
>>>>>>
>>>>>>
>>>>>>>>>Jens Andersen wrote:
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>>Jason Goldberg wrote:
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>>I am a newbie who is having trouble getting Eclipse to run. I am
>>>
>>>using
>>>
>>>
>>>>>>>>>>>Red Hat 9.0. I downloaded the most recent Java SDK and JRE rpms,
>
> and
>
>>>>>>ran
>>>>>>
>>>>>>
>>>>>>
>>>>>>>>>>>them. I then downloaded eclipse, and extracted the folder into my
>>>
>>>home
>>>
>>>
>>>>>>>>>>>directory. I then ran eclipse, and I got 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:
>>>>>>>>>>>/root/eclipse/jre/bin/java
>>>>>>>>>>>'java' in your current PATH
>>>>>>>>>>>
>>>>>>>>>>>However, when I run this command:
>>>>>>>>>>>
>>>>>>>>>>># echo $PATH
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
> /usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin :/usr/X11R6/bin:/root/bin:/usr/java/j2sdk1.5.1_05/bin:/usr/j ava/j2re1.4.2_01/bin
>
>>>>>>>>>>>Any ideas?
>>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>Try to setup the JAVA_HOME variable in your .bashrc like:
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>>export JAVA_HOME=/usr/java/j2sdk1.5.1_05
>>>>>>>>>>export PATH=$JAVA_HOME/bin:$PATH
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>>/jens
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>>P.S. Try to look at the other redhat/Eclipse thread in the SWT
>>>
>>>newsgroup
>>>
>>>
>>>>>>>>>Another question, since you know what you are talking about. When I
>>>
>>>set
>>>
>>>
>>>>>>>>>my $PATH variable and then restarted, the $PATH variable was reset.
>>>
>>>How
>>>
>>>
>>>>>>>>>to I make it permanent?
>>>>>>>>>
>>>>>>>>>
>>>>>>>>
>>>>>>>>You should open the .bashrc file in your home folder and add:
>>>>>>
>>>>>>
>>>>>>>>export JAVA_HOME=/usr/java/j2sdk1.5.1_05
>>>>>>>>export PATH=$JAVA_HOME/bin:$PATH
>>>>>>
>>>>>>
>>>>>>>>then save the .bashrc file. Then you type the following in your
>>>
>>>terminal.
>>>
>>>
>>>>>>>>.. .bashrc
>>>>>>
>>>>>>
>>>>>>>>next time you login or open a terminal the JAVA_HOME and PATH should
>
> be
>
>>>>>>>>set permanent.
>>>>>>
>>>>>>
>>>>>>>>Regards,
>>>>>>
>>>>>>
>>>>>>>>Jens ;-)
>>>>>>
>>>>>>
>>>>>>
>>>>>>>ok I added the stuff to my .bashrc file, but when i go to the terminal
>>>
>>>and
>>>
>>>
>>>>>>>type in:
>>>>>>
>>>>>>
>>>>>>>#.. .bashrc
>>>>>>
>>>>>>
>>>>>>>- or -
>>>>>>
>>>>>>
>>>>>>># .bashrc
>>>>>>
>>>>>>
>>>>>>>It says command not found.
>>>>>>
>>>>>>
>>>>>>Also, even when I set my temp env variables to work for java, i still
>>>>>>can't run eclipse... I get the same error.
>>>>>>
>>>>>
>>>>>What if you type:
>>>
>>>
>>>>>java
>>>
>>>
>>>>>in your konsole - does it work?
>>>
>>>
>>>>yes
>>>
>>>
>>>
>>>OK, when i
>>>
>>># ./eclipse
>>>
>>>It opens eclipse
>>>
>>>but when I try and use a launcher I get the error
>>>
>>
>>What error - what does it say? By the way - you should try starting
>>eclipse by typing ./path/to/your/eclipe/eclipse -vm
>>/path/to/your/j2sdk/bin/java. Is you pointing to your JRE or SDK?
>
>
> Well, I restarted and now it works. Thanks :)
>
>
You are welcome - happy hacking :-)
Regards,
Jens
|
|
|
Re: Installing Eclipse [message #103626 is a reply to message #103612] |
Sun, 12 October 2003 18:53   |
Eclipse User |
|
|
|
Originally posted by: muelleimer.usenet.katzien.de
Hallo!
* Jens Andersen <ja@it-practice.dk-nospam> wrote:
> Jason Goldberg wrote:
>> Well, I restarted and now it works. Thanks :)
> You are welcome - happy hacking :-)
Just for this onliner you needed to quote *two* *hundred* lines of
other stuff, which wasn't relevant *at all* for the reply. I've no
idea, how you read news, but on my terminal, I needed lots of
scrolling to get to the point, just to discover, that nothing
essential was added. Thats *very* annoying!
Guys, whatever you do next, please *first* read http://learn.to/quote/
Jan, seriously pissed.
|
|
| |
Re: Installing Eclipse [message #106735 is a reply to message #103639] |
Thu, 16 October 2003 16:24  |
Eclipse User |
|
|
|
Yes, guilty as charged. It's been a while since I posted, and in the
interim I became a Usenet heathen. The first step is admitting I have a
problem... :)
Derek
Jens Andersen wrote:
> Then I'm very glad that you didn't read the xdoclet thread above ;-)
> Thanks for letting me know :-)
>
> Jens, very happy
>
|
|
|
Goto Forum:
Current Time: Fri May 02 05:02:01 EDT 2025
Powered by FUDForum. Page generated in 0.08239 seconds
|