Jump to content
  • Announcements

    • spinynorman

      Mandriva Official Documentation

      Official documentation for extant versions of Mandriva can be found at doc.mandriva.com.   Documentation for the latest release may take some time to appear there. You can install all the manuals from the main repository if you have Mandriva installed - files are prefixed mandriva-doc.
    • paul

      Forum software upgrade   10/29/17

      So you may have noticed the forum software has upgraded !!!
      A few things that have changed. We no longer have community blogs (was never really used) We no longer have a portal page.
      We can discuss this, and decide whether it is needed (It costs money) See this thread: Here
dnr01

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.

 

Thanks

 

 

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

Share this post


Link to post
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.

Share this post


Link to post
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.

 

Yves.

Share this post


Link to post
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:

http://openjdk.java.net/

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

Share this post


Link to post
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.

 

Yves.

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.

Share this post


Link to post
Share on other sites

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

[greg@apus ~]$ rpm -qa |grep java
timezone-java-2008c-1.5mdv2008.1
java-1.7.0-icedtea-1.7.0.0-24.614.2mdv2008.1
openoffice.org-java-common-2.4.0.4-2mdv2008.1
java-1.7.0-icedtea-plugin-1.7.0.0-24.614.2mdv2008.1
java-access-bridge-1.22.0-0.0.1mdv2008.1
[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)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×