Uploaded image for project: 'Derby'
  1. Derby
  2. DERBY-3518

Getting started guide: Incomplete instructions for compiling WwdEmbedded.java

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 10.3.2.1
    • 10.6.1.0
    • Documentation
    • None

    Description

      In the Getting Started with Derby manual's Self-study tutorial for users new to Derby, there is an Activity 3 which describes how to run a JDBC program using the embedded driver: http://db.apache.org/derby/docs/dev/getstart/twwdactivity3_Setup.html .
      In step 2, the guide says:

      <quote>
      Compile the WwdEmbedded.java program.

      javac WwdEmbedded.java
      </quote>

      Since WwdEmbedded.java (available from <bin-installation>/demo/programs/workingwithderby/) references the WwdUtils class, WwdUtils.java needs to be copied and compiled as well. Otherwise, compiling will fail with:

      WwdEmbedded.java:80: cannot resolve symbol
      symbol : variable WwdUtils
      location: class WwdEmbedded
      if (! WwdUtils.wwdChk4Table(conn))
      ^
      WwdEmbedded.java:92: cannot resolve symbol
      symbol : variable WwdUtils
      location: class WwdEmbedded
      answer = WwdUtils.getWishItem();
      ^
      2 errors

      The manual should be updated to reflect this requirement.

      This issue was first reported on the derby-user mailing list 2008-03-06 by Tosca Lahiri, see http://www.nabble.com/javac-WwdEmbedded.java-td15924527.html

      Attachments

        1. derby3518-correction.diff
          1 kB
          Camilla Haase
        2. docs.diff
          2 kB
          Bryan Pendleton
        3. docs2.diff
          3 kB
          Bryan Pendleton
        4. twwdactivity3_Setup.html
          8 kB
          Bryan Pendleton
        5. twwdactivity3_Setup.html
          8 kB
          Bryan Pendleton
        6. twwdactivity4.html
          16 kB
          Bryan Pendleton

        Activity

          People

            bryanpendleton Bryan Pendleton
            johnemb John Embretsen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: