Find the answer to your Linux question:
Results 1 to 7 of 7
Hello. I am running a dual boot with Debian and XP. Right now I am totally frustrated. I have been trying to get java working on my machine. I got ...
  1. #1
    Linux Newbie
    Join Date
    Jun 2009
    Posts
    111

    Unhappy [SOLVED] Newbie needs help installing sun-java

    Hello. I am running a dual boot with Debian and XP.

    Right now I am totally frustrated. I have been trying to get java working on my machine. I got as far as installing the program (i was prompted to say 'yes', and it ended up saying 'done').

    What do I do next? I'm a newbie so please try not to leave any steps out. Thanks.

  2. #2
    Linux Guru rokytnji's Avatar
    Join Date
    Jul 2008
    Location
    Pecos, Texas
    Posts
    2,942
    I posted this a while back. It shows a step by step process on how I installed java manually from javas site in Antix which is like debian. The hard Part for you will probably be making the symlink for your browser from the java folder. I don't run vanilla Debian. I also run 2 different file managers in AntiX. Rox and PCMaNFM. Hope it helps ya.

    http://www.linuxforums.org/forum/mep...tix-8-2-a.html
    Linux Registered User # 475019
    Lead,Follow, or get the heck out of the way
    AntiX,Puppy,Ubuntu,Windows 7=(cuz of scooters)
    Open CourseWare for Linux Geeks

  3. #3
    Linux Guru coopstah13's Avatar
    Join Date
    Nov 2007
    Location
    NH, USA
    Posts
    3,149
    is there really any reason to manually install it when it is available in package manager?

    Debian -- Package Search Results -- sun-java6

    You just need to have non-free repo enabled.

  4. #4
    Just Joined!
    Join Date
    Aug 2005
    Location
    Houston, Texas.
    Posts
    57
    Absolutly no need to do it by hand when it's in the repos. Haven't done it this way in ages.

    From a termian as root: apt-get install sun-java6-jre. Or you can open Synaptic and search and install it from there.

  5. #5
    Linux Newbie
    Join Date
    Jun 2009
    Posts
    111

    Java on Debian for a newbie

    Thanks for the help. How do I enable non-free repos?

  6. #6
    Just Joined!
    Join Date
    Aug 2005
    Location
    Houston, Texas.
    Posts
    57
    Search for contrib non-free and multimedia repositories. You're bound to come up with something. You will definitely need them no matter what you do. Use google.com/linux to do your search. Matter of fact that's the home page for my browser.

    Here's a good link to start with
    Post your source.list - LinuxQuestions.org
    Notice that this post started in '05. Start with the last page for more recent and up to date repo sources for your /etc/apt/sources.list file.

    Another good link is debiantutorials.org - A Debian GNU/Linux Desktop Tutorial Site

    Two things to keep in mind, both repos should come from the nearest country if possible. Makes downloading quicker. But that's not always possible. So don't worry about that. Also, make damn sure the repos are for your branch of Debain. DO NOT mix Stable/Lenny, Testing/Squeeze or Unstable/Sid repos. That's a sure way of screwing up your OS.

    Oh, I lost track of your primary question. How to add/enable new repos.

    One can do it with the CLI (command line) or, and I suggest this method, with Synaptic. For Synaptic: At the task bar, System > Administration > Synaptic Package Manager. Once there, Settings > Repositories. Once you've added the new repos, Reload (so the system knows you've got a new source). Then do a Search for the apps you want. Once found, it's pretty easy and self explanatory to install apps.

    At the CLI, as root: nano /etc/apt/sources.list. Once that file is opened add the new repos at the end of that file. Control with x to save the new info to the file and exit. It will be necessary to give this command: apt-get update. Like with Synaptic Reload, this command lets your OS know of new additions to your sources list. And again 'apt-get cache search app' will find the app you're looking for. With 'app-get install app' to install it.

  7. #7
    Linux Newbie
    Join Date
    Jun 2009
    Posts
    111

    Installing sun-java on Debian

    Thanks for the help guys. What I ended up doing was updating my repositories to include the non-free stuff. (system/administration/Synaptic Pkg Manager then Settings/Repositories/Debian Software then click on all check boxes. Then I reloaded synaptic package manager and searced for java (searching for sun-java-6 turned up nothing) -- then scrolled down to find sun-java-6-plugin and checked it and applied.

    Thanks for all the help I thought I would never figure it out.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •