Kubuntu 12.4 and Java

Asked by Matt Pope

Hi,

I am new to Linux and cant seem to understand why it seems so difficult to install Java. I have followed the instructions on both ubuntus site and oracles. Both give errors or dont work as expected. THis shouldnt be that hard seriously??

I would rather use the Rekonq browser but will use firefox is necessary.

Oh and I downloaded the OpenJDK package from the Muon Software Centre but when I go to a site that requires java I am told that Java is not installed.

Its these basic functionality issues that hold linux back.

Regards

Matt

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu kubuntu-meta Edit question
Assignee:
No assignee Edit question
Solved by:
actionparsnip
Solved:
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

It's not hard at all

sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java7-installer

Revision history for this message
Matt Pope (matt-hknftjnl78lwtr) said :
#2

Wow thanks for the speedy reply. I'll try it out as soon as I'm able.

I have the icetea web launcher installed should I remove that first?

The icetea version works but crashes on the java based program I'm trying to launch.

I'll let you guys now the results.

Thanks again.

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#3

No need, the oracle java will just be used as it is set as the java plugin for the OS.

Revision history for this message
Matt Pope (matt-hknftjnl78lwtr) said :
#4

WARNING: The following packages cannot be authenticated!
  gsfonts-x11
Install these packages without verification [y/N]? y
Get:1 http://ppa.launchpad.net/webupd8team/java/ubuntu/ precise/main oracle-java7-installer all 7u5-0~webupd8~5 [15.3 kB]
Err http://gb.archive.ubuntu.com/ubuntu/ precise/main gsfonts-x11 all 0.22
  Could not connect to gb.archive.ubuntu.com:80 (194.169.254.10). - connect (110: Connection timed out)
Fetched 15.3 kB in 1min 3s (241 B/s)
Failed to fetch http://gb.archive.ubuntu.com/ubuntu/pool/main/g/gsfonts-x11/gsfonts-x11_0.22_all.deb Could not connect to gb.archive.ubuntu.com:80 (194.169.254.10). - connect (110: Connection timed out)
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

Is this a problem?

Matt

Revision history for this message
Best actionparsnip (andrew-woodhead666) said :
#5

Try:

echo "nameserver 8.8.8.8" | sudo tee /etc/resolv.conf > /dev/null
sudo apt-get clean
sudo apt-get -f install

Revision history for this message
Matt Pope (matt-hknftjnl78lwtr) said :
#6

Thanks actionparsnip, that solved my question.

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#7

"Its these basic functionality issues that hold linux back."

Just because YOU don't know how to do something doesn't mean it's hard or impossible. I suggest you consider this next time you post things in this tone. People like myself will show you have insanely simple it is and make you look like an ass.

Revision history for this message
Matt Pope (matt-hknftjnl78lwtr) said :
#8

Seriously??!?! You think that was simple?? I only now know how to do it because someone told me after me asking for help! How is an end user supposed to figure out that fix?? It is different to the answers on ubuntus site and javas own guide.

Which was EXACTLY my point!

For an OS to have mass appeal it needs to be straight forward.

Ie

Site needs plugin. Go to plugins site. Install plugin or at least follow simple instructions.

Not. Go to site. Follow incorrect instructions. Troll forums. Try alternate plugin which only partly works. Give up. Ask for help. Get help (very much appreciated) follow instructions you couldn't figure out without knowing where certain packages were located.

It's these basic problems people shouldn't have to overcome.

I don't feel that makes me an ass. Just a frustrated user who is trying to expand his horizons. Remember you were a noob once.....

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#9

Then try wording it better, Yes I was a noob but I websearched and found guides which I now relay to users.

If your DNS didn't suck you wouldn't have had to use the last bit I gave. 3 commands and Java is installed, no need to go to external sites or double click anything. Simple times.

This is basically what happens when you install Flash but I'm not sure of the licensing with oracle being Oracle but it's certainly not a taxing procedure. I'd even say it was faster than the Windows method.

Revision history for this message
Matt Pope (matt-hknftjnl78lwtr) said :
#10

It sure was fast, I love the feel of Linux, I just wish it wasnt so
command line reliant.

My first try was through the muon software centre but that didnt list
it. Where would you recommend as a good place to search for things
like this in future?

Oh and yes I thought it might be a DNS issue as I was at the office
when I tired that, all traffic gets routed through a corporate
smoothwall and tends to play hell with DNS lookups.

When I did it at home I used the first 3 line method :-)

On 6/19/12, actionparsnip <email address hidden> wrote:
> Your question #200713 on kubuntu-meta in Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+source/kubuntu-meta/+question/200713
>
> actionparsnip posted a new comment:
> Then try wording it better, Yes I was a noob but I websearched and found
> guides which I now relay to users.
>
> If your DNS didn't suck you wouldn't have had to use the last bit I
> gave. 3 commands and Java is installed, no need to go to external sites
> or double click anything. Simple times.
>
> This is basically what happens when you install Flash but I'm not sure
> of the licensing with oracle being Oracle but it's certainly not a
> taxing procedure. I'd even say it was faster than the Windows method.
>
> --
> You received this question notification because you asked the question.
>

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#11

Hehe, you'll learn to love CLI, it gets things done a tonne faster than GUI apps, it's very flexible.

Revision history for this message
Matt Pope (matt-hknftjnl78lwtr) said :
#12

lol hmmm maybe :-)

One quick question, is it easy to get apt to work via a proxy? I set
the system setting in Ksystem (or whatever its called) which allows
webrowsing but the update service, muon software centre and apt-get
etc cant connect?

I need to be able to turn this on for access at certain customers
sites then switch it off for use at others.

Any thoughts?

On 6/19/12, actionparsnip <email address hidden> wrote:
> Your question #200713 on kubuntu-meta in Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+source/kubuntu-meta/+question/200713
>
> actionparsnip posted a new comment:
> Hehe, you'll learn to love CLI, it gets things done a tonne faster than
> GUI apps, it's very flexible.
>
> --
> You received this question notification because you asked the question.
>

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#13

You may need to define it in /etc/apt/apt.conf

I know it can be done but that's the only way I know