LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Closed Thread
  Search this Thread
Old 09-24-2004, 02:08 PM   #1
pjpeter
Member
 
Registered: Sep 2004
Distribution: Debian Sarge RC1 Kernel 2.6.7.1
Posts: 46

Rep: Reputation: 15
(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
 
Old 09-24-2004, 02:25 PM   #2
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 4,170

Rep: Reputation: 244Reputation: 244Reputation: 244
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
 
Old 09-24-2004, 03:03 PM   #3
pjpeter
Member
 
Registered: Sep 2004
Distribution: Debian Sarge RC1 Kernel 2.6.7.1
Posts: 46

Original Poster
Rep: Reputation: 15
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
 
Old 09-25-2004, 02:59 PM   #4
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
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.
 
  


Closed Thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
bash: command not found hamish Linux - Newbie 7 02-23-2011 04:28 PM
bash: command not found intels_ss Linux - Newbie 5 07-20-2005 07:41 PM
bash: java: command not found pjpeter Programming 4 09-24-2004 03:02 PM
bash: ll: command not found x2000koh Linux - Newbie 3 08-08-2003 05:11 AM
java command - "bash: java: command not found" ??? RedHat123 Programming 2 07-16-2002 11:09 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:36 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration