Pls Help me run bank java application

hi i am having a error running this banking application "Bank_Application_System"
the application is a banking system where customers can withdraw and deposit money and other functions. I downloaded it from [DOWNLOADED BANK JAVA APP|http://www.fullinterview.com/final-year-projects/article/bank_application_system-java-engineering-project-download-15509.html] But when i run it in netbeans it comes up with a error in the class Display2 saying there is a problem with "ResultsModel model;" saying it cannot find symbol also "import java.io.*;" says it is a unused import. Can somone help me pls
package bankapplication2;
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
import java.sql.*;
import java.io.*;
public class Display2 extends JFrame //implements ActionListener
    private JLabel jlabel1;
    private JLabel jlabel2;
    private JLabel jlabel3;
    private JLabel jlabel4;
    private JLabel jlabel5;
    private JTextField NAME;
    private JTextField ACC;
    private JTextField DATE;
    private JTextField ADD;
    private JTextField AGE;
    private JTextField BALANCE;
    private JButton jbutton;
    private JPanel jpanel1;
    private JPanel jpanel2;
    private JPanel jpanel3;
    JLabel command=new JLabel();
    JScrollPane resultsPane;
    Connection connection;
    Statement statement;
    ResultsModel model;
// more code and methods pls see link for fullcode
void displaydeposit(String s,int i)
        String driver = "sun.jdbc.odbc.JdbcOdbcDriver";
        String url = "jdbc:odbc:BankDatabase";
        setBounds(100,100,480,120);
        setResizable(false);
        setDefaultCloseOperation(DISPOSE_ON_CLOSE);
        JButton OK = new JButton("OK");
        JLabel lable=new JLabel("Customer Database");
        lable.setToolTipText("Customer Database");
        lable.setFont(new Font("SansSerif",Font.BOLD,18));
        JPanel lpanel=new JPanel();
        lable.setForeground(Color.red);
        lpanel.setBackground(Color.orange);
        lpanel.add(lable,"Center");
        lpanel.setToolTipText("Customer Database");
       Container contentPane=getContentPane();
       contentPane.add(lpanel,"North");
       getContentPane().add(OK,BorderLayout.SOUTH);
       try
            Class.forName(driver);
            connection=DriverManager.getConnection(url);
            statement=connection.createStatement();
            model=new ResultsModel();
            JTable table=new JTable(model);
            //table.setAutoResizeMode(JTable.AUTO_RESIZE_OFF);
            resultsPane=new JScrollPane(table);
            getContentPane().add(resultsPane,BorderLayout.CENTER);
            if(i==1)   
            model.setResultSet(statement.executeQuery("SELECT * from DepositInfo WHERE Account_Num = '"+s+"'"));
            else if(i==2)
            model.setResultSet(statement.executeQuery("SELECT * from WithdrawInfo WHERE Account_Num = '"+s+"'"));   
            OK.addActionListener(new ActionListener()
                public void actionPerformed(ActionEvent e)
                    MainMenu mm = new MainMenu();
                    mm.menu();
                    setVisible(false);
        catch(ClassNotFoundException cnf)
            System.out.println(cnf);
        catch(SQLException sql)
            System.out.println(sql);
        pack();
        setVisible(true);
    /*private JMenuItem makeMenuItem(String name)
        JMenuItem m=new JMenuItem(name);
        m.addActionListener(this);
        return m;
    public void actionPerformed(ActionEvent evt)
          String command=evt.getActionCommand();
          if(command.equals("OK"))
              setVisible(false);
                MainMenu mm=new MainMenu();
                mm.menu();
}

this is the error message when i run the application
init:
deps-clean:
Created dir: C:\Users\Documents\NetBeansProjects\BankApplication2\build
Updating property file: C:\Users\Documents\NetBeansProjects\BankApplication2\build\built-clean.properties
Deleting directory C:\Users\Documents\NetBeansProjects\BankApplication2\build
clean:
init:
deps-jar:
Created dir: C:\Users\\Documents\NetBeansProjects\BankApplication2\build
Updating property file: C:\Users\Documents\NetBeansProjects\BankApplication2\build\built-jar.properties
Created dir: C:\Users\Documents\NetBeansProjects\BankApplication2\build\classes
Created dir: C:\Users\Documents\NetBeansProjects\BankApplication2\build\empty
Compiling 8 source files to C:\Users\Documents\NetBeansProjects\BankApplication2\build\classes
C:\Users\arinze\Documents\NetBeansProjects\BankApplication2\src\bankapplication2\Display2.java:35: cannot find symbol
symbol  : class ResultsModel
location: class bankapplication2.Display2
    ResultsModel model;
C:\Users\arinze\Documents\NetBeansProjects\BankApplication2\src\bankapplication2\Display2.java:201: cannot find symbol
symbol  : class ResultsModel
location: class bankapplication2.Display2
            model=new ResultsModel();
2 errors
C:\Users\Documents\NetBeansProjects\BankApplication2\nbproject\build-impl.xml:413: The following error occurred while executing this line:
C:\Users\Documents\NetBeansProjects\BankApplication2\nbproject\build-impl.xml:199: Compile failed; see the compiler error output for details.
BUILD FAILED (total time: 2 seconds)

Similar Messages

  • I want to run a java application once only.Pl help.

    i want to run a java application once only.
    i.e. if some application is running on Win NT OS then that
    particular appliaction again should not run,but other java application can run.
    Pl help with some sample code.
    Thanx.

    Hi,
    I if understood your question then your requirement is to run the application when the system is on.If this is the case then you can configure your OS schdular to do the job an let the OS do it.You can
    write the java code for this but that will require to run on the OS layer,so better to configure the schedular setting.....But then for some other requirement it cannot be useful....
    think...
    regards vicky

  • Help required - running a Java program from the command line

    Hi,
    I have a small non-graphical Java application, packaged into a Jar file. My program relies on classes in another (external) Jar file.
    When I run the application from the IDE, everything works fine. However, when I try to run the application from the command line, I keep getting a NoClassDefFoundError for classes in the external jar.
    Both the application jar file and the external jar file are in my root directory (C:\).
    My command line call is as follows:
    java -cp c:MyExternalLib.jar -jar MyApp.jar
    Any help greatly appreciated.
    Thanks,
    Walter

    hi,
    set classpath=%classpath%;c:\myjar.jar;
    here i have specified myjar.jar file as an example u give ur location.after setting the classpath run ur java application.
    java mypgm
    this will solve ur problem
    regards,
    Ganesh

  • I am in the process of doing a Proof Of Concept / Evaluating products that can help us build a Java Application to Convert a PDF document to a Searchable PDF.   I wanted to check is there any simple JAVA API from Adobe to achive this ? Any direction in th

    I am in the process of doing a Proof Of Concept / Evaluating products that can help us build a Java Application to Convert a PDF document to a Searchable PDF. 
    I wanted to check is there any simple JAVA API from Adobe to achive this ? Any direction in this regard is greatly appreciated.@

    You can achieve this using LiveCycle PDF Generator JAVA API. You can find required code here:
    Adobe LiveCycle * Quick Start (SOAP mode): Converting a Microsoft Word document to a PDF document using the Java API
    In parameters:
    //Set createPDF2 parameter values
    String adobePDFSettings = "Standard";
    String securitySettings = "No Security";
    String fileTypeSettings = "Standard OCR";
    "Standard OCR" file type setting will run OCR on input pdf. In the code, instead of doc file provide a pdf file. Resultant pdf will be searchable PDF i.e OCRed PDF.
    Feel feel to ask any further questions.

  • Proble regarding running a java application

    hi guys
    i'm new to java environment .
    when i'm running a java application in a console ,
    it is not able to give output in other directories.it is working only in c:\j2sdk\bin.
    i think its the problem of setting classpath.
    can any one help me hw to run java program in any folder.

    You need to add that directory to your PATH. Follow
    the installation instructions more completely.Howdy sheriff Warnerja! How's life in the Schmuckville Home of the Ball-less? Any leads regarding the dot flasher case? I see you're on the PATH.
    Sheriff Warnerja of Schmuckville sensed an indecency plot.
    Here was someone exposing her private dot.
    He went on the trail,
    but of no avail:
    He didn't know where to find that intimate spot!

  • Running a Java Application in Windows

    Hi, Can anyone tell me how to run a Java Application in Windows? I've tried to run it using TextPad 4.5 but it gives me an exception saying it can't find a class defenition. I'm actually using IBM VisualAge for Java to develop the app and it runs fine INSIDE VisualAge and I've exported my compiled class files and so on, to run it stand-alone in Windows. I'm using some custom objects and inner classes, could these be the problem?

    YES! SUCCESS! I exported my class files from VAJ and along with the manifest file that it adds automatically. I opened up the jar with Winrar, extracted the manifest file and added the Main-class: header pointing to my executable and then put it back in the jar with winrar. And PRESTO! I can now run it with javaw! Thanks for your help peeps...

  • How do i run a java application in jdk1.3

    im trying to run a java application in jdk 1.3. I created it in jbuilder and i was trying to use the applet viewer.

    http://java.sun.com/j2se/1.3/docs/tooldocs/win32/appletviewer.html
    Jesper

  • How can I run a java-application on starting of Windows 2000

    How can I run a java-application without any user on starting of Windows 2000?
    For example, if the computer is restarted and nobody enter into it yet, my java-application should run anyway.
    How can I do that?

    Hi, you have to put it in a Windows service.
    To do this you have a program, Srvany.exe that allow to insert a .exe or .bat program in a Windows service.
    For example, i develop a program, TomcatGuardian and i put it in a service because i need to run it in a server without Administrator logged in.
    Regards,
    Ivan.

  • Running a java application from a java application

    hello ,
    please who knows how i can run a java application 'B' from inside another java application 'A' and get the error messages (if any) from the application 'B'

    how are you executing application B from application A? Please explain the java code you are using?

  • Running a Java application from a Swing GUI

    Hi,
    I was wondering if there is a simple way to run a Java application from a GUI built with Swing. I would presume there would be, because the Swing GUI is a Java application itself, technically.
    So, I want a user to click a button on my GUI, and then have another Java application, which is in the same package with the same classpaths and stuff, run.
    Is there a simple way to do this? Do any tutorials exist on this? If someone could give me any advice, or even a simple "yes this is possible, and it is simple" or "this is possible, but difficult" or "no this is not possible" answer, I would appreciate it. If anyone needs more information, I'll be happy to provide it.
    Thanks,
    Dan

    I don't know if it is possible to run the main method from another Java app by simply calling it...
    But you could just copy and paste the stuff from your main method into a new static method called something like runDBQuery and have all the execution run from there.
    How does that sound? Is it possible?
    What I'm suggeting is:
    Original
    public class DBQuery{
    public static void methodA(){
    public static void doQuery(){
    methodA();
    public static void main(String[] args){
    // Your method calls
    //Your initializing
    doQuery();
    }Revised:
    public class DBQuery{
    public static void methodA(){
    public static void doQuery(){
    methodA();
    public static void doMyQuery(){
    // Your method calls
    //Your initializing
    doQuery();
    // No main needed!!
    //public static void main(String[] args){
    // Your method calls
    //doQuery();
    //}

  • Running a java application in command prompt

    hi, I'm new to this forum.
    I would like to know what exactly needs to be specified to run a java application in a normal DOS command prompt.
    I know it is something like:
    javaw -classpath .\class GUI.applicationGUI
    where applicationGUI is the main class, right? What else do I need to do, since I have some other non-GUI classes that I need, inside the class folder ?
    Thanks for your time.

    You need to import those classes. And you need to make packages.
    In classes 1, 2 and 3 put:
    package class;
    In class 4 put;
    package class.GUI;
    Then you need to make the connection:
    In classes 1,2 and 3 put:
    import class.GUI.*;
    In class 4 put:
    import class.*;
    Compile each directory separately while in the respective directory. javac *.java
    Then go back to the directory above the directory "class" and run
    java class/GUI/name_of_file_containing_main_method

  • Is it possible to run a java application within a web browser?

    Hello everyone here! I have a question about running a java application within a web browser and I would appreciate it very much if anyone here can give me some answers.
    I have a standalone java application written with AWT. Basically this free application lets users to select spectral lines from a big file based on some criteria and plot those selected lines. Yes, it is a very simple application. Now I want to run this application within a web browser so that users don't need to download the application from the ftp site and thus don't need to install in their machine. Is it possible to run this application within browser? If yes, can we get the same plotting function as we run the application separately and where should I start out?
    Thanks in advance!
    kuilian

    Please see the signed applet discussion group for details of how to avoid the applet security restrictions. You can sign the applet, or use the policy file containing {AllPermission} for testing purposes (though not suitable for widespread deployment).
    Regards
    Matthew

  • Can we run a java application using Runtime.exec()?

    Can we run a java application using Runtime.exec()?
    If yes what should i use "java" or "javaw", and which way?
    r.exec("java","xyz.class");

    The best way to run the java application would be to dynamiically load it within the same JVM. Look thru the class "ClassLoader" and the "Class", "Method" etc...clases.
    The problem with exec is that it starts another JVM and moreover you dont have the interface where you can throw the Output directly.(indirectly it can be done by openong InputStreams bala blah............). I found this convenient. I am attaching part of my code for easy refernce.
    HIH
    ClassLoader cl = null;
    Class c = null;
    Class cArr[] ;
    Method md = null;
    Object mArr[];
    cl = ClassLoader.getSystemClassLoader();
    try{
         c = cl.loadClass(progName.substring(0,progName.indexOf(".class")) );
    } catch(ClassNotFoundException e) {
    System.out.println(e);
         cArr = new Class[1] ;
         try{
         cArr[0] = Class.forName("java.lang.Object");
         } catch(ClassNotFoundException e) {
         System.out.println(e);
         mArr = new Object[1];
         try{
         md = c.getMethod("processPkt", cArr);
         } catch(NoSuchMethodException e) {
         System.out.println(e);
         } catch(SecurityException e) {
         System.out.println(e);
    try {            
    processedPkt = md.invoke( null, mArr) ;
    } catch(IllegalAccessException e) {
              System.out.println(e);
    } catch(IllegalArgumentException e) {
              System.out.println(e);
    }catch(InvocationTargetException e) {
              System.out.println(e);
    }catch(NullPointerException e) {
              System.out.println(e);
    }catch(ExceptionInInitializerError e) {
              System.out.println(e);
    }

  • Pls help me about two java virtual machine

    have two applications. One is Client, the other is Platform.
    In the Platform, there are source files packaged into a library named ZtConfig.jar used by Client. If run Client and Platform, two applications can execute normally.
    But if Client is started by user from platform, there is something wrong.
    I noticed the error difficultly with finally catching exception.
    I was puzzled. It is so strange. Pls help me. I list some codes here.
    In Client where finally exception catched:
    import zt.config;
            try {
              xmlFileUrl = new java.net.URL(
                  "file:///e:/Client/src/config/nsr1000.xml");
            catch (IOException ex1) {
              FileLogger.error(ex1.getMessage());
            FileLogger.info("NSR1000Document.setIEDContent", xmlFileUrl.toString());
            try {
              xmlLoader = new XMLConfigLoader(xmlFileUrl);
            finally {
              FileLogger.error("NSR1000Document.setIEDContent",
                               "cannot new XMLConfigLoader object");
              return; // the following codes cannot execute, so have to return here.
            }In the XMLConfigLoader, the constructor is
      public XMLConfigLoader(java.net.URL xmlFileUrl) {
        this.xmlFileUrl = xmlFileUrl;
        configDoc = null;
        builder = null;
        xmlDoc = null;
      }Platform start Client application using the following code
      Runtime.getRuntime().exec(
                    "java -jar e:/Client/Client.jar");

    I've got it!
    Briefly, it is because classpath setting was overwritten by JBuilder.
    Firstly, I start Platform from JBuilder. In its messages window. The command is
    d:\j2sdk1.4.2_06\bin\javaw -classpath "JBPATH" zt.client.nsr1000.NSR1000App
    Now, classpath environment variable was changed to be JBPATH. While I start
    Client use Runtime.getRuntime().exec("java -jar Client.jar"), it will not run for classpath changed.
    Then, I configured all packages used by Client into JBuilder libraries, including
    Client.jar. And changed codes Runtime.getRuntime().exec("java -jar Client.jar") to be Runtime.getRuntime().exec("java -Xmx128m zt.client.nsr1000.NSR1000App")
    I also changed CLASSPATH windows system environment variable.
    I found this from command console, it can display exceptions. But from JBuilder, there is no exception that can be captured. So debug is difficult.

  • Running a Java Application on a Novell Netware Server

    I know this is a strange question but I was hopeing someone could help me or point me in the right direction. I have a java application that backs up files. I would like to run it automatically at night on our Novell server. Can Java run on a Novell OS. Any advice is appriciated.

    See http://www.javaworld.com/javaworld/jw-04-1998/jw-04-netware5.html

Maybe you are looking for

  • How to set up a desktop with numerous users

    New to the Mac...replacing windows desktop Home desktop: 2 adults 2 kids the adults each have (multiple separate) email accounts...the kids have email but not as important... mostly browsing; email; social networks... shared apps would be MS Office..

  • Finding the directory path in java

    I need to check if a file exists or not before an action is taken. I used File class to get the handle of a file and and then used exist() function to check if it is there. But this function needs to full path to that file. I need to find a directory

  • Does Headstart 6.5.4 supported in Oracle 11g R2?

    Hello, In my application I'm using the following components CM SDK 9.0.4.2.26 Head Start 6.5.4 Can somebody suggest me is Head Start 6.5.4 supported in Oracle 11g r2 please? If not how to upgrade it to JHeadStart. Kind Regards, Kam

  • PR is must to create PO

    Hi Can any one tell me what are all the settings needed to keep PR mandatory to create PO. Thanks in advance srini

  • Content is missing after I do a "Check-In All"

    Hi, I had created a folder ABC and many sub folders underneath. Many a times I had done a Check-in at the individual topic level and it was fine. Last time when I did a "Check-In all", the content disappeared. What I see now is just the folder struct