LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 05-22-2007, 02:20 PM   #1
manolakis
Member
 
Registered: Nov 2006
Distribution: xubuntu
Posts: 464

Rep: Reputation: 37
Java Installation in Debian 64bit


Hi there
I just installed Debian 64bit and I tried to install jdk1.6.0_01 into usr/local/ but javac can not be found.
Quote:
manos@debian:/usr/local/jdk1.6.0_01$ which java
/usr/bin/java
Can someone edit my profile. Currently looks like that
Quote:
# /etc/profile: system-wide .profile file for the Bourne shell (sh(1))
# and Bourne compatible shells (bash(1), ksh(1), ash(1), ...).
if [ "`id -u`" -eq 0 ]; then
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
else
PATH="/usr/local/bin:/usr/bin:/bin:/usr/games"
fi
if [ "$PS1" ]; then
if [ "$BASH" ]; then
PS1='\u@\h:\w\$ '
else
if [ "`id -u`" -eq 0 ]; then
PS1='# '
else
PS1='$ '
fi
fi
fi
export PATH
umask 022
Thanks for your time
Manos
 
Old 05-22-2007, 05:46 PM   #2
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 4,170

Rep: Reputation: 244Reputation: 244Reputation: 244
I have this in my ~/.bashrc.

Code:
export JAVA_HOME=/usr/lib/jvm/java-6-sun-1.6.0.00
Also you did not mention which version of Debian you installed but you can get Java 6 by having non-free in your sources.list with either testing or the unstable branches if using etch then you should be able to put a temporary line for non-free for testing in there and install then remove the line.

Code:
apt-cache policy sun-java6-jre
sun-java6-jre:
  Installed: 6-00-2
  Candidate: 6-00-2
  Version table:
 *** 6-00-2 0
        990 http://ftp2.de.debian.org testing/non-free Packages
        600 http://ftp2.de.debian.org sid/non-free Packages
        100 /var/lib/dpkg/status
 
Old 05-22-2007, 10:32 PM   #3
manolakis
Member
 
Registered: Nov 2006
Distribution: xubuntu
Posts: 464

Original Poster
Rep: Reputation: 37
Hi there
Thanks for your reply. I have Debian-2.0.0.3-1 edition
 
Old 05-22-2007, 10:44 PM   #4
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 4,170

Rep: Reputation: 244Reputation: 244Reputation: 244
Quote:
Originally Posted by manolakis
Hi there
Thanks for your reply. I have Debian-2.0.0.3-1 edition
I do not believe there is such a version can you show the output of the command below.

Code:
cat /etc/debian_version
lenny/sid
 
Old 05-22-2007, 11:05 PM   #5
ErrorBound
Member
 
Registered: Apr 2006
Posts: 280

Rep: Reputation: 31
Quote:
Originally Posted by manolakis
Hi there
Thanks for your reply. I have Debian-2.0.0.3-1 edition
Is this actually your version of Firefox/Iceweasel? This is not the same as the actual Debian release.
 
Old 05-22-2007, 11:09 PM   #6
manolakis
Member
 
Registered: Nov 2006
Distribution: xubuntu
Posts: 464

Original Poster
Rep: Reputation: 37
yes, you are right. Any idea how i can find that out?
 
Old 05-22-2007, 11:20 PM   #7
ErrorBound
Member
 
Registered: Apr 2006
Posts: 280

Rep: Reputation: 31
Quote:
Originally Posted by manolakis
yes, you are right. Any idea how i can find that out?
Just post the output of
Code:
cat /etc/debian_version
 
Old 05-23-2007, 01:07 AM   #8
manolakis
Member
 
Registered: Nov 2006
Distribution: xubuntu
Posts: 464

Original Poster
Rep: Reputation: 37
It is version for 4.0 Can i get now the chance to ask you if you know if there is any gcc compiler pre-installed in the Debian?
 
Old 05-23-2007, 01:12 AM   #9
rickh
Senior Member
 
Registered: May 2004
Location: Albuquerque, NM USA
Distribution: Debian-Lenny/Sid 32/64 Desktop: Generic AMD64-EVGA 680i Laptop: Generic Intel SIS-AC97
Posts: 4,250

Rep: Reputation: 62
Change your profile to Etch.

Very little gets installed in Debian unless you ask for it. That applies to gcc.

"# aptitude install build-essential" will get you the base compiler and some other things.

If you have trouble with the compiler, you might also run "aptitude search gcc" That may identify some peripheral associated packages you need.

Last edited by rickh; 05-23-2007 at 01:21 AM.
 
Old 05-23-2007, 01:16 AM   #10
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 4,170

Rep: Reputation: 244Reputation: 244Reputation: 244
Quote:
Originally Posted by rickh
"# aptitude install build-essentials"
build-essential

You have a typo...
 
Old 05-23-2007, 01:22 AM   #11
rickh
Senior Member
 
Registered: May 2004
Location: Albuquerque, NM USA
Distribution: Debian-Lenny/Sid 32/64 Desktop: Generic AMD64-EVGA 680i Laptop: Generic Intel SIS-AC97
Posts: 4,250

Rep: Reputation: 62
Sorry. I do that all the time. ... Fixed.
 
Old 05-23-2007, 12:40 PM   #12
manolakis
Member
 
Registered: Nov 2006
Distribution: xubuntu
Posts: 464

Original Poster
Rep: Reputation: 37
Hi again
I would like to thank you beforehand. Now i have got gcc and everything looks fine.
I would be once more obliged if you have a look to http://www.osnews.com/story.php/5768...2-bit-Binaries
What i would like to know is how to compile source codes of different programming language like C , Java, so to produce 64bit executables.
The web-page that i provided includes how to compile a C file.
Is there anything relative for Java?
I have heard of chroot command as well(Is it for conversion?)...
I would be really thankful to anyone that has been familiar with 64 bit systems and could explain me my basic wonderings for such a system

Once more again I own you a big thank to all of you for your precious help
Manos
 
Old 05-23-2007, 12:51 PM   #13
rickh
Senior Member
 
Registered: May 2004
Location: Albuquerque, NM USA
Distribution: Debian-Lenny/Sid 32/64 Desktop: Generic AMD64-EVGA 680i Laptop: Generic Intel SIS-AC97
Posts: 4,250

Rep: Reputation: 62
You're wandering far afield from the original thread title. For the questions in your latest post, start a new thread in the "Programming" forum.
 
  


Reply



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
Firefox java plugin for FC3 64bit zmanzbo Linux - Software 5 08-15-2007 06:38 PM
Can't get Java plugin working under Firefox 64bit killy9999 SUSE / openSUSE 13 02-12-2007 08:49 PM
Java plugins for Suse 10.1 64bit firefox olva SUSE / openSUSE 3 06-17-2006 09:39 PM
Any ideas when a 64bit java plugin for firefox? carl0ski Linux - Software 1 11-29-2005 03:09 PM
32bit Debian -> 64bit Debian movery Linux - Distributions 0 01-08-2005 06:39 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 10:27 PM.

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