Hi Guys,
I need to install new java version
on Linux system 64 bit in different directory.
I need to install this version:-
Code:
rpm -qip jdk-7u51-linux-x64.rpm
Name : jdk Relocations: /usr/java
Version : 1.7.0_51 Vendor: Oracle Corporation
Release : fcs Build Date: Thu 19 Dec 2013 04:30:24 AM CET
Install Date: (not installed) Build Host: jdk7-lin-amd64
Group : Development/Tools Source RPM: jdk-1.7.0_51-fcs.src.rpm
Size : 201995347 License: http://java.com/license
Signature : (none)
Packager : Java Software <jre-comments@java.sun.com>
URL : URL_REF
Summary : Java Platform Standard Edition Development Kit
Description :
The Java Platform Standard Edition Development Kit (JDK) includes both
the runtime environment (Java virtual machine, the Java platform classes
and supporting files) and development tools (compilers, debuggers,
tool libraries and other tools).
The JDK is a development environment for building applications, applets
and components that can be deployed with the Java Platform Standard
Edition Runtime Environment.
[mahadis@amsledi301 ~]$ rpm --prefix=/usr/newjava/ jdk-7u51-linux-x64.rpm
rpm: --prefix may only be used when installing new packages
I have created separate folder for its installation:
/usr/newjava
but when I try to install it says:
Code:
rpm --prefix=/usr/newjava/ jdk-7u51-linux-x64.rpm
rpm: --prefix may only be used when installing new packages
current version of java is:-
Code:
> java -version
java version "1.6.0_17"
Java(TM) SE Runtime Environment (build 1.6.0_17-b04)
Java HotSpot(TM) 64-Bit Server VM (build 14.3-b01, mixed mode)
Please advise me as how to installed already installed package into diffrent folder.
Thanks a lot.