shappell Newbie Poster

What jar file am I supposed to add here. I am not sure what they mean by jar file required by your jdbc driver can someone help me

In the “JAR Files” tab, click on “Add…” to add the JAR file required by your JDBC driver. Then go to the “Driver” tab to confirm that the list of drivers includes the new drivers added. You may also want to assign a display name and URL template for the new drivers in this tab.

shappell Newbie Poster

I am trying to convert and sucessfully run my pettycash program in throughthe eclipse IDE in Java. First Ill show where Im at I am lost afterhere then ill show the petty cash program. I am not sure if I am on the right track and dont understand how to import the date and to make the information run in the program

[B][COLOR=#7f0055]package[/B][/COLOR][COLOR=#000000] org.eclipse.lifegame.domain;[/COLOR]
[COLOR=#000000][/COLOR]
[B][COLOR=#7f0055]public[/B][/COLOR][COLOR=#000000] [/COLOR][B][COLOR=#7f0055]class[/B][/COLOR][COLOR=#000000] PettyCash {[/COLOR]
[COLOR=#000000][/COLOR]
[B][COLOR=#7f0055]private[/B][/COLOR] [B][COLOR=#7f0055]static[/B][/COLOR] [B][COLOR=#7f0055]final[/B][/COLOR] String [I][COLOR=#0000c0]self[/I][/COLOR] = [B][COLOR=#7f0055]null[/B][/COLOR];
[B][COLOR=#7f0055]private[/B][/COLOR] [B][COLOR=#7f0055]static[/B][/COLOR] [B][COLOR=#7f0055]final[/B][/COLOR] String [I][COLOR=#0000c0]initial[/I][/COLOR] = [B][COLOR=#7f0055]null[/B][/COLOR];
[B][COLOR=#7f0055]private[/B][/COLOR] [B][COLOR=#7f0055]static[/B][/COLOR] Object [I][COLOR=#0000c0]amt[/I][/COLOR];

[B][COLOR=#7f0055]public[/B][/COLOR] PettyCash() {
}
[B][COLOR=#7f0055]private[/B][/COLOR] [B][COLOR=#7f0055]static[/B][/COLOR] [B][COLOR=#7f0055]void[/B][/COLOR] init (String self2, Object amt2){
[I][COLOR=#0000c0]self[/I][/COLOR].balance = [I][COLOR=#0000c0]initial[/I][/COLOR];
}
[B][COLOR=#7f0055]private[/B][/COLOR] [B][COLOR=#7f0055]static[/B][/COLOR] [B][COLOR=#7f0055]void[/B][/COLOR] deposit (String self2, Object amt2){
[I][COLOR=#0000c0]self[/I][/COLOR].balance = [I][COLOR=#0000c0]self[/I][/COLOR].balance + [I][COLOR=#0000c0]amt[/I][/COLOR];};

[B][COLOR=#7f0055]private[/B][/COLOR] [B][COLOR=#7f0055]static[/B][/COLOR] [B][COLOR=#7f0055]void[/B][/COLOR] withdraw(String self2, Object amt2) {
self.balance = self.balance - amt;
[B][COLOR=#7f0055]if[/B][/COLOR] (self.balance < 0)
{System.out.println ([COLOR=#2a00ff]"Not enough here"[/COLOR]);}
[B][COLOR=#7f0055]else[/B][/COLOR] {
[B][COLOR=#7f0055]return[/B][/COLOR] self.balance}

[B][COLOR=#7f0055]private[/B][/COLOR] [B][COLOR=#7f0055]static[/B][/COLOR] [B][COLOR=#7f0055]void[/B][/COLOR] getbalance(String self2){
[B][COLOR=#7f0055]return[/B][/COLOR] [I][COLOR=#0000c0]self[/I][/COLOR].balance;}
}

[code=python]

!/usr/bin/python
Filename: petty cash.py

from datetime import date
import string
now = date.today

class Account:
def init(self, initial):
'''Initializes the account data.'''
self.balance = initial
print ' (Initializing; balance is %s) ' % self.balance
def deposit(self, amt):
'''Deposit amt into account'''
self.balance = self.balance + amt
print " (Depositing %s; new balance is %s) " % (amt, self.balance)

When this deposit is created, it
     # adds to the balance
     self.balance + amt
 def withdraw(self,amt):
     '''Withraw amt from account'''
     print " (Withdrawing %s; new balance is %s) " % (amt, self.balance)
     # When this deposit is created, it ...
shappell Newbie Poster

I am trying to compile the following code. I keep getting thefollowing linker errors. I am getting about 28n of these errors all having the linker at the begining

[Linker error] undefined reference to SQLGetDiagField@28' [Linker error] undefined reference toSQLGetDiagRec@32'

[code=c]

include
include
include
include
include

void print_error( SQLSMALLINT htype, / A handle type identifier /
SQLHANDLE hndl, / A handle /
SQLRETURN frc, / Return code to be included with error msg /
int line, / Used for output message, indcate where /
char file / the error was reported from */
) {

SQLCHAR     buffer[SQL_MAX_MESSAGE_LENGTH + 1] ;
SQLCHAR     sqlstate[SQL_SQLSTATE_SIZE + 1] ;
SQLINTEGER  sqlcode ;
SQLSMALLINT length, i ;
SQLINTEGER NumRecords;

printf( ">--- ERROR -- RC = %d Reported from %s, line %d ------------\n",
        frc,
        file,
        line
      ) ;
SQLGetDiagField(htype, hndl, 0,SQL_DIAG_NUMBER, &NumRecords, SQL_IS_INTEGER,NULL);
printf("Total Number of diagnostic records: %d\n",NumRecords); 
i = 1 ;
while ( SQLGetDiagRec( htype,
                       hndl,
                       i,
                       sqlstate,
                       &sqlcode,
                       buffer,
                       SQL_MAX_MESSAGE_LENGTH + 1,
                       &length
                     ) == SQL_SUCCESS ) {
   printf( "         SQLSTATE: %s\n", sqlstate ) ;
   printf( "Native Error Code: %ld\n", sqlcode ) ;
   printf( "%s \n", buffer ) ;
   i++ ;
}

printf( ">--------------------------------------------------\n" ) ;

}

int main()
{
// Declare The Local Memory Variables
SQLHANDLE EnvHandle = 0;
SQLHANDLE ConHandle = 0;
SQLHANDLE StmtHandle = 0;
SQLRETURN RetCode = SQL_SUCCESS;
SQLCHAR SQLStmt[255];
SQLCHAR JobType[10];
SQLCHAR EmpNo[10];
SQLCHAR LastName[25];
SQLCHAR FirstName[15];
int EmpId=1002;

/**
 * INITIALIZATION 
 **/
// Allocate An Environment Handle
SQLAllocHandle(SQL_HANDLE_ENV, SQL_NULL_HANDLE,&EnvHandle);

// ...