Can't run "asant create-db_common" for the bookstore tutorials.

the instruction on :
http://java.sun.com/j2ee/1.4/docs/tutorial/doc/WebApp13.html
said:
" In a terminal window, go to <INSTALL>/j2eetutorial14/examples/web/bookstore/.
Run asant create-db_common. This task runs a PointBase commander tool command to read the file books.sql and execute the SQL commands contained in the file. The table named books is created for the user pbpublic in the sun-appserv-samples PointBase database."
but when I tried it, I can't seem to find the anyfile with create-db_common in it?????
Thanks for the hlep in advance.
SongPerk Sem

Dear sbodoff,
Thank you for the prompt reply.
I tried it again and got the following.
C:\Sun\j2eetutorial14\examples\web\bookstore>asant create-db_common
Buildfile: build.xml
init:
create-db_common:
BUILD FAILED
file:C:/Sun/j2eetutorial14/examples/common/targets.xml:20: C:\pointbase\lib not found.
Total time: 0 seconds
when I run ant before, it kept telling me "c:\lib not found" and I finally create an empty c:\lib directory and ant works fine. Now I have "C:\pointbase\lib not found", am I missing some environmental variables????
I am running windows xp and this is a snap shot of the environmental variables.
C:\Sun\j2eetutorial14\examples\web\bookstore>set
ALLUSERSPROFILE=C:\Documents and Settings\All Users
ANT_HOME=C:\Sun\apache-ant-1.6.0
APPDATA=C:\Documents and Settings\songperk\Application Data
CLASSPATH="C\QTJava.zip";C:\Sun\apache-ant-1.6.0\lib;C:\Sun\apache-ant-1.6.0\lib\ant.jar;C:\Sun\j2sdk1.4.2_03\lib;C:\Sun\AppServer\lib;C:\Sun\AppServer\pointbase\lib
CommonProgramFiles=C:\Program Files\Common Files
COMPUTERNAME=CHEETAH
ComSpec=C:\WINDOWS\system32\cmd.exe
HOMEDRIVE=C:
HOMEPATH=\Documents and Settings\songperk
J2EE_HOME=C:\Sun\AppServer
JAVA_HOME=C:\Sun\j2sdk1.4.2_03
LOGONSERVER=\\CHEETAH
NUMBER_OF_PROCESSORS=1
Sorry for all the trouble. Is there a place where I can get an update on how to run and install the tutorial?
Sincerely,
SongPerk Sem

Similar Messages

  • Error when trying to create tables using "asant create-db_common"

    Hi,
    I'm attempting to run asant create-db_common to use a .sql file to create a table in Pointbase. However I keep getting this error:
    Buildfile: build.xml
    init:
    create-db_common:
         [java] java.lang.NoClassDefFoundError: com/pointbase/tools/toolsCommander
         [java] Exception in thread "main"
    BUILD SUCCESSFUL
    Total time: 1 secondWhich means I need to include the classpath, I presume! But I don't know what file to add it to or where to begin.
    Can anyone help?
    Thanks.

    Still haven't solved this problem.
    Can anyone guide me at all?
    Many thanks.

  • Problem with asant create-db_common

    Dear All,
    I'm trying the bookstore example from J2EE Tutorial. I face some problem when I try to populate the database. According to the book (J2EE Tutorial, 2nd Edition, page 101), I need to start PointBase. Then I run asant create-db_common. After I run asant create-db_common, I got the following error message
    BUILD FAILED
    file: D:/Javaj2sdk/j2eetutorial14/examples/common/targets.xml:20: C:\Sun\AppServer\pointbasedb.driver=com.pointbase.jdbc.jdbcUniversalDriver\lib not found.
    May I know what's wrong. Can you please help me? Thank you very much.
    Regards,
    Sui

    A variable can't be named "C:\Sun\AppServer\pointbasedb.driver".
    -- markus.

  • How many airport express can I add to my network for the purpose of using the airport express to send audio signal to different rooms in the house? I'm interested I'm running about six different zones.

    How many airport express can I add to my network for the purpose of using the airport express to send audio signal to different rooms in the house? I'm interested I'm running about six different zones.
    What I'm looking to do is to have self powered in ceiling speakers in every room in my house with out having to run wires to every room to carry the audio signal. I would like to use the airport express to do the job of carting the audio signal.
    Here's my set up now I have an airport extreme and one airport express that I use to carry audio to one room.

    FWIW. I have used up to four AirPort Express Base Stations (AX) for streaming sucessfully in pretty much the way you have described. I didn't have a need to try more so I can't attest that more would or would not work.

  • Can I create books for the iBookstore for iPad and iPhone using Pages?

    Can I create books for the iBookstore for iPad and iPhone using Pages?

    No problem, Peter. iBooks Author makes a lot of things much easier than trying to grapple with a standard epub, but it also has some big limitations, like iPad only, and ibookstore only.
    EDIT It's not really suitable for something like a novel, for example, although it's great when you need lots of illustrations and movies and such.

  • Everything runs als Root, can someone give me a hand for the system rights?

    yeah I screwed up big times because of this neat unknow_user "Feature" in Leopard.
    First i installed a os 10.4 app under leopard which let the disk utility slow down and the finder crashes if i change the user rights, and then i changed globally the group and user of everything in the application folder and my documents folder with pathfinder for looking if i can solve the problem that way.
    -But now everything runs as Root and even the hd itself has a owner root and as group admin.
    i don't get the difference between system, root, admin, wheel, username for the owner and group. I googled but found nothing clear about this.
    And i also wonder what i should do about the group and the meaning of root, system, admin, wheel, username as a group for a single user system. Where should i give a read, read&write and execute permission for example?
    at the moment everything seems to run mostly root and every program runs on root and i think this is the worst think that can happen and causes some trouble for the programs.
    Can someone give me a short hand and for example tell me if i should set the hd owner to my username and the group to system or admin or whatever and this also for the application and documents/film and other stuff on my user folder?
    that would be great
    I think i have to reinstall leopard, but as long as this unknow_user problem still resist and no patch is available, i see the same thing happen again and again for me, so a little help would be great
    here the ls -l -a from the system and user directory
    drwxrwxr-t 26 root admin 1496 Nov 1 23:41 .
    drwxrwxr-t 26 root admin 1496 Nov 1 23:41 ..
    -rw-rw-r--@ 1 root admin 15364 Nov 5 22:42 .DS_Store
    drwxrwxr-x@ 3 root admin 102 Oct 30 18:40 .Spotlight-V100
    drwxrwxr-x@ 2 root admin 68 Aug 2 12:29 .Trashes
    -rw-r--r-- 1 root admin 0 Oct 30 17:09 .com.apple.timemachine.supported
    drwx------ 2 root admin 952 Nov 5 22:09 .fseventsd
    -rw-rw-r--@ 1 root admin 262144 Oct 10 11:42 .hotfiles.btree
    drwxr-xr-x@ 2 root wheel 68 Aug 2 12:30 .vol
    drwxrwxrwx+ 400 adrian admin 13872 Nov 5 22:00 Applications
    drwxr-xr-x 2 root admin 102 Nov 1 23:01 Data
    -rw-r--r--@ 1 root admin 10240 Oct 25 05:19 Desktop DB
    -rw-r--r--@ 1 root admin 37442 Oct 25 01:39 Desktop DF
    drwxrwxr-x@ 13 root admin 544 Oct 30 19:46 Developer
    drwxr-xr-x 5 adrian adrian 204 Sep 12 14:25 InputManagers
    -rw-r--r--@ 1 adrian adrian 1568128 Nov 1 23:45 Installer Log File
    drwxrwxr-t+ 60 root admin 2108 Nov 1 22:06 Library
    drwxr-xr-x@ 2 root wheel 68 Aug 2 10:08 Network
    drwxr-xr-x 3 root wheel 136 Oct 30 18:01 System
    drwxrwxrwx@ 3 root admin 102 Aug 2 17:21 TheVolumeSettingsFolder
    drwxr-xr-x 5 root admin 238 Nov 2 00:03 Users
    drwxrwxrwt@ 4 root admin 170 Nov 5 20:21 Volumes
    -rw-r--r-- 1 adrian admin 0 Oct 29 22:51 az.log
    drwxr-xr-x@ 2 root wheel 1360 Oct 30 17:57 bin
    drwxrwxr-t@ 2 root admin 68 Jan 13 2006 cores
    dr-xr-xr-x 2 root wheel 512 Nov 2 04:11 dev
    lrwxr-xr-x@ 1 root admin 11 Oct 30 17:57 etc -> private/etc
    dr-xr-xr-x 2 root wheel 1 Nov 2 04:11 home
    lrwxr-xr-x 1 root 502 11 Nov 1 22:40 mach -> mach_kernel
    -r--r--r--@ 1 root admin 615748 Oct 29 18:23 mach.sym
    -rw-r--r--@ 1 root wheel 10243756 Oct 10 06:38 mach_kernel
    -rw-r--r--@ 1 root wheel 10696809 Oct 10 06:38 mach_kernel.ctfsys
    dr-xr-xr-x 3 root wheel 2 Nov 2 04:11 net
    drwxr-xr-x@ 3 root admin 102 Sep 14 17:40 opt
    drwxr-xr-x@ 6 root wheel 204 Oct 29 18:23 private
    drwxr-xr-x@ 2 root wheel 2244 Oct 30 18:01 sbin
    drwxr-xr-x 11 root admin 374 Jun 9 2006 sw
    lrwxr-xr-x@ 1 root admin 11 Oct 30 17:57 tmp -> private/tmp
    drwxr-xr-x@ 13 root wheel 510 Oct 30 19:52 usr
    lrwxr-xr-x@ 1 root admin 11 Oct 30 17:57 var -> private/var
    and for the my user folder:
    drwxr-xr-x+ 22 adrian adrian 1156 Nov 3 02:30 .
    drwxr-xr-x 5 root admin 238 Nov 2 00:03 ..
    -rw-r--r-- 1 adrian adrian 3 Sep 13 22:41 .CFUserTextEncoding
    -rw-r--r--@ 1 adrian adrian 15364 Nov 5 21:50 .DS_Store
    -rw-r--r-- 1 adrian adrian 11 Oct 16 17:17 .PortAuthority2.4.rc
    drwx------ 2 adrian adrian 68 Nov 5 20:58 .Trash
    -rw-r--r-- 1 adrian adrian 0 Aug 16 04:37 .Xauthority
    -rw-r--r-- 1 adrian adrian 2552 Nov 5 22:43 .bash_history
    drwxr-xr-x 4 adrian adrian 136 Aug 17 21:11 .config
    drwxr-xr-x 8 adrian adrian 306 Aug 6 02:22 .dvdcss
    drwxr-xr-x 2 adrian adrian 578 Oct 21 19:32 .fontconfig
    -rw-r--r-- 1 adrian adrian 489724 Aug 30 17:49 .fonts.cache-1
    drwxr-xr-x 2 adrian adrian 68 Sep 14 17:40 .macports
    -rw-r--r-- 1 adrian adrian 1643 Aug 30 19:01 .mime.types
    -rw-r--r-- 1 adrian adrian 47 Oct 12 22:45 .parallels_settings
    -rw-r--r-- 1 adrian adrian 194 Sep 28 02:52 .profile
    drwxr-xr-x 3 adrian adrian 102 Sep 23 00:48 .stella
    drwxr-xr-x 2 adrian adrian 68 Aug 16 20:09 .wapi
    -rw-r--r-- 1 adrian adrian 467 Nov 5 04:21 .webaom
    -rw-r--r-- 1 adrian adrian 570 Aug 16 04:37 .xinitrc
    drwxr-xr-x 3 adrian adrian 170 Aug 5 08:10 Applications
    drwxr-xr-x+ 23 adrian adrian 1190 Nov 5 20:21 Desktop
    drwxrwxrwx+ 35 adrian adrian 2210 Nov 5 22:08 Documents
    drwxr-xr-x+ 14 adrian adrian 3332 Nov 5 20:02 Downloads
    drwxr-xr-x+ 48 adrian adrian 1836 Oct 30 19:11 Library
    drwxr-xr-x+ 9 adrian adrian 748 Nov 2 23:49 Movies
    drwxr-xr-x+ 8 adrian adrian 510 Sep 29 05:44 Music
    drwxr-xr-x 2 root adrian 68 Nov 3 02:30 New Folder
    drwxr-xr-x+ 6 adrian adrian 748 Oct 18 23:26 Pictures
    drwxrwxrwx+ 3 adrian adrian 238 Nov 4 20:34 Public
    drwxr-xr-x+ 3 adrian adrian 204 Aug 14 21:29 Sites
    drwxr-xr-x 3 adrian adrian 340 Oct 31 05:55 CompilationUnix
    -rw-r--r-- 1 adrian adrian 129 Oct 6 16:48 license.jai

    lllaass wrote:
    lizdance40, did you read the original post? The poster's problem is that when he connects the iPod to his computer the iPod does not appear in iTunes. He does not say he has a wifi problem with his iPod.
    lizdance40 wrote:
    You need to do an update on your router's firmware, or get a higher speed router..
    Or replace the router and or modem.  High demand can burn out a router in 2 years.  Typical life is about 4-5 at most.
    The new iPod is more advanced and if your router is slow or inconsistant signal your iPod will stop trying to connect to save your battery.
    of course he dose have a wifi problwm. read the last line of the original post

  • Can I run my creative cloud for teams on more than one computer?

    Can I run my creative cloud for teams on more than one computer?

    Hi Nick,
    We would like to inform you that you can install and activate the subscription on 2 machines, however, you cannot use both of them at the same time.
    Kindly check the point 1.1 from the below mentioned link.
    http://wwwimages.adobe.com/content/dam/Adobe/en/legal/servicetou/Software_Terms-en_US-2015 0407_2200.pdf
    Thanks,
    Atul Saini

  • How to create F4 for the standard transaction

    Hi all ,
    How to create F4 for the standard transaction for a particular field .
    Bye

    Santosh,
        You can create F4 values for a field in a standard Transaction .
    1. First search for a standard search help meeting your requirement .
    2. If you don't find one, create your own custom (z) serach help .
    ( 1 is preferable )
    After that, include that serch help to the standard field in the transaction .
    For this u need to go to the screen
    ( F1->F9-> screen-> Field )
    Click on the property of the field and include the search help .
    You ll require the access key from the basisi guys as u r changing standard .
    Hope it helps,
    ~ laxmi
    Reward for helpful answers

  • I CAN SEE ALL SHIP TO LOCATIONS FOR THE CUSTOMER EVEN IF I SELECT ONE BILL

    Dear,
    I CAN SEE ALL SHIP TO LOCATIONS FOR THE CUSTOMER EVEN IF I SELECT ONE BILL TO
    Steps:
    Create customer name "customer 1"
    Under this customer, I create 2 new address
    "Customer A " with tow business purpose
    1-bill to –> customer A
    2- ship to-> customer A after that I link ship to with bill to customer A , I CHECK THE PRIMARY SITE CHECK BOX
    FOR THIS SITE
    "Customer B" with tow business purpose
    1-bill to –> customer B
    2- ship to-> customer B after that I link ship to with bill to customer B
    Now when I navigate to (N) Order management ->order organizer ->new order
    I select the "customer 1" from customer field name I tab to other field bill to
    location it is coming by default as primary site customer "customer A"
    I OPEN THE LIST I SEE tow customer A AND B I SELECT 'B' AS bill to
    When I tab to the other ship to field in also I can see the tow customer " A" and "B" but in real
    setup I link the customer "B" WITH ONE SHIP TO ALSO CUSTOMER"B" WHY I CAN SEE
    ALL LOCATION FOR THE CUSTOMER EVEN IF I SELECT THE ONE BILL TO .
    WHAT THE BENIFIT FROM LINK CUSTOMER SHIP TO FIELD WITH BILL TO IF I CAN SEE ALL LISTS
    FOR CUSTOMER SITE
    Expected Behavior:
    Once I link the ship to location with bill to location I must see when create sales order only the ship to location
    link with the specific bill to already specified
    Business impact:
    This give the user entry ability to enter wrong data or give him the confusion any site I must enter
    thanks

    That is expected behavior.
    You can see the all addresses of account in the list as long as the purpose condition is satisfied. Linking is only for defaulting and not for controlling. If you do not want to see you can create a different account for the B address.
    Thanks
    Nagamohan

  • Can we do cancellation of  invoice for the period preceding the transaction

    Hi All,
    Can we do cancellation of  invoice for the period preceding the transaction after the closing MMPV?
    Thanks,
    Praveen

    Hi,
    Unfortunately the answer is no. Two reasons for it.
    a. The period for which you want to post is already closed
    b. The period for which you want to reverse the invoice falls before the period your invoice is created (as I have understood your question) which is not allowed....
    Hope this helps
    Thanks
    Mukund S

  • How to create Variables for the Key Figures

    Hi All,
    How to create Variables for the Key Figures
    Thanks
    Bhaskar

    Hi,
    It is not possible to create the variables on Key figures directly. But we can create a formula variable with processing type 'User Entry' ,SO that the user entered value can be used in the calculations of the query.
    With rgds,
    Anil Kumar Sharma .P

  • Can I have diff transacton Variant for the same tcode?

    Hi Experts,
    Can I have diff transacton Variant for the same tcode? If so i will i assign it to diffrent users.?
    Requirement Details:
    I have three diiffrent roles accessing XK02.
    I need to provide diffrent transactions variants for these 3 roles, through Variant groups. How will i do this?
    When i tried to do this, i found that, we need to activate a standard variant for the transaction, which inturn will be default for all these roles. S how will i specify different Transaction variant for diff  roles...
    Please help..
    In the below link i have seen a solution where i need to login into each users profile and set it.
    link: [Variant Groups;
    Thanks,
    Jithin

    >
    jithin james wrote:
    > Say i have two groups for the same transaction with two diff variants,
    > then for group 1 i will assign  variant1 and will activate this as the standard variant.
    > NOw for group two, i will assign my second variant (without activating it as standard variant).
    The way you explain is strange, I don't understand. You can't assign manually a variant group to a transaction variant, this is done automatically based on the names, maybe you make confusion with assignment between variant group and user?
    A little example:
    Say we have : ZG1 for group 1, and ZG2 for group 2. Transaction is ZT.
    Say user is assigned to group ZG1 by default, and also ZG2 (he may switch to ZG2 using the transaction I mentioned above)
    When user runs ZT transaction, SAP uses automatically ZG1ZT transaction variant (the standard variant is ignored when a transaction variant is found based on variant group). If the user switches to ZG2 variant group, SAP uses automatically ZG2ZT transaction variant.
    If you activate a standard variant, this will taken into account for users which don't have a variant group assigned, or those which transaction variant doesn't exist for variant group + transaction code.
    If it doesn't work as I said, maybe there is a bug, check SAP notes...

  • How to create hyperlink for the messages in oneorder documents

    Hi ,
    I want to create hyperlink for the error messages that are raised for a payment request, so that i can navigate to that particular object ID mentioned in the message.

    Hi Paparao,
    But we can find the same functionality for trade promotions overlap, the messages raised when two or more tradepromotions overlap, provide us with hyperlink through which we can navigate to that particular object id.
    Regards
    Tejarshi
    Edited by: tejarshi vadduri on Apr 17, 2009 6:55 AM

  • Creating locations for the assets in Asset accounting

    Hi,
    Can anyone please let me know how to create locations for the existing assets in AA module? We need to create locations and assign the assets so as to track the assets location wise.
    Thanks,

    Goto
    SPRO-->Enterprise structure->Definition-->Logistic General->Define Location
    there you can create location

  • Can't run itunes is asking for quicktime but keep getting an error message .

    can't run itunes is asking for quicktime but keep getting an error message the feature you are trying to use is on a networkresourse tha is unavailable  c:\docume~1\test\locals~1\temp\Ixp133.

    It keeps telling me to reinstall iTunes, but it continues to come back with the same error message.

Maybe you are looking for

  • Does Game Center on iPod Touch 2G sync?

    I understand that Game Center on iPod Touch 2G (iOS 4.2) no longer work.. (ie. don't show games, empty friends list, unable to receive friend requests, cannot connect to in-game scores)... but does that mean that it is also not syncing? I ask this be

  • Not able to change the size of the Drive

    Hello , I have a template with 50 GB C drive and I want to a create a VM having 100 GB C drive using this template  . But I am not able to change C drive size from the edit settings . After changing the size from the edit settings to 100 Gb , I found

  • How to submit my builds using Xcode 5.1.1 or later, or Application Loader 3.0 or later?

    I am using Apple Developer to make an app. How can I submit my builds using Xcode 5.1.1 or later, or Application Loader 3.0 or later?

  • Playing .mkv with mplayer-vdpau does not work

    Hi, My System is a Atom 330 with an Nvidia ION. The Atom is running at 2 GHz. I installed the mplayer-vdpau-svn from aur. With this i tried to play a .mkv file. Without the vdpau parameters the Movie is running, but too slow. When i use the parameter

  • GarageBand for iOS - Cannot share songs using a PC

    After about an hour with a very helpful support tech, we discovered that it is IMOSSIBLE to copy a GarageBand (.band) file from an iPad to an iPod using Itunes for Windows. The problem is that Windows sees the data as a "folder," but GarageBand will