Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

How to Install Java?

New to Debian (Or Linux in general)? Ask your questions here!
Post Reply
Message
Author
alikhurshid
Posts: 3
Joined: 2010-01-04 09:56

How to Install Java?

#1 Post by alikhurshid »

Hey...i am new to debian and i am trying to install java in debian but cant...Please Help....

User avatar
dotlj
Posts: 646
Joined: 2009-12-25 17:21

Re: How to Install Java?

#2 Post by dotlj »

First, some questions that will help us to help you.

Which version of Debian?
32 bit / 64 bit computer?

What did you try?

Look at the wiki - http://wiki.debian.org/Manual-Howto#Jav ... RE.29AMD64

User avatar
nadir
Posts: 5961
Joined: 2009-10-05 22:06
Location: away

Re: How to Install Java?

#3 Post by nadir »

i did it that way:
a)
i made sure my repositories contain contrib and non-free like here
(its only bout contrib; non-free, dont replace lenny by sid or the country-code;
just make sure contrib and non-free is at the end of your existing line !) :

Code: Select all

deb http://ftp.de.debian.org/debian/ sid main contrib non-free
b)
i ran apt-get update
c)

Code: Select all

apt-get install sun-java6-jre
apt-get install sun-java6-plugin
d)
i checked if it did work here:
http://www.java.com/de/download/help/testvm.xml

it did work without further actions.
might be you prefer doing it from synaptic.

###############
the better option might be using the free version:

Code: Select all

apt-get install openjdk-6-jre
apt-get install icedtea6-plugin
(in this case better is not only better=free, but better= of a better quality. i couldn`t get it running, though i did run update-alternatives***, not sure why.
wait if someone might give you a hand with that)
"I am not fine with it, so there is nothing for me to do but stand aside." M.D.

alikhurshid
Posts: 3
Joined: 2010-01-04 09:56

Re: How to Install Java?

#4 Post by alikhurshid »

E: Malformed line 13 in source list /etc/apt/sources.list (dist parse)
E: The list of sources could not be read.

i have this problem and i want to install jvm on my debian version 4 stable.i edited my source.list file which every time makes a new sources.list~.without updating the link mentioned in sources.list.
plz help me.

User avatar
craigevil
Posts: 5391
Joined: 2006-09-17 03:17
Location: heaven
Has thanked: 28 times
Been thanked: 39 times

Re: How to Install Java?

#5 Post by craigevil »

alikhurshid wrote:E: Malformed line 13 in source list /etc/apt/sources.list (dist parse)
E: The list of sources could not be read.

i have this problem and i want to install jvm on my debian version 4 stable.i edited my source.list file which every time makes a new sources.list~.without updating the link mentioned in sources.list.
plz help me.
Please paste your /etc/apt/sources.list

Also keep in mind that support for Etch ends some time next month, so you may want to start thinking about updating to Lenny.
Raspberry PI 400 Distro: Raspberry Pi OS Base: Debian Sid Kernel: 5.15.69-v8+ aarch64 DE: MATE Ram 4GB
Debian - "If you can't apt install something, it isn't useful or doesn't exist"
My Giant Sources.list

alikhurshid
Posts: 3
Joined: 2010-01-04 09:56

Re: How to Install Java?

#6 Post by alikhurshid »

#
# deb cdrom:[Debian GNU/Linux 4.0 r4a _Etch_ - Official i386 DVD Binary-1 20080803-20:48]/ etch contrib main



# Line commented out by installer because it failed to verify:
# deb http://security.debian.org/ etch/updates main contrib
# Line commented out by installer because it failed to verify:
# deb-src http://security.debian.org/ etch/updates main contrib

deb http://ftp.us.debian.org/debian etch main contrib non-free

deb http://ftp.de.debian.org etch/non-free


deb cdrom:[Debian GNU/Linux 4.0 r4a _Etch_ - Official i386 DVD Binary-1 20080803-20:48]/ etch contrib main







this is my sources.list file.

User avatar
nadir
Posts: 5961
Joined: 2009-10-05 22:06
Location: away

Re: How to Install Java?

#7 Post by nadir »

line 13 is this one:

Code: Select all

deb http://ftp.de.debian.org etch/non-free
malform is this -> etch/non-free ||| which should be -> etch non-free
either remove the whole line, as its an double entry, or, if you need that line from the german ftp-site for any reason, correct it:

Code: Select all

deb http://ftp.de.debian.org etch non-free
greetings
"I am not fine with it, so there is nothing for me to do but stand aside." M.D.

Post Reply