Jump to content

Java program installation

Recommended Posts

Can someone give me the proper use of the command line to install java programs. I believe I have the latest jave as I recently downloaded and installed it from their website. This is what I get when I run java -version


openjdk version "1.7.0-internal"

OpenJDK Runtime Environment (build 1.7.0-internal-b24)

OpenJDK Client VM (build 1.7.0-b24, mixed mode)

[ml@localhost ~]$


Any help would be appreciated. I am running 2008.1.





[moved from Installing Mandriva by spinynorman - welcome aboard :)]

Link to comment
Share on other sites

There isn't a single way to install a java program, and some you don't even have to "install" at all. Some you can just install like any other rpm from the "add software" tool in Mandriva.


Some java programs come with an installer, some don't. If you tell us which java program you'd like to install, we can try to help.


But it looks like you have a java runtime installed, so you can use that to run any java program you've downloaded. Usually this is done with the command

java ClassName

where "ClassName" is the name of the class you want to launch. Or if the program is packed in a jar file, you can do

java -jar myjavaprogram.jar

But usually any program you install via rpm will have a shell script or something to launch it, just look at each program's instructions.

Link to comment
Share on other sites

IIRC in some distro's OpenJDK is IcedTea

I think he is using Sun's odd quasi-open (and half baked) java implementation:


AFAIK it still has issues, I'd rather use the non-gpl (but still free) Java 1.6 update 7.

Anyway: How do you try to run your jars? The proper usage is like

java -jar foo.jar

(replace foo with the actual applet name).

Edited by scarecrow
Link to comment
Share on other sites

I don't know what this OpenJDK is, but were I you, I'd use either Sun JDK 1.6 or "IcedTea" 1.7.



In Nov 2006 Sun opensourced the parts of Java which was in its property that's OpenJDK. After this the Java community started to rewrite the missing parts. A year ago Sun and RedHat created the IcedTea project which was aimed to create a GPLv2 only OpenJDK which passes the TCK test created by Sun.

RedHat announced on the last RedHat summit conference that it happened. So from now on Java = OpenJDK.

Meanwhile work hasn't stopped. IcedTea7 is on the way which will be the same as OpenJDK7 on the source level.


This means to me that OpenJDK = stable version and IcedTea = development version.

Link to comment
Share on other sites

This is just to clarify that the OP is using IcedTea:

[greg@apus ~]$ rpm -qa |grep java
[greg@apus ~]$ java -version
openjdk version "1.7.0-internal"
OpenJDK Runtime Environment (build 1.7.0-internal-b24)
OpenJDK Client VM (build 1.7.0-b24, mixed mode)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...