Home | Community | Message Board


This site includes paid links. Please support our sponsors.


Welcome to the Shroomery Message Board! You are experiencing a small sample of what the site has to offer. Please login or register to post messages and view our exclusive members-only content. You'll gain access to additional forums, file attachments, board customizations, encrypted private messages, and much more!

Jump to first unread post Pages: 1
Installing java in linux
    #16616255 -

I just installed linux on my computer and need help installing java onto my computer. I am trying to follow the instructions on the website but I when I go into the directory I downloaded the file too and try to change it to an executable I keep getting the file cannot be found error. Than when I use archive manager and go into the /usr/java directory I can only get into the /usr/ directory and not access the java folder. And either way the command to install the file isn't working. Can I have some help.


--------------------

Extras: Filter Print Post Top
Re: Installing java in linux [Re: theonlysun81]
    #16616257 -

linux doesn't use executables (.exe), only windows uses that.
You can try using wine to install it, but i'm just a novice linux guy


--------------------

    And when I see you coming down the line
    With eyes wide open
    Somewhere in between the past and future
    Where you drift in time
    And you can see a different point of view


Extras: Filter Print Post Top
Re: Installing java in linux [Re: jammin]
    #16623329 -

What distro you using?


--------------------


∞
I am incapable of conceiving infinity, and yet I do not accept finity.
- Simone de Beauvoir -

Extras: Filter Print Post Top
Re: Installing java in linux [Re: theonlysun81]
    #16626099 -

if you're using a common distro i'm sure you already have it

open up a terminal and type in "java --version"


--------------------



Extras: Filter Print Post Top
Re: Installing java in linux [Re: HELLA_TIGHT]
    #16628998 -

I'm running ubuntu

when I typed java --version the output was


Unrecognized option: --version
Error:  Could not create the Java Virtual Machine
Error: A fatal exception occured. Program will exit


--------------------

Extras: Filter Print Post Top
Re: Installing java in linux [Re: theonlysun81]
    #16633201 -

In ubuntu the easiest way is going to be to open up the synaptic package manager and install it through there. Fool around in the menus and you should find it. Once in the package manager just search for java and install anything that looks relevant. Alternatively you can go to the website for java and they will probably have semi-usable instructions there for ubuntu or debian.


--------------------
"To win at something stupid is to lose at something smart." - Anonymous

Extras: Filter Print Post Top
Re: Installing java in linux [Re: luckybot]
    #16633397 -

luckybot said:
In ubuntu the easiest way is going to be to open up the synaptic package manager and install it through there. Fool around in the menus and you should find it. Once in the package manager just search for java and install anything that looks relevant. Alternatively you can go to the website for java and they will probably have semi-usable instructions there for ubuntu or debian.



:whathesaid:


--------------------

    And when I see you coming down the line
    With eyes wide open
    Somewhere in between the past and future
    Where you drift in time
    And you can see a different point of view


Extras: Filter Print Post Top
Re: Installing java in linux [Re: jammin]
    #16644399 -

ubuntu comes pretty bare.
go to applications
ubuntu software center
search java
install


--------------------

Extras: Filter Print Post Top
Re: Installing java in linux [Re: theonlysun81]
    #16644418 -

Quote:
sudo apt get java
/make
/make install



???


--------------------
You wanna get high? Drink tap water.
--------------------

Extras: Filter Print Post Top
Re: Installing java in linux [Re: luckybot]
    #16651326 -

I follow the instructions but beyond navigating directories everytime I execute a command usually it is not found.


--------------------

Extras: Filter Print Post Top
Re: Installing java in linux [Re: theonlysun81]
    #16653645 -

Use "sudo su" and then all commands after that will be as administrator. Might help with the file not found errors.


--------------------
"To win at something stupid is to lose at something smart." - Anonymous

Extras: Filter Print Post Top
Re: Installing java in linux [Re: theonlysun81]
    #16667828 -

Install from your distro's repos? The package is usually called "openjdk", it will probably be version 6/7.

Extras: Filter Print Post Top
Re: Installing java in linux [Re: luckybot]
    #16668093 -

luckybot said:
Use "sudo su" and then all commands after that will be as administrator. Might help with the file not found errors.



I've heard from the linux administration staff at ubuntu, that you are supposed to use sudo -i, instead of sudo su, because sudo su allows a user to write directly to the cache. I don't really know what that means, how many caches are there? Anyway

What I don't understand, is why you want java, do you want a java virtual machine to write java code? Or are you just trying to use flash? For all commands for linux to install you use:

"sudo apt-get install program-version" without the quotes, and program-version being the name of the program followed by the version"

You should surf around and look for java, whatever that means, the virtual machine and libraries, or just the flash player you want, then download a version for linux, also most .deb packages work for ubuntu as well because the kernels are so similar. Now you can also look up commands such as

java version

or what not to find what version of flash or java you have. But if you go to downloads and see the package you downloaded and don't want to install via synaptic manager then just note the program and version then use sudo apt-get install. Good luck


--------------------
:kingcrankey: I did not say to edit my signature soulidarity! Now forever I will never remember what I said about understanding the secrets of the universe by paying attention to subtleties!

:facepalm: I'm never giving you the password again. Jerk

Extras: Filter Print Post Top
Re: Installing java in linux [Re: theonlysun81]
    #16668114 -

theonlysun81 said:
I just installed linux on my computer and need help installing java onto my computer. I am trying to follow the instructions on the website but I when I go into the directory I downloaded the file too and try to change it to an executable I keep getting the file cannot be found error. Than when I use archive manager and go into the /usr/java directory I can only get into the /usr/ directory and not access the java folder. And either way the command to install the file isn't working. Can I have some help.



also the point of wine is to open files written in c# made for windows. You can download a windows program, set the properties to open as executable, right click on the file, then open the file with wine.

But java is more of a library or a plug in if you are referring to flash. A run time library of course needs to be present. In which case the file being made for windows won't work for linux, as it's not really a file on the application layer.

If you get your java installed and worked out, your version should look something like this:

java -version
java version "1.6.0_24"
OpenJDK Runtime Environment (IcedTea6 1.11.1) (6b24-1.11.1-4ubuntu2)
OpenJDK Client VM (build 20.0-b12, mixed mode, sharing)

you are using 12.4 LTS?


--------------------
:kingcrankey: I did not say to edit my signature soulidarity! Now forever I will never remember what I said about understanding the secrets of the universe by paying attention to subtleties!

:facepalm: I'm never giving you the password again. Jerk

Extras: Filter Print Post Top
Jump to top Pages: 1


Similar ThreadsPosterViewsRepliesLast post
* help installing Gentoo Linux endokrin 1,798 8 01/24/05 02:05 PM
by delta9
* windows/linux user can ya help me? DF2K 1,279 5 06/10/03 10:42 AM
by T0aD
* java problems Idiot 2,123 14 04/25/06 08:39 PM
by Idiot
* Ubuntu Linux shymanta 946 7 02/11/08 09:59 PM
by entiformatie
* Teaming up Linux with Windows ; making an external harddrive ; hooking up 2 computers AsanteM 878 1 04/15/06 01:47 PM
by Vvellum
* Trouble dual booting XP/Linux *update* Aiko Aiko 2,099 13 01/27/06 02:57 AM
by Vvellum
* Linux Music Player supra 515 6 12/24/08 08:15 PM
by HELLA_TIGHT
* best linux dist for a dinosaur puter ChromeCrow 934 10 12/19/05 12:00 AM
by Vvellum

Extra information
You cannot start new topics / You cannot reply to topics
HTML is disabled / BBCode is enabled
Moderator: trendal, automan, Northerner
1,143 topic views. 0 members, 2 guests and 1 web crawlers are browsing this forum.
[ Show Images Only | Sort by Score | Print Topic ]
Search this thread:

Copyright 1997-2026 Mind Media. Some rights reserved.

Generated in 0.027 seconds spending 0.005 seconds on 16 queries.