Question: i am new to titanium development.i am developing ToDo application using Titanium for learning purpose.i able to display the data from database and generate tableViewRow successfully but i am stuck in one phase that i unable to display button in each row.i did R&D for it but i cant get solution.here is my code for display buttons in each row of tableViewRow it display all records from database in each row but not buttons.it shows [object TableViewRow] in each row instead of button. so please help me to solve the issue

```
![Titanium.UI.setBackgroundColor('black');

var win = Titanium.UI.createWindow
({  
    title:'Tab 1',
    backgroundColor:'#fff'

});

var db = Titanium.Database.install('/mydata/ToDoDB', 'ToDoDB');
    var rows = db.execute('SELECT * FROM task');
    var data1=[];

    while(rows.isValidRow())
        {

         var rowview=Titanium.UI.createTableViewRow();

         var btn=Titanium.UI.createButton
         ({
                right:'20dp',
                width:'60dp',
                height:'40dp',
                title:'Show'

         });

         rowview.add(btn);

         var tt=rows.fieldByName('title');
         var cc=rows.fieldByName('content');
         //data1.push({title:rows.fieldByName('title')},{title:rows.fieldByName('content')},{title:rowview});
         data1.push({title:tt+cc+rowview});

         rows.next();
         //rowview.add(btn);
        };
        rows.close();
    var yourTable = Ti.UI.createTableView
    ({
        width : Ti.UI.FILL,
        height : Ti.UI.FILL,
        data: data1
    });

    db.close();
    win.add(yourTable);

    win.open();

```

Answer: 
You reference a folder on the classpath and expect it to load all jars in it. That is not how the classpath works, you need to reference specific jars (and normally you should **NOT** put third party jars inside the JDK folder). 

It is also important to know that the `CLASSPATH` is usually ignored by java applications, except for the most basic use cases.

You can do what you try to achieve by doing:

```
java -cp <path-to>\ojdbc7.jar oracle.jdbc.OracleDriver

```

This will fail btw because `OracleDriver` has no `public static void main(String[] args)` method and therefor cannot be run like this. The normal way to use a JDBC driver is to have the driver on the application classpath, and simply specify the right driver URL. JDBC 4.0 (Java 6) or higher compliant drivers will be automatically loaded from the classpath (as specified with `-cp`, the `Class-Path` manifest entry etc).

On an unrelated note, `oracle.jdbc.driver.OracleDriver` is considered deprecated, use `oracle.jdbc.OracleDriver` instead, see [Difference between Oracle jdbc driver classes?](https://stackoverflow.com/questions/6202653/difference-between-oracle-jdbc-driver-classes)
I also had same problem and this is what i did
I extracted ojdbc5.jar and then i copied oracle folder in extracted ojdbc5.jar and then pasted in current location where i wrote jdbc program ( not mentioning the directory as it differs from programmer to programmer), then used import oracle.jdbc.\*; statement in my jdbc program as oracle.jdbc has OracleDriver in it.
Rest of the program is same