Sep 09 2010

Aghreni Technologies Educational Services – Trainings on Open Source Technologies ( Perl, Php, Java, Ruby, Linux, Mysql)

Published by under Uncategorized

 Aghreni offers skill enhancement courses in 

· PErL, PHP, Ruby & java/J2ee

· Unix/linux

· Mysql

· Web development

· User interface design

·  Veritas

· Usability engineering

· Project management

· Leadership

· Software development techniques

· Software testing techniques

Aghreni Technologies is an offshore provider of open source software, solutions, products and services.

No responses yet

Sep 04 2010

Accessing Ms Access Using Java

Published by under Uncategorized

Step by step guide:

1.Create a database in ms access and add a table

2.Add columns to the table.

3.Go to control panel->Administrative Tools

->JDBC-> System DSN

4.In System DSN tab click on add ,choose

Microsoft access driver ,then you will get a

dialog box opened ODBC Microsoft access setup

mention the data source name in it and in

databases click on select button and choose

your .mdb file that is created in step1.

5.Register the driver using

Class.forName(“sun.jdbc.odbc.JdbcOdbcDriver”);

6.Connect to the database

Connection con = DriverManager.getConnection

(URL,userid,password);

url=” Jdbc:Odbc:”

userid and password are empty in case of MS access.if it oracle default userid is “scott” password is “tiger”.

Ex: Connection con = DriverManager.getConnection

( “Jdbc:Odbc:msac”, “”,”");

Source Code

import java.sql.*;

import java.io.*;

class JdbcDemo1

{

Connection con;

Statement stmt;

ResultSet rs;

JdbcDemo1(){

try{

Class.forName(“sun.jdbc.odbc.JdbcOdbcDriver”);

con = DriverManager.getConnection( “Jdbc:Odbc:msac”, “”,”");

stmt = con.createStatement();

rs = stmt.executeQuery(“SELECT * FROM Table1″);

while (rs.next()) {

String x = rs.getString(“name”);

int s = rs.getInt(“age”);

System.out.println(“x:”+x+”s”+s);

}

}catch(SQLException e){

System.out.println(“Hello World!”+e);

}catch(ClassNotFoundException e){

System.out.println(“purni”+e);

}

}

}

class JdbcDemo

{

public static void main(String args[]){

new JdbcDemo1();

}

}

Twinkle likes to do blogging on Programming in
JAVA and How to do Blogging.You can also check out my new website on Electronic Voting System

One response so far

Sep 04 2010

Durak 2 Rus

Durak 2 Rus

This is a game similar to playing cards.

In the best settings for four people to play in his team.

In this game there is a pack of 36 cards and comprises a variety of attack and defense.

Support with LCD resolution 240×320 pixels.

go to Download »

No responses yet







Search for java games :