LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   (Debian) bash: java: command not found (https://www.linuxquestions.org/questions/linux-newbie-8/debian-bash-java-command-not-found-234820/)

pjpeter 09-24-2004 02:08 PM

(Debian) bash: java: command not found
 
HI, I have a problem in that I am very familiar with Dr Java under the Windows OS and would like to use it on my Debian Sarge system. I have a project due basically in 2 days and I need to get started on it ASAP. I tried using Eclipse but its way too large for this project - maybe for the next project when I have more time it will be good to use but not yet. In order to run Dr Java I need to enter the command:

java -jar drjava-stable-20040326.jar

Now, this returns the reply from the Terminal:
bash: java: command not found

Now I know that indicates that java is not installed. However, I have installed it using the Graphical interface in the installer found on http://java.sun.com/j2se/1.4.2/download.html.

Now I need to get it so my program works perfectly on Java 1.4.2, so I need this version. What have I done wrong? After I ran the Java GUI installer I did nothing else as part of the install. Is there something more I need to do?

Thanks,
Peter

HappyTux 09-24-2004 02:25 PM

Re: (Debian) bash: java: command not found
 
Quote:

Originally posted by pjpeter
HI, I have a problem in that I am very familiar with Dr Java under the Windows OS and would like to use it on my Debian Sarge system. I have a project due basically in 2 days and I need to get started on it ASAP. I tried using Eclipse but its way too large for this project - maybe for the next project when I have more time it will be good to use but not yet. In order to run Dr Java I need to enter the command:

java -jar drjava-stable-20040326.jar

Now, this returns the reply from the Terminal:
bash: java: command not found

Now I know that indicates that java is not installed. However, I have installed it using the Graphical interface in the installer found on http://java.sun.com/j2se/1.4.2/download.html.

Now I need to get it so my program works perfectly on Java 1.4.2, so I need this version. What have I done wrong? After I ran the Java GUI installer I did nothing else as part of the install. Is there something more I need to do?

Thanks,
Peter

You may want to look at this guide there are a couple of typos in it so look out for them.

http://wiki.osuosl.org/display/DEV/Java+on+Debian

pjpeter 09-24-2004 03:03 PM

Fixed the hard and dirty way via copying the .jar file into my java/bin directory and making a launcher with the command: /opt/j2sdk1.4.2_04/bin/java -jar /opt/j2sdk1.4.2_04/bin/drjava-beta-20040908.jar

Thanks,
Peter

Mara 09-25-2004 02:59 PM

Please do not post the same thread in more than one forum. Picking the most relevant forum and posting it once there makes it easier for other members to help you and keeps the discussion all in one place.

http://www.linuxquestions.org/rules.php

I'm closing this one, the thread in Programming http://www.linuxquestions.org/questi...hreadid=234816 remains open.


All times are GMT -5. The time now is 01:50 PM.