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)
Putting a directory on the classpath doesn't put all the jar files within that directory on the classpath. It's not clear why you've copied the Oracle jar file into your Java installation directory - I'd recommend *not* doing that - but you should just list the location explicitly. For example, if you've copied it into the `lib` directory relative to your application, you could use:

```
java -cp lib\ojdbc7.jar;. your.class.Name

```

You *can* use `*` in a `-cp` command line argument to find all jar files, e.g.

```
java -cp lib\*;. your.class.Name

```

or you *could* copy it into an "extensions" directory - but I think it's clearer to be explicit.