[Java] Java Compiling & Execution in Shell

I just created this DB transfering class from Oracle to Mysql and tried to run it under linux, but had hard time to compile & run it.

But I successfully did it. And the code works fine too.


javac -classpath /var/www/java_libs/mysql-connector-java-3.1.7-bin.jar:/var/www/java_libs/v9_ojdbc14.jar:/var/www/import importdb/Import.java

java -classpath /var/www/java_libs/mysql-connector-java-3.1.7-bin.jar:/var/www/java_libs/v9_ojdbc14.jar:/var/www/import importdb/Import

The main class is Import and it is a part of package ImportDB.

/var/www/java_libs/mysql-connector-java-3.1.7-bin.jar : MySQL lib downloaded from MySQL website

/var/www/java_libs/v9_ojdbc14.jar : Oracle Lib downloaded from Oracle website

Note that the /var/www/import in the classpath. This is where importdb folder is located. It is necessary. Without it, you will get Exception in thread “main” java.lang.NoClassDefFoundError: importdb/Import.

Read More

[drupal] Problem in ie6 selecting text

I wanted to use drupal theme friendselectric, and I really wanted visitors to copy texts from my site if necessary.

During the initial web search I found that by inserting XML tag in the first line of themes/friendselectric/page.tpl.php , selecting text supposed to work.

"; ?>

In the first look, it does appear solving the problem. However other layout design came out incorrectly.

So I spent some more time with the themes/friendselectric/style.css

And Luckily, I think I finally found the solution!!!!

My solution is commenting below “position:relative” line.
Do not use above XML tag, but instead open themes/friendselectric/style.css
and edit content-wrap entry commeting “position: relative;”


#content-wrap {
float: left;
/* position: relative; */
}

It does look OK & I am able to select the body text! (At least content body)

Read More