The following is how I solved my problem. openproj-1.4-2 works with java version 1.6 (JDK6) and not version 1.7. (JDK7). I have both installed. I made openproj-1.4-2 work successfully.
Wassalam.
WRY
CHECK JAVA VERSION (INITIALLY)
===========================================================
wruslan@wruslan-hpubuntu-rtai:~$ java -version
java version "1.7.0_10"
Java(TM) SE Runtime Environment (build 1.7.0_10-b18)
Java HotSpot(TM) Server VM (build 23.6-b04, mixed mode)
wruslan@wruslan-hpubuntu-rtai:~$ which java
/usr/bin/java
wruslan@wruslan-hpubuntu-rtai:~$
EXISTING JDK7 LIBRARIES.
===========================================================
/usr/lib/jvm/jdk1.7.0/bin
/usr/lib/jvm/jdk1.7.0/jre
Need to install JDK6 because openproj_1.4-2 does not run with JDK7 above.
Cannot remove or overwrite JDK7 because other new applications depend on it.
So, we install JDK separately from JDK7 on the same computer. Ha ha ha.
INSTALL JDK6 (/usr/java/jdk1.6.0_29/bin) USING jdk-6u29-linux-i586.bin (downloaded)
===========================================================
wruslan@wruslan-hpubuntu-rtai:~/Downloads$ cd jdk-6u29-ins/
wruslan@wruslan-hpubuntu-rtai:~/Downloads/jdk-6u29-ins$ ls -l
total 83156
-rw-rw-r-- 1 wruslan wruslan 85146345 2011-10-20 00:56 jdk-6u29-linux-i586.bin
wruslan@wruslan-hpubuntu-rtai:~/Downloads/jdk-6u29-ins$ chmod 755 jdk-6u29-linux-i586.bin
wruslan@wruslan-hpubuntu-rtai:~/Downloads/jdk-6u29-ins$ ls -l
total 83156
-rwxr-xr-x 1 wruslan wruslan 85146345 2011-10-20 00:56 jdk-6u29-linux-i586.bin
EXTRACT ANSD INSTRALL JDK6
===========================================================
wruslan@wruslan-hpubuntu-rtai:~/Downloads/jdk-6u29-ins$ sudo ./jdk-6u29-linux-i586.bin
Unpacking...
Checksumming...
Extracting...
UnZipSFX 5.50 of 17 February 2002, by Info-ZIP (Zip-...@lists.wku.edu).
creating: jdk1.6.0_29/
creating: jdk1.6.0_29/jre/
creating: jdk1.6.0_29/jre/bin/
inflating: jdk1.6.0_29/jre/bin/java
inflating: jdk1.6.0_29/jre/bin/keytool
inflating: jdk1.6.0_29/jre/bin/policytool
inflating: jdk1.6.0_29/jre/bin/rmiregistry
....
....
root@wruslan-hpubuntu-rtai:/usr/java# echo $PATH
/usr/hitech/picc/9.83/bin:/opt/microchip/xc8/v1.12/bin:/opt/microchip/xc16/v1.11/bin:/opt/microchip/xc32/v1.21/bin:/usr/sparkgpl/bin:/usr/gnat/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/lib/jvm/jdk1.7.0/bin:/usr/lib/jvm/jdk1.7.0/jre/bin:/usr/bin/pkg-config:/usr/realtime-2.6.32-122-rtai/bin:/usr/scilab-5.3.3/bin
ADD PATH TO JDK6
===========================================================
root@wruslan-hpubuntu-rtai:/usr/java# PATH=/usr/java/jdk1.6.0_29/bin:$PATH
root@wruslan-hpubuntu-rtai:/usr/java# export PATH
root@wruslan-hpubuntu-rtai:/usr/java# echo $PATH
/usr/java/jdk1.6.0_29/bin:/usr/hitech/picc/9.83/bin:/opt/microchip/xc8/v1.12/bin:/opt/microchip/xc16/v1.11/bin:/opt/microchip/xc32/v1.21/bin:/usr/sparkgpl/bin:/usr/gnat/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/lib/jvm/jdk1.7.0/bin:/usr/lib/jvm/jdk1.7.0/jre/bin:/usr/bin/pkg-config:/usr/realtime-2.6.32-122-rtai/bin:/usr/scilab-5.3.3/bin
CHECK JAVA VERSION (DEFAULT)
===========================================================
root@wruslan-hpubuntu-rtai:/usr/java# java -version
java version "1.6.0_29"
Java(TM) SE Runtime Environment (build 1.6.0_29-b11)
Java HotSpot(TM) Server VM (build 20.4-b02, mixed mode)
root@wruslan-hpubuntu-rtai:/usr/java#
RUN OPENPROJ APPLICATION
===========================================================
root@wruslan-hpubuntu-rtai:/usr/java# openproj
Java auto-detection...
Checking java
Java version: 1.6.0_29 OK
Java implementation: Java(TM) OK
Java OK
Jun 11, 2013 10:55:50 AM java.util.prefs.FileSystemPreferences$2 run
INFO: Created user preferences directory.
....
NOW OPENPROJ GUI OPENS UP. IT IS RUNNING.
===========================================================
TEST THE TWO(2) JAVA VERSIONS. BOTH ARE ON THE SAME MACHINE.
root@wruslan-hpubuntu-rtai:/usr/java# /usr/lib/jvm/jdk1.7.0_10/bin/java -version
java version "1.7.0_10"
Java(TM) SE Runtime Environment (build 1.7.0_10-b18)
Java HotSpot(TM) Server VM (build 23.6-b04, mixed mode)
root@wruslan-hpubuntu-rtai:/usr/java# /usr/java/jdk1.6.0_29/bin/java -version
java version "1.6.0_29"
Java(TM) SE Runtime Environment (build 1.6.0_29-b11)
Java HotSpot(TM) Server VM (build 20.4-b02, mixed mode)
root@wruslan-hpubuntu-rtai:/usr/java#
===========================================================
ALHAMDULILLAH 3 TIMES.
===========================================================
--
WASSALAM
wruslan.hahaha
Microsoft Word Version
Return to Software Engineering Fundamentals (SEF9MMUWRY)
Previous Topic: 14 Installation of OpenProj for Tutorial 02 (TUE 11 JUN 2013)
Next Topic: 16 Tutorial 02 SESSION Project Management + OpenProj (TUE 11 JUN 2013)
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment