LinuxQuestions.org
Visit Jeremy's Blog.
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 02-01-2006, 02:59 PM   #1
heathBobby
LQ Newbie
 
Registered: Oct 2005
Location: Dallas,Tx
Posts: 4

Rep: Reputation: 0
Trouble with Java


I am trying to install the J2sdk1.5 and have had very little success. Every instruction tutorial I have seen starts with

apt-get install fakeroot java-package

fakeroot installs fine. Java-package does not.
I get an error that says "Couldn't find package java-package". I looked for a couple of hours and I finally found a source file for the package but I haven't been able to complete the installation.

The steps I took to install the source:

1) Untar java-package OR java-package-0.24 OR java-package-xxx, whatever you downloaded

2) Type cd java-package-xxx

3) Rename make-jpkg to make-jpkg.out

4) Type fakeroot make install to install the java-package using fakeroot

5) I then copied the sun-j2sdk1.5 folder from the untarred archive java-package-xxx to /usr/share/java-package and placed it there.

7) In the terminal window, I just typed make-jpkg followed by the Java SDK pathname

When I go to this last step I couldn't go any further. I have no idea what the Java SDK pathname is. I have searched all over my system and nothing.
My system is a new install and nothing beyond the default web server install has been added or removed.

Any help will be greatly appreciated. I'm getting a little desperate now.
 
Old 02-01-2006, 03:01 PM   #2
ingvildr
Member
 
Registered: Mar 2005
Location: England, South East
Distribution: Fedora
Posts: 358

Rep: Reputation: 30
http://www.debian-unofficial.org/ has java packaged up as deb files just add them to your sources.list and off you go.
 
Old 02-01-2006, 03:20 PM   #3
dastrike
Member
 
Registered: Apr 2004
Location: Stockholm, Sweden
Distribution: Debian 'sid'
Posts: 250

Rep: Reputation: 30
See the instructions I've written: Debian Java JRE/JDK installation. I have brought up both creating a .deb from the .bin, and the way of using 3rd party repositories, and the last-resort way of installing it "manually".

The thing with java-package is that it resides in the contrib section of Debian's repositories, which is not included by default after the installation. Most instructions regarding this omit that small yet important thing, apparently assuming that the user is capable enough to figure that out.

Last edited by dastrike; 02-01-2006 at 03:21 PM.
 
Old 02-01-2006, 03:20 PM   #4
heathBobby
LQ Newbie
 
Registered: Oct 2005
Location: Dallas,Tx
Posts: 4

Original Poster
Rep: Reputation: 0
I am a bit of a newbie so, I will appologize in advance for the newbie questions.

1) I searched and found two sources.list files. Which one needs to be edited?

2) What do I need to add to the file? Here is the current contents of the /etc/apt/sources.list.

---------------------------------------------------------
#deb file:///cdrom/ sarge main

deb mirrorsite/debian/ stable main
deb-src mirrorsite/debian/ stable main

deb securitymirrorsiteorg/ stable/updates main
---------------------------------------------------------

Do I just add "deb debian-unofficial/ stable main" to this file?

PS. I had to change the site addresses. It wouldn't let me post with the webaddress of another site until I have posted 5 times.
 
Old 02-01-2006, 03:23 PM   #5
ingvildr
Member
 
Registered: Mar 2005
Location: England, South East
Distribution: Fedora
Posts: 358

Rep: Reputation: 30
add this 'deb http://ftp.debian-unofficial.org/debian sarge main contrib non-free restricted' to your /etc/apt/sources.list.
 
Old 02-02-2006, 09:16 AM   #6
heathBobby
LQ Newbie
 
Registered: Oct 2005
Location: Dallas,Tx
Posts: 4

Original Poster
Rep: Reputation: 0
I added the line you (ingvildr) listed above then used 'apt-get update' but I am getting the package not found error again. Is there something else I need to do?
 
Old 02-02-2006, 10:06 AM   #7
ingvildr
Member
 
Registered: Mar 2005
Location: England, South East
Distribution: Fedora
Posts: 358

Rep: Reputation: 30
here are the java packages,
Code:
Sun J2SE 5.0 JCE 1.5.0
 [all] sun-j2se5.0-jce-binary
 
 
Sun J2SE 5.0 JDK 1.5.0.06
 [i386] sun-j2se5.0-jdk-binary
 
 
Sun J2SE 5.0 JDK Documentation 1.5.0 (English)
 [all] sun-j2se5.0-jdk-doc-en
 
 
Sun J2SE 5.0 JDK Documentation 1.5.0 (Japanese)
 [all] sun-j2se5.0-jdk-doc-ja
 
 
Sun J2SE 5.0 JRE 1.5.0.06
 [i386] sun-j2se5.0-jre-binary

Last edited by ingvildr; 02-02-2006 at 10:07 AM.
 
Old 02-02-2006, 11:03 AM   #8
heathBobby
LQ Newbie
 
Registered: Oct 2005
Location: Dallas,Tx
Posts: 4

Original Poster
Rep: Reputation: 0
I have been using the command 'apt-get install java-package'. Is this not the command? Do I need to use the package names you listed above (i.e. 'apt-get install sun-j2se5.0-jce-binary').
 
Old 02-02-2006, 11:14 AM   #9
ingvildr
Member
 
Registered: Mar 2005
Location: England, South East
Distribution: Fedora
Posts: 358

Rep: Reputation: 30
yes those are the packages now available to you from the debian-unofficial repo.
 
Old 02-02-2006, 12:26 PM   #10
lestoil
Member
 
Registered: Apr 2004
Location: new york
Distribution: win2k,ubuntu,sw13,arch,centos5.3
Posts: 815

Rep: Reputation: 31
Look at your sources list sarge lines they should have main contrib non-free at end. If you go thru sources lists sticky at top of this forum you can get better oriented. Dastrike's method works as well as the backport site. But be careful with number of backports used for you may get apt-get dependency errors later.
Have fun

Last edited by lestoil; 02-02-2006 at 05:20 PM.
 
  


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
Having trouble with Java KezzerDrix Mandriva 12 03-30-2005 09:06 AM
Java Install trouble lmanwarren Linux - Software 9 03-22-2005 04:26 PM
Having trouble installing java... broham Linux - Newbie 2 11-10-2004 07:16 PM
Trouble with Java a2b2c2d Linux - Software 2 10-04-2004 08:58 PM
Trouble w/java raysr Linux - Newbie 7 01-10-2004 02:24 PM

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

All times are GMT -5. The time now is 02:17 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