Install Oracle Java JDK on CentOS 6.4

1. Download Oracle Java JDK  7u45 32-bit/64-bit RPM packages
#http://www.oracle.com/technetwork/java/javase/downloads/index.html. Select rpm

2.  Installation
2.1) rpm -Uvh jdk-7u45-linux-i586.rpm
2.2) Install Alternatives
alternatives –install /usr/bin/java java /usr/java/latest/jre/bin/java 200000
alternatives –install /usr/bin/javaws javaws /usr/java/latest/jre/bin/javaws 200000
alternatives –install /usr/bin/javac javac /usr/java/latest/bin/javac 200000
alternatives –install /usr/bin/jar jar /usr/java/latest/bin/jar 200000
2.3) More Alternatives 🙂
alternatives –install /usr/bin/java java /usr/java/jdk1.7.0_45/jre/bin/java 200000
alternatives –install /usr/bin/javaws javaws /usr/java/jdk1.7.0_45/jre/bin/javaws 200000
alternatives –install /usr/bin/javac javac /usr/java/jdk1.7.0_45/bin/javac 200000
alternatives –install /usr/bin/jar jar /usr/java/jdk1.7.0_45/bin/jar 200000
2.4)  Install new Java as alternative
alternatives –install /usr/bin/java java /usr/java/latest/bin/java 200000
alternatives –install /usr/bin/javaws javaws /usr/java/latest/bin/javaws 200000
3) Sanity check
java -version
java version “1.7.0_45”
Java(TM) SE Runtime Environment (build 1.7.0_45-b18)
Java HotSpot(TM) Client VM (build 24.45-b08, mixed mode, sharing)

[Solved] j2sdk-1_4_2_05-linux-i586.bin tail: cannot open `+486′ for reading: No such file or directory ERROR

Solution

1. rm the old binary installer

rm j2sdk-1_4_2_05-linux-i586.bin

2. Run this Export

export _POSIX2_VERSION=199209

3. Download installer again and execute

./j2sdk-1_4_2_05-linux-i586.bin

I was able to get it working by following above steps. Let me know how it went for you.

Steps to Install SchemaSpy 5.0 on Ubuntu 11.10

Step 1: Download dependencies :
1) Graphviz – Instructions Here
2) ConnectorJ              –  Instructions Here
3) Java – JDK, JRE      –  Instructions Here

Step 2: Download SchemaSpy 5.0

wget “http://sourceforge.net/projects/schemaspy/files/schemaspy/SchemaSpy%205.0.0/schemaSpy_5.0.0.jar/download” -O schemaSpy_5.0.0.jar

Step 3: Run schemaSpy


$ java -jar schemaSpy_5.0.0.jar

-t mysql  -o output_folder

-host localhost

-db DB_Name

-u USER

-p PASSWORD

-dp Connector-J/mysql-connector-java-5.0.8/mysql-connector-java-5.0.8-bin.jar

 

/mysql-connector-java-5.0.8/mysql-connector-java-5.0.8-bin.jar
Using database properties:
  [schemaSpy_5.0.0.jar]/net/sourceforge/schemaspy/dbTypes/mysql.properties
Gathering schema details.....................................(7sec)
Writing/graphing summary............(1sec)
Writing/diagramming details..................................(1sec)
Wrote relationship details of 34 tables/views to directory
'output_folder' in 10 seconds.
View the results by opening output_folder/index.html
Step 4: Create a symlink in www directory
cd /var/www
sudo ln -s /path/to/output_folder DB_Name

Remember apache must be able to follow symlinks and must have atleast read+execute perms.

Step 5: Point your browser to : localhost/DB_Name

…and you should see what you DB looks like schema wise.


References: