2 Replies Latest reply on May 16, 2005 11:18 AM by jon strauss

    compile failed Duke Bank from javax.swing.JOptionPane

    Hillel Bilman Newbie

      Anyone had a similar problem that they resolved?

      I've installed j2ee-1_3-doc-tutorial-draft5.zip - the current 1.3 tut from Sun
      then I installed jbossj2ee-src.zip and edited build.properties to change jboss.home=/usr/local/jboss-3.2.3
      The Struts files were already in the bank/jar from the bossj2ee-src.zip

      [bank]# ant -f jboss-build.xml compile

      Buildfile: jboss-build.xml


      prepare:

      compile:
      [javac] Compiling 55 source files to /home/hillel/jbossdocs/j2eetutorial/bank/build
      [javac] /home/hillel/jbossdocs/j2eetutorial/bank/src/com/sun/ebank/appclient /EventHandle.java: In class `com.sun.ebank.appclient.EventHandle$8':
      [javac] /home/hillel/jbossdocs/j2eetutorial/bank/src/com/sun/ebank/appclient /EventHandle.java: In method `com.sun.ebank.appclient.EventHandle$8.actionPerfor med(java.awt.event.ActionEvent)':
      [javac] /home/hillel/jbossdocs/j2eetutorial/bank/src/com/sun/ebank/appclient /EventHandle.java:178: 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] /home/hillel/jbossdocs/j2eetutorial/bank/src/com/sun/ebank/appclient /EventHandle.java: In class `com.sun.ebank.appclient.EventHandle$7':
      [javac] /home/hillel/jbossdocs/j2eetutorial/bank/src/com/sun/ebank/appclient /EventHandle.java: In method `com.sun.ebank.appclient.EventHandle$7.actionPerfor med(java.awt.event.ActionEvent)':
      [javac] /home/hillel/jbossdocs/j2eetutorial/bank/src/com/sun/ebank/appclient /EventHandle.java:162: 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] /home/hillel/jbossdocs/j2eetutorial/bank/src/com/sun/ebank/appclient /EventHandle.java: In class `com.sun.ebank.appclient.EventHandle$4':
      [javac] /home/hillel/jbossdocs/j2eetutorial/bank/src/com/sun/ebank/appclient /EventHandle.java: In method `com.sun.ebank.appclient.EventHandle$4.actionPerfor med(java.awt.event.ActionEvent)':
      [javac] /home/hillel/jbossdocs/j2eetutorial/bank/src/com/sun/ebank/appclient /EventHandle.java:122: 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] /home/hillel/jbossdocs/j2eetutorial/bank/src/com/sun/ebank/appclient /EventHandle.java: In class `com.sun.ebank.appclient.EventHandle$3':
      [javac] /home/hillel/jbossdocs/j2eetutorial/bank/src/com/sun/ebank/appclient /EventHandle.java: In method `com.sun.ebank.appclient.EventHandle$3.actionPerfor med(java.awt.event.ActionEvent)':
      [javac] /home/hillel/jbossdocs/j2eetutorial/bank/src/com/sun/ebank/appclient /EventHandle.java:106: 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] /home/hillel/jbossdocs/j2eetutorial/bank/src/com/sun/ebank/appclient /EventHandle.java: In class `com.sun.ebank.appclient.EventHandle$1':
      [javac] /home/hillel/jbossdocs/j2eetutorial/bank/src/com/sun/ebank/appclient /EventHandle.java: In method `com.sun.ebank.appclient.EventHandle$1.actionPerfor med(java.awt.event.ActionEvent)':
      [javac] /home/hillel/jbossdocs/j2eetutorial/bank/src/com/sun/ebank/appclient /EventHandle.java:78: error: Can't find method `showInputDialog(Lcom/sun/ebank/a ppclient/BankAdmin;Ljava/lang/String;)' in type `javax.swing.JOptionPane'.
      [javac] returned = JOptionPane.showInputDialog(frame, mess);
      [javac] ^
      [javac] 5 errors

      BUILD FAILED
      file:/home/hillel/jbossdocs/j2eetutorial/bank/jboss-build.xml:49: Compile failed ; see the compiler error output for details.

      Total time: 2 seconds