Welcome to my blog, hope you enjoy reading
RSS

Saturday, 21 July 2012

How to install plugin in eclipse follow this link

How to install plugin in eclipse follow this link

Step1: In eclipse open
             Help-->Install New Software

Share

Android Install in Eclipse



Step1: download the eclipse from the following link
                                eclipse download
Step2: unZip the elipse and install the following plugin in the eclipse
            ADT- https://dl-ssl.google.com/andr
oid/eclipse/(required)
            
Share

Wednesday, 18 July 2012

How to insert multiple languages in database


How to insert multiple languages in database


1. create database with the default character set as utf8
example:

CREATE DATABASE `database name ` DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;
2.create table.
example:
create table `telugunames` (name varchar(100))
3. insert data.
example:
INSERT INTO `japanese`.`telugunames` (`name`) VALUES ('అప్పజి');
Share

Monday, 9 July 2012

SWT Browser requires a compatible xulrunner version installed


error:
GWT Designer uses the SWT Browser widget to render the GWT UI. SWT
Browser requires a compatible xulrunner version installed: it should
be 1.9.1.x or 1.9.2.x version and meet the current environment
architecture. See http://www.eclipse.org/swt/faq.php#whatisbrowser and
related topics for more information. 

solution:

1 - Download eclipse from eclipse.org. 
http://www.eclipse.org/downloads/packages/eclipse-classic-372/indigosr2
(DO NOT USE UBUNTU REPOSITORY.)

Install GWT according to the guide:
https://developers.google.com/eclipse/docs/download

2 - After installation, start Eclipse and disable the option
 "Use webkit rendering window for GWT UI if available", at Window, Preferences, Window Builder,
 GWT

3 - Install the following two libraries in the following order, which will replace the webkit: 
sudo dpkg-i packagename.deb

download and install:
https://docs.google.com/file/d/0B9KWSpNWygKAYW1yeDhBa2xaRlU/edit# 
(filename: libhunspell-1.2-0_1.2.11-1ubuntu1_i386.deb ) 
 
download and install:
http://depositfiles.com/files/eusg1y75c 
(filename:  xulrunner-1.9.2-ubuntu-i386.deb ) 
(to install double click on the file)

 Or look for xulrunner!

4 - Restart eclipse. GWT Designer is already running again.


advanced-suggest-select-box


Share

Thursday, 5 July 2012

GWT plugins adding in eclipse

GWT plugins adding in eclipse

1.download the eclipse from eclipse link

2.open help--->install new softwares..

ADT- https://dl-ssl.google.com/android/eclipse/(required)

indigo update- http://download.eclipse.org/releases/indigo(required)

gwt- http://dl.google.com/eclipse/plugin/3.7(required)

GWT Designer Update Site - http://dl.google.com/eclipse/inst/d2gwt/latest/3.7 (required)

svn- http://subclipse.tigris.org/update(for svn)
Share

Wednesday, 4 July 2012

Running multiple tomcat servers


Running multiple tomcat servers


Download tomcat, and unpack it twice, into two separate directories. Edit the conf/server.xml file in one of the copies in the following way: Change the port on the root Server element to a different number (e.g. 8006) Change the port attributes on the Connector elements to a different number (e.g. 8010 instead of 8009, 8081 instead of 8080 and 8444 instead of 8443) You should now be able to run the bin/startup.sh scripts in both installations to get two running tomcats. Connect using port 8080 and install the basic application services, and then connect using port 8081 to install the service provider management services. Source link. Some other useful links are given linkslinks.
Share

Tuesday, 3 July 2012

Configuring Tomcat 6 with eclipse in ubuntu


Configuring Tomcat 6 with eclipse in ubuntu

open terminal and type this
sudo apt-get install tomcat6(not required if already installed)

cd /usr/share/tomcat6
sudo ln -s /var/lib/tomcat6/conf conf
sudo ln -s /etc/tomcat6/policy.d/03catalina.policy conf/catalina.policy
sudo ln -s /var/log/tomcat6 log
sudo chmod -R 777 /usr/share/tomcat6/conf
restart servet
then configure the server
Share

Monday, 25 June 2012

How to format a USB or external drive?

Share

Monday, 18 June 2012

creating the hosts in the tomcat server in ubuntu

creating the hosts in the tomcat server in Ubuntu


step1:  In the /var/lib/tomcat6/conf/Catalina path we create folder with hostname 
           example: 'restarant'


step2: In that folder we create the file with name  'ROOT.xml'
           /var/lib/tomcat6/conf/Catalina/restaurant/ROOT.xml


step3: put following code in the ROOT.xml file


           <?xml version='1.0' encoding='utf-8'?>
           <Context displayName="hostname" docBase="/var/lib/tomcat6/webapps/warfilename/"                                                path=""  workDir="work/Catalina/hostname/_">
          </Context>

            example :
           <?xml version='1.0' encoding='utf-8'?>
           <Context displayName="restaurant" docBase="/var/lib/tomcat6/webapps/Restaurant/" path=""
           workDir="work/Catalina/restaurant/_">
          </Context>

step4:  In the /var/lib/tomcat6/conf/server.xml file  host tag(<Host>) data will be re paste in the file after close the host tag(</Host> and change the data in the 
example:

<Host name="hostname"  appBase="webapps/warfilename/"
            unpackWARs="true" autoDeploy="true"
            xmlValidation="false" xmlNamespaceAware="false">

        <!-- SingleSignOn valve, share authentication between web applications
             Documentation at: /docs/config/valve.html -->
        <!--
        <Valve className="org.apache.catalina.authenticator.SingleSignOn" />
        -->

        <!-- Access log processes all example.
             Documentation at: /docs/config/valve.html -->
        <!--
        <Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs"
               prefix="localhost_access_log." suffix=".txt" pattern="common" resolveHosts="false"/>
        -->

      </Host>

step5: in Filesystem/etc/hosts file add the hostname and localhost port like
example:  127.0.0.1 restaurant


step6: restart the server

step7: In browser enter url like
example:  http://restaurant:8080/(hostname:portnumber)
Share

Tuesday, 5 June 2012

database and java


Changing the engine in the all tables of the database progrmetically for mysql



                     Connection connection = null;
   try{
                     //for getting the connecion  
    Class.forName("com.mysql.jdbc.Driver");  
    connection =                                                       DriverManager.getConnection("jdbc:mysql://localhost:3306/hydhouse","root","password");
         try{          
           // Create statement object
           Statement stmt = connection.createStatement();

                            //for getting the tables from that database
           DatabaseMetaData dbm = connection.getMetaData();
 String[] types = {"TABLE"};
 ResultSet rs = dbm.getTables(null,null,"%",types);
 while (rs.next()){
 String table = rs.getString("TABLE_NAME");

//for change the engine in mysql
 String sql="ALTER TABLE "+table+" ENGINE = innodb ";
 int i=stmt.executeUpdate(sql);
 System.out.println(i);
 }
       }
       catch (SQLException s){
        connection.close();
         System.out.println("SQL Exception " + s);
       }



Share