1 Reply Latest reply on Oct 21, 2004 1:53 PM by Steve Wong

    Duke Bank Example

    Steve Wong Newbie

      When I try to compile the duke bank example by following the jboss tutorial 4.0, I got the following error:

      [steve@steve bank]# ant -f jboss-build.xml compile
      Buildfile: jboss-build.xml

      prepare:

      compile:
      [javac] Compiling 58 source files to /opt/java/j2eetutorial14/examples/bank/build
      [javac] /opt/java/j2eetutorial14/examples/bank/src/com/sun/ebank/appclient/EventHandle.java: In class `com.sun.ebank.appclient.EventHandle$8':
      [javac] /opt/java/j2eetutorial14/examples/bank/src/com/sun/ebank/appclient/EventHandle.java: In method `com.sun.ebank.appclient.EventHandle$8.actionPerformed(java.awt.event.ActionEvent)':
      [javac] /opt/java/j2eetutorial14/examples/bank/src/com/sun/ebank/appclient/EventHandle.java:223: error: Can't find method `showInputDialog(Lcom/sun/ebank/appclient/BankAdmin;Ljava/lang/String;)' in type `javax.swing.JOptionPane'.
      [javac] returned = JOptionPane.showInputDialog(frame, mess);
      [javac] ^
      [javac] /opt/java/j2eetutorial14/examples/bank/src/com/sun/ebank/appclient/EventHandle.java: In class `com.sun.ebank.appclient.EventHandle$7':
      [javac] /opt/java/j2eetutorial14/examples/bank/src/com/sun/ebank/appclient/EventHandle.java: In method `com.sun.ebank.appclient.EventHandle$7.actionPerformed(java.awt.event.ActionEvent)':
      [javac] /opt/java/j2eetutorial14/examples/bank/src/com/sun/ebank/appclient/EventHandle.java:203: error: Can't find method `showInputDialog(Lcom/sun/ebank/appclient/BankAdmin;Ljava/lang/String;)' in type `javax.swing.JOptionPane'.
      [javac] returned = JOptionPane.showInputDialog(frame, mess);
      [javac] ^
      [javac] /opt/java/j2eetutorial14/examples/bank/src/com/sun/ebank/appclient/EventHandle.java: In class `com.sun.ebank.appclient.EventHandle$4':
      [javac] /opt/java/j2eetutorial14/examples/bank/src/com/sun/ebank/appclient/EventHandle.java: In method `com.sun.ebank.appclient.EventHandle$4.actionPerformed(java.awt.event.ActionEvent)':
      [javac] /opt/java/j2eetutorial14/examples/bank/src/com/sun/ebank/appclient/EventHandle.java:157: error: Can't find method `showInputDialog(Lcom/sun/ebank/appclient/BankAdmin;Ljava/lang/String;)' in type `javax.swing.JOptionPane'.
      [javac] returned = JOptionPane.showInputDialog(frame, mess);
      [javac] ^
      [javac] /opt/java/j2eetutorial14/examples/bank/src/com/sun/ebank/appclient/EventHandle.java: In class `com.sun.ebank.appclient.EventHandle$3':
      [javac] /opt/java/j2eetutorial14/examples/bank/src/com/sun/ebank/appclient/EventHandle.java: In method `com.sun.ebank.appclient.EventHandle$3.actionPerformed(java.awt.event.ActionEvent)':
      [javac] /opt/java/j2eetutorial14/examples/bank/src/com/sun/ebank/appclient/EventHandle.java:137: error: Can't find method `showInputDialog(Lcom/sun/ebank/appclient/BankAdmin;Ljava/lang/String;)' in type `javax.swing.JOptionPane'.
      [javac] returned = JOptionPane.showInputDialog(frame, mess);
      [javac] ^
      [javac] /opt/java/j2eetutorial14/examples/bank/src/com/sun/ebank/appclient/EventHandle.java: In class `com.sun.ebank.appclient.EventHandle$1':
      [javac] /opt/java/j2eetutorial14/examples/bank/src/com/sun/ebank/appclient/EventHandle.java: In method `com.sun.ebank.appclient.EventHandle$1.actionPerformed(java.awt.event.ActionEvent)':
      [javac] /opt/java/j2eetutorial14/examples/bank/src/com/sun/ebank/appclient/EventHandle.java:104: error: Can't find method `showInputDialog(Lcom/sun/ebank/appclient/BankAdmin;Ljava/lang/String;)' in type `javax.swing.JOptionPane'.
      [javac] returned = JOptionPane.showInputDialog(frame, mess);
      [javac] ^
      [javac] 5 errors

      BUILD FAILED
      file:/opt/java/j2eetutorial14/examples/bank/jboss-build.xml:54: Compile failed; see the compiler error output for details.

      Total time: 1 second

      Does anyone know what's going wrong, I'm new to both j2ee and jboss. Thanks