IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

Glassfish et Payara Java Discussion :

Erreur "Unable to locate tools.jar"


Sujet :

Glassfish et Payara Java

  1. #1
    Membre régulier
    Inscrit en
    Janvier 2007
    Messages
    219
    Détails du profil
    Informations forums :
    Inscription : Janvier 2007
    Messages : 219
    Points : 76
    Points
    76
    Par défaut Erreur "Unable to locate tools.jar"
    Bonjour,

    En faisant l'installation de GlassFish, j'ai l'erreur
    Unable to locate tools.jar
    Dans mon répertoire Java il y a le sous-répertoire:
    jdk1.6.0_24 et le jre6

    Lorsque j'ai installé le JDK 6u24, il a installé en même tant que le JDK, le JRE.

    A la fin de l'installation j'ai créé la variable d'environnement JAVA_HOME avec C:\Program Files\Java\jdk1.6.0_24
    Lorsque je me place dans le répertoire d:\glassfish et que je fais
    Lib\ant\bin\ant -f setup.xml
    Nom : unable to locate tools.jar.jpg
Affichages : 1100
Taille : 118,0 Ko

    Voici le fichier setup.xml :
    Code xml : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
    119
    120
    121
    122
    123
    124
    125
    126
    127
    128
    129
    130
    131
    132
    133
    134
    135
    136
    137
    138
    139
    140
    141
    142
    143
    144
    145
    146
    147
    148
    149
    150
    151
    152
    153
    154
    155
    156
    157
    158
    159
    160
    161
    162
    163
    164
    165
    166
    167
    168
    169
    170
    171
    172
    173
    174
    175
    176
    177
    178
    179
    180
    181
    182
    183
    184
    185
    186
    187
    188
    189
    190
    191
    192
    193
    194
    195
    196
    197
    198
    199
    200
    201
    202
    203
    204
    205
    206
    207
    208
    209
    210
    211
    212
    213
    214
    215
    216
    217
    218
    219
    220
    221
    222
    223
    224
    225
    226
    227
    228
    229
    230
    231
    232
    233
    234
    235
    236
    237
    238
    239
    240
    241
    242
    243
    244
    245
    246
    247
    248
    249
    250
    251
    252
    253
    254
    255
    256
    257
    258
    259
    260
    261
    262
    263
    264
    265
    266
    267
    268
    269
    270
    271
    272
    273
    274
    275
    276
    277
    278
    279
    280
    281
    282
    283
    284
    285
    286
    287
    288
    289
    290
    291
    292
    293
    294
    295
    296
    297
    298
    299
    300
    301
    302
    303
    304
    305
    306
    307
    308
    309
    310
    311
    312
    313
    314
    315
    316
    317
    318
    319
    320
    321
    322
    323
    324
    325
    326
    327
    328
    329
    330
    331
    332
    333
    334
    335
    336
    337
    338
    339
    340
    341
    342
    343
    344
    345
    346
    347
    348
    349
    350
    351
    352
    353
    354
    355
    356
    357
    358
    359
    360
    361
    362
    363
    364
    365
    366
    367
    368
    369
    370
    371
    372
    373
    374
    375
    376
    377
    378
    379
    380
    381
    382
    383
    384
    385
    386
    387
    388
    389
    390
    391
    392
    393
    394
    395
    396
    397
    398
    399
    400
    401
    402
    403
    404
    405
    406
    407
    408
    409
    410
    411
    412
    413
    414
    415
    416
    417
    418
    419
    420
    421
    422
    423
    424
    425
    426
    427
    428
    429
    430
    431
    432
    433
    434
    435
    436
    437
    438
    439
    440
    441
    442
    443
    444
    445
    446
    447
    448
    449
    450
    451
    452
    453
    454
    455
    456
    457
    458
    459
    460
    461
    462
    463
    464
    465
    466
    467
    468
    469
    470
    471
    472
    473
    474
    475
    476
    477
    478
    479
    480
    481
    482
    483
    484
    485
    486
    487
    488
    489
    490
    491
    492
    493
    494
    495
    496
    497
    498
    499
    500
    501
    502
    503
    504
    505
    506
    507
    508
    509
    510
    511
    512
    513
    514
    515
    516
    517
    518
    519
    520
    521
    522
    523
    524
    525
    526
    527
    528
    529
    530
    531
    532
    533
    534
    535
    536
    537
    538
    539
    540
    541
    542
    543
    544
    545
    546
    547
    548
    549
    550
    551
    552
    553
    554
    555
    556
    557
    558
    559
    560
    561
    562
    563
    564
    565
    566
    567
    568
    569
    570
    571
    572
    573
    574
    575
    576
    577
    578
    579
    580
    581
    582
    583
    584
    585
    586
    587
    588
    589
    590
    591
    592
    593
    594
    595
    596
    597
    598
    599
    600
    601
    602
    603
    604
    605
    606
    607
    608
    609
    610
    611
    612
    613
    614
    615
    616
    617
    618
    619
    620
    621
    622
    623
    624
    625
    626
    627
    628
    629
    630
    631
    632
    633
    634
    635
    636
    637
    638
    639
    640
    641
    642
    643
    644
    645
    646
    647
    648
    649
    650
    651
    652
    653
    654
    655
    656
    657
    658
    659
    660
    661
    662
    663
    664
    665
    666
    667
    668
    669
    670
    671
    672
    673
    674
    675
    676
    677
    678
    679
    680
    681
    682
    683
    684
    685
    686
    687
    688
    689
    690
    691
    692
    693
    694
    695
    696
    697
    698
    699
    700
    701
    702
    703
    704
    705
    706
    707
    708
    709
    710
    711
    712
    713
    714
    715
    716
    717
    718
    719
    720
    721
    722
    723
    724
    725
    726
    727
    728
    729
    730
    731
    732
    733
    734
    735
    736
    737
    738
    739
    740
    741
    742
    743
    744
    745
    746
    747
    748
    749
    750
    751
    752
    753
    754
    755
    756
    757
    758
    759
    760
    761
    762
    763
    764
    765
    766
    767
    768
    769
    770
    771
    772
    773
    774
    775
    776
    777
    778
    779
    780
    781
    782
    783
    784
    785
    786
    787
    788
    789
    790
    791
    792
    793
    794
    795
    796
    797
    798
    799
    800
    801
    802
    803
    804
    805
    806
    807
    808
    809
    810
    811
    812
    813
    814
    815
    816
    817
    818
    819
    820
    821
    822
    823
    824
    825
    826
    827
    828
    829
    830
    831
    832
    833
    834
    835
    836
    837
    838
    839
    840
    841
    842
    843
    844
    845
    846
    847
    848
    849
    850
    851
    852
    853
    854
    855
    856
    857
    858
    859
    860
    861
    862
    863
    864
    865
    866
    867
    868
    869
    870
    871
    872
    873
    874
    875
    876
    877
    878
    879
    880
    881
    882
    883
    884
    885
    886
    887
    888
    889
    890
    891
    892
    893
    894
    895
    896
    897
    898
    899
    900
    901
    902
    903
    904
    905
    906
    907
    908
    909
    910
    911
    912
    913
    914
    915
    916
    917
    918
    919
    920
    921
    922
    923
    924
    925
    926
    927
    928
    929
    930
    931
    932
    933
    934
    935
    936
    937
    938
    939
    940
    941
    942
    943
    944
    945
    946
    947
    948
    949
    950
    951
    952
    953
    954
    955
    956
    957
    958
    959
    960
    961
    962
    963
    964
    965
    966
    967
    968
    969
    970
    971
    972
    973
    974
    975
    976
    977
    978
    979
    980
    981
    982
    983
    984
    985
    986
    987
    988
    989
    990
    991
    992
    993
    994
    995
    996
    997
    998
    999
    1000
    1001
    1002
    1003
    1004
    1005
    1006
    1007
    1008
    1009
    1010
    1011
    1012
    1013
    1014
    1015
    1016
    1017
    1018
    1019
    1020
    1021
    1022
    1023
    1024
    1025
    1026
    <?xml version="1.0" encoding="iso-8859-1"?>
    <!--
     DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
     
     Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved.
     
     The contents of this file are subject to the terms of either the GNU
     General Public License Version 2 only ("GPL") or the Common Development
     and Distribution License("CDDL") (collectively, the "License").  You
     may not use this file except in compliance with the License. You can obtain
     a copy of the License at https://glassfish.dev.java.net/public/CDDL+GPL.html
     or glassfish/bootstrap/legal/LICENSE.txt.  See the License for the specific
     language governing permissions and limitations under the License.
     
     When distributing the software, include this License Header Notice in each
     file and include the License file at glassfish/bootstrap/legal/LICENSE.txt.
     Sun designates this particular file as subject to the "Classpath" exception
     as provided by Sun in the GPL Version 2 section of the License file that
     accompanied this code.  If applicable, add the following below the License
     Header, with the fields enclosed by brackets [] replaced by your own
     identifying information: "Portions Copyrighted [year]
     [name of copyright owner]"
     
     Contributor(s):
     
     If you wish your version of this file to be governed by only the CDDL or
     only the GPL Version 2, indicate your decision by adding "[Contributor]
     elects to include this software in this distribution under the [CDDL or GPL
     Version 2] license."  If you don't indicate a single choice of license, a
     recipient has the option to distribute your version of this file under
     either the CDDL, the GPL Version 2 or to extend the choice of license to
     its licensees as provided above.  However, if you add GPL Version 2 code
     and therefore, elected the GPL Version 2 license, then the option applies
     only if the new code is made subject to such option by the copyright
     holder.
    -->
     
    <!-- THIS FILE SHIPS WITH THE RI BUNDLE TO SET UP THE SERVER -->
     
    <project name="Top Level Build" default="all" basedir=".">
     
    <property name="osforbuildjarinstaller" value="%OS_FOR_BUILD_JARINSTALLER%"/>
     
    <property file="${basedir}/build.properties"/>
    <property file="${basedir}/../input.properties"/>
    <property name="install.home" value="${basedir}"/>
     
    <property name="domain.name" value="domain1"/>
    <property name="instance.name" value="server"/>
    <property name="admin.user" value="admin"/>
    <property name="admin.password" value="adminadmin"/>
    <property name="admin.port" value="4848"/>
    <property name="instance.port" value="8080"/>
    <property name="orb.port" value="3700"/>
    <property name="imq.port" value="7676"/>
    <property name="https.port" value="8181"/>
    <property name="glassfish.license" value="LICENSE.txt"/>
    <property name="glassfish.zipfile" value="${glassfish.zipfile}"/>
    <property name="glassfish.release.name" value="${glassfish.release.name}"/>
    <property name="glassfish_pe.release.name" value="glassfish-pe"/>
    <property name="glassfish.class" value="${glassfish.classname}"/>
    <property name="persistence-location" value="${install.home}/../glassfish-persistence"/>
    <property name="glassfish-persistence.zipfile" value="glassfish-persistence-image.zip"/>
    <property name="glassfish_persistence.class" value="glassfish_persistence.class"/>
     
    <property name="jarpack-task.jar" value="${install.home}/lib/Pack200Task.jar"/>
     
    <property name="adminpassfile" value="${install.home}/passfile"/>
    <property name="asadmin.prefs.file" value="${install.home}/config/asadminenv.conf"/>
    <property name="asadmin.default.profile" value="developer"/>
    <property name="asadmin.default.secure" value="false"/>
     
    <target name="setup.init" depends="get.java.home" description="Set up the OS version">
        <tstamp>
          <format property="start.time" pattern="MM/dd/yyyy hh:mm aa"/>
        </tstamp>
        <condition property="windows">
            <os family="windows" />
        </condition>
        <condition property="unix">
            <os family="unix" />
        </condition>
        <condition property="solaris">
            <equals arg1="${os.name}" arg2="SunOS"/>
        </condition>
        <condition property="solaris-sparc">
            <os name="SunOS" arch="sparc"/>
        </condition>
        <condition property="solaris-x86">
            <os name="SunOS" arch="x86"/>
        </condition>
        <condition property="linux">
            <equals arg1="${os.name}" arg2="Linux"/>
        </condition>
        <condition property="darwin">
            <os name="Mac OS X"/>
        </condition>
        <condition property="aix">
            <equals arg1="${os.name}" arg2="AIX"/>
        </condition>
        <echo file="${adminpassfile}" append="false">AS_ADMIN_ADMINPASSWORD=${admin.password}</echo>
        <available file="${install.home}/lib/javaee.jar.pack.gz" property="run-jarunpack"/>
    </target>
     
    <target name="set.env" depends="set.env.win,set.env.unix"/>
     
    <target name="set.env.win" depends="setup.init" if="windows">
        <property name="ASADMIN" value="${install.home}/bin/asadmin.bat"/>
    </target>
     
    <target name="set.env.unix" depends="setup.init" if="unix">
        <property name="ASADMIN" value="${install.home}/bin/asadmin"/>
    </target>
     
    <target name="get.java.home">
         <condition property="suffix" value="/..">
            <and>
                <os family="unix"/>
                <not>
                    <os name="Mac OS X"/>
                </not>
            </and>
         </condition>
         <condition property="suffix" value="">
            <os name="Mac OS X"/> 
         </condition>
         <condition property="suffix" value="/..">
            <os family="windows"/> 
         </condition>
        <!-- setup the local.java.home -->
        <property name="local.java.home" value="${java.home}${suffix}"/>
    </target>
     
    <target name="validate-java" depends="setup.init" unless="darwin">
        <echo message="Current Java Version ${java.version}"/>
        <available file="${local.java.home}${file.separator}lib${file.separator}tools.jar" property="jdk.present"/>
        <fail message="Please set java.home to a JDK installation" unless="jdk.present"/> 
    </target>
     
    <target name="check-java" depends="setup.init">
        <antcall target="validate-java"/>
        <exec executable="${local.java.home}${file.separator}bin${file.separator}java" outputProperty="targeted.java.version">
           <arg line="-version"/>
        </exec>
        <condition property="java.version.acceptable">
           <or>
             <contains string="${targeted.java.version}" substring="1.5"/>
             <contains string="${targeted.java.version}" substring="1.6"/>
           </or>
        </condition>
        <fail message="Glassfish requires JDK 1.5 or higher, you have ${targeted.java.version}"  unless="java.version.acceptable"/>
    </target> 
     
    <target name="setup" depends="all"/>
     
    <target name="all" description="Installer the server" depends="setup.init,tools.init.windows,tools.init.solaris,tools.init.solaris-sparc,tools.init.solaris-x86,tools.init.linux,tools.init.darwin,check-installer-compatibility,installer-message" if="properinstaller">
     
        <!-- ===============  COPY ===================  -->
        <mkdir dir="${install.home}/bin"/>
     
        <antcall target="check-java"/>
     
        <antcall target="glassfish-jarunpack"/>
     
        <antcall target="do.copy"/>
     
        <!-- ============= TOKEN REPLACEMENT ===================  -->
        <antcall target="do.token"/>
     
        <!-- ============= CHMOD ===================  -->
        <antcall target="do.chmod"/>
     
         <!-- ============= CREATE ServiceTag Local Registry =========  -->
        <antcall target="create-local-registry"/>
     
        <!-- ============= CREATE DEFAULT DOMAIN ===================  -->
        <antcall target="create.domain"/>
     
    </target>
     
    <!-- Generate Local service tag registry -->
    <target name="create-local-registry">
        <ant  antfile="registry.xml" dir="${install.home}" target="setup.reg"/>
    </target>
     
    <target name="tools.init.windows" if="windows">
        <property name="derived.glassfish.os.name" value="WINNT"/>
    </target>
    <target name="tools.init.solaris" if="solaris">
        <property name="derived.glassfish.os.name" value="SunOS"/>
    </target>
    <target name="tools.init.solaris-sparc" if="solaris-sparc">
        <property name="derived.glassfish.os.name" value="SunOS"/>
    </target>
    <target name="tools.init.solaris-x86" if="solaris-x86">
        <property name="derived.glassfish.os.name" value="SunOS_X86"/>
    </target>
    <target name="tools.init.linux" if="linux">
        <property name="derived.glassfish.os.name" value="Linux"/>        
    </target>
    <target name="tools.init.darwin" if="darwin">
        <property name="derived.glassfish.os.name" value="Darwin"/>
    </target>
    <target name="installer-message" unless="properinstaller">
        <echo message="ERROR: You are trying to install wrong installer file for your operating system ${derived.glassfish.os.name}. Please download appropriate installer file for ${derived.glassfish.os.name} from https://sailfin.dev.java.net/downloads/downloads.html."/>
    </target>
     
    <target name="check-installer-compatibility" depends="check-osforbuildjarinstaller" unless="properinstaller">    
        <condition property="properinstaller">
            <equals arg1="${derived.glassfish.os.name}" arg2="${osforbuildjarinstaller}"/>
        </condition>    
    </target>
     
    <target name="check-osforbuildjarinstaller">    
        <condition property="properinstaller">
            <equals arg1="%OS_FOR_BUILD_JARINSTALLER%" arg2="${osforbuildjarinstaller}"/>
        </condition>    
    </target>
     
    <target name="remove.domain.xml">
        <echo message="Deleting File -> ${install.home}/lib/install/templates/${asadmin.default.profile}/domain.xml"/>
        <delete file="${install.home}/lib/install/templates/${asadmin.default.profile}/domain.xml" failonerror="false"/>
    </target>
     
    <target name="do.copy" 
            depends="-do.copy.common, do.copy.windows, do.copy.unix"/>
     
    <target name="-do.copy.common" depends="setup.init">
        <copy file="${install.home}/lib/install/templates/asadminenv.conf" 
              tofile="${asadmin.prefs.file}"/>
    </target>
     
    <target name="do.copy.windows" depends="setup.init" if="windows">
        <!-- copy to:: config -->
        <copy file="${install.home}/lib/install/templates/asenv.bat.template" 
              tofile="${install.home}/config/asenv.bat"/>
     
        <!-- copy to:: bin -->
        <copy file="${install.home}/lib/cliutil.dll" 
              tofile="${install.home}/bin/cliutil.dll"/>
        <copy file="${install.home}/lib/install/templates/asadmin.bat.template" 
              tofile="${install.home}/bin/asadmin.bat"/>
        <copy file="${install.home}/lib/install/templates/asant.bat.template" 
              tofile="${install.home}/bin/asant.bat"/>
        <copy file="${install.home}/lib/install/templates/appclient.bat.template" 
              tofile="${install.home}/bin/appclient.bat"/>
        <copy file="${install.home}/lib/install/templates/jspc.bat.template" 
              tofile="${install.home}/bin/jspc.bat"/>
        <copy file="${install.home}/lib/install/templates/package-appclient.bat.template" 
              tofile="${install.home}/bin/package-appclient.bat"/>
        <copy file="${install.home}/lib/install/templates/verifier.bat.template" 
              tofile="${install.home}/bin/verifier.bat"/>
        <copy file="${install.home}/lib/install/templates/asupgrade.bat.template" 
              tofile="${install.home}/bin/asupgrade.bat"/>
        <copy file="${install.home}/lib/install/templates/capture-schema.bat.template" 
              tofile="${install.home}/bin/capture-schema.bat"/>
        <copy file="${install.home}/lib/install/templates/wsimport.bat.template"
              tofile="${install.home}/bin/wsimport.bat"/>
        <copy file="${install.home}/lib/install/templates/wsgen.bat.template"
              tofile="${install.home}/bin/wsgen.bat"/>
        <copy file="${install.home}/lib/install/templates/schemagen.bat.template"
              tofile="${install.home}/bin/schemagen.bat"/>
        <copy file="${install.home}/lib/install/templates/xjc.bat.template"
              tofile="${install.home}/bin/xjc.bat"/>
        <copy file="${install.home}/lib/install/templates/asapt.bat.template"
              tofile="${install.home}/bin/asapt.bat"/>
        <copy file="${install.home}/lib/install/templates/wscompile.bat.template"
              tofile="${install.home}/bin/wscompile.bat"/>
        <copy file="${install.home}/lib/install/templates/wsdeploy.bat.template"
              tofile="${install.home}/bin/wsdeploy.bat"/>
        <copy file="${install.home}/updatecenter/lib/install/templates/updatetool.bat.template"
              tofile="${install.home}/updatecenter/bin/updatetool.bat"/>      
    </target>
     
    <target name="do.copy.unix" depends="setup.init" if="unix">
        <!-- copy to:: config -->
        <copy file="${install.home}/lib/install/templates/asenv.conf.template" 
              tofile="${install.home}/config/asenv.conf"/>
     
        <!-- copy to:: bin -->
        <copy file="${install.home}/lib/install/templates/uninstall.template" 
              tofile="${install.home}/bin/uninstall"/>
        <copy file="${install.home}/lib/install/templates/asadmin.template" 
              tofile="${install.home}/bin/asadmin"/>
        <copy file="${install.home}/lib/install/templates/asant.template" 
              tofile="${install.home}/bin/asant"/>
        <copy file="${install.home}/lib/install/templates/appclient.template" 
              tofile="${install.home}/bin/appclient"/>
        <copy file="${install.home}/lib/install/templates/jspc.template" 
              tofile="${install.home}/bin/jspc"/>
        <copy file="${install.home}/lib/install/templates/package-appclient.template" 
              tofile="${install.home}/bin/package-appclient"/>
        <copy file="${install.home}/lib/install/templates/verifier.template" 
              tofile="${install.home}/bin/verifier"/>
        <copy file="${install.home}/lib/install/templates/asupgrade.template" 
              tofile="${install.home}/bin/asupgrade"/>
        <copy file="${install.home}/lib/install/templates/capture-schema.template"
              tofile="${install.home}/bin/capture-schema"/>
        <copy file="${install.home}/lib/install/templates/wsimport.template"
              tofile="${install.home}/bin/wsimport"/>
        <copy file="${install.home}/lib/install/templates/wsgen.template"
              tofile="${install.home}/bin/wsgen"/>
        <copy file="${install.home}/lib/install/templates/xjc.template"
              tofile="${install.home}/bin/xjc"/>
        <copy file="${install.home}/lib/install/templates/schemagen.template"
              tofile="${install.home}/bin/schemagen"/>
        <copy file="${install.home}/lib/install/templates/asapt.template"
              tofile="${install.home}/bin/asapt"/>
        <copy file="${install.home}/lib/install/templates/wscompile.template"
              tofile="${install.home}/bin/wscompile"/>
        <copy file="${install.home}/lib/install/templates/wsdeploy.template"
              tofile="${install.home}/bin/wsdeploy"/>
        <copy file="${install.home}/updatecenter/lib/install/templates/updatetool.template"
              tofile="${install.home}/updatecenter/bin/updatetool"/>      
    </target>
     
    <target name="do.token" 
            depends="-do.tokenrep.common, do.token.windows, do.token.unix, do.token.jdic, do.token.enable.uc"/>
     
    <target name="-do.tokenrep.common" depends="setup.init">
        <echo message="Creating profile -> ${asadmin.default.profile}"/>
        <replace file="${asadmin.prefs.file}">
            <replacefilter token="%AS_ADMIN_PORT%" value="${admin.port}"/>
            <replacefilter token="%AS_ADMIN_PROFILE%" value="${asadmin.default.profile}"/>
            <replacefilter token="%AS_ADMIN_SECURE%" value="${asadmin.default.secure}"/>
        </replace>
    </target>
    <target name="do.token.windows" depends="setup.init" if="windows">
        <!-- token replacement:: bin/* -->
        <replace token="%CONFIG_HOME%"
                 value="${install.home}\config"
                 dir="${install.home}/bin"/>
     
        <replace file="${install.home}/bin/wsimport.bat">
            <replacefilter token="%INSTALL_HOME%" value="${install.home}"/>
            <replacefilter token="%WEBSERVICES_LIB%" value="${install.home}\lib"/>
            <replacefilter token="%JAVA_HOME%" value="${local.java.home}"/>
        </replace>
        <replace file="${install.home}/bin/wsgen.bat">
            <replacefilter token="%INSTALL_HOME%" value="${install.home}"/>
            <replacefilter token="%WEBSERVICES_LIB%" value="${install.home}\lib"/>
            <replacefilter token="%JAVA_HOME%" value="${local.java.home}"/>
        </replace>
        <replace file="${install.home}/bin/xjc.bat">
            <replacefilter token="%INSTALL_HOME%" value="${install.home}"/>
            <replacefilter token="%WEBSERVICES_LIB%" value="${install.home}\lib"/>
            <replacefilter token="%JAVA_HOME%" value="${local.java.home}"/>
        </replace>
        <replace file="${install.home}/bin/schemagen.bat">
            <replacefilter token="%INSTALL_HOME%" value="${install.home}"/>
            <replacefilter token="%WEBSERVICES_LIB%" value="${install.home}\lib"/>
            <replacefilter token="%JAVA_HOME%" value="${local.java.home}"/>
        </replace>
        <replace file="${install.home}/bin/asapt.bat">
            <replacefilter token="%INSTALL_HOME%" value="${install.home}"/>
            <replacefilter token="%WEBSERVICES_LIB%" value="${install.home}\lib"/>
            <replacefilter token="%JAVA_HOME%" value="${local.java.home}"/>
        </replace>
        <replace file="${install.home}/bin/wscompile.bat">
            <replacefilter token="%INSTALL_HOME%" value="${install.home}"/>
            <replacefilter token="%WEBSERVICES_LIB%" value="${install.home}\lib"/>
            <replacefilter token="%JAVA_HOME%" value="${local.java.home}"/>
        </replace>
        <replace file="${install.home}/bin/wsdeploy.bat">
            <replacefilter token="%INSTALL_HOME%" value="${install.home}"/>
            <replacefilter token="%WEBSERVICES_LIB%" value="${install.home}\lib"/>
            <replacefilter token="%JAVA_HOME%" value="${local.java.home}"/>
        </replace>
     
        <!-- append imqenv:: imq/etc/imqenv.conf -->
        <echo file="${install.home}/imq/etc/imqenv.conf" append="true">
            set IMQ_DEFAULT_JAVAHOME=${java.home}\..
            set IMQ_DEFAULT_VARHOME=${install.home}\domains\${domain.name}\imq
        </echo>
     
        <!-- token replacement:: config/asenv.conf -->
        <replace file="${install.home}/config/asenv.bat">
            <replacefilter token="%ANT_HOME%" value="${install.home}\lib\ant"/>
            <replacefilter token="%ANT_LIB%" value="${install.home}\lib\ant\lib"/>
            <replacefilter token="%WEBSERVICES_LIB%" value="${install.home}\lib"/>
            <replacefilter token="%NSS_HOME%" value="${install.home}\lib"/>
            <replacefilter token="%NSS_BIN_HOME%" value="${install.home}\lib\admincgi"/>
            <replacefilter token="%IMQ_LIB%" value="${install.home}\imq\lib"/>
            <replacefilter token="%IMQ_BIN%" value="${install.home}\imq\bin"/>
            <replacefilter token="%CONFIG_HOME%" value="${install.home}\config"/>
            <replacefilter token="%INSTALL_HOME%" value="${install.home}"/>
            <replacefilter token="%JAVA_HOME%" value="${local.java.home}"/>
            <replacefilter token="%JHELP_HOME%" value="${install.home}\lib"/>
            <replacefilter token="%ICU_LIB%" value="${install.home}\lib"/>
            <replacefilter token="%JATO_LIB%" value="${install.home}/lib"/>
            <replacefilter token="%WEBCONSOLE_LIB%" value="${install.home}/lib"/>
            <replacefilter token="%USE_NATIVE_LAUNCHER%" value="false"/>
            <replacefilter token="%LAUNCHER_LIB%" value="\jre\bin\client"/>
            <replacefilter token="%JDMK_HOME%" value="${install.home}/lib/SUNWjdmk/5.1"/>
            <replacefilter token="%LOCALE%" value="en_US"/>
            <replacefilter token="%DEF_DOMAINS_PATH%" value="${install.home}\domains"/>
            <replacefilter token="%ACC_CONFIG%" value="${install.home}\domains\${domain.name}\config\sun-acc.xml"/>
            <replacefilter token="%HADB_HOME%" value=" "/>
            <replacefilter token="%MFWK_HOME%" value=" "/>
            <replacefilter token="%DERBY_HOME%" value="${install.home}\javadb"/>
        </replace>
        <!-- token replacement:: updatecenter/config/ucenv.bat -->
        <replace file="${install.home}/updatecenter/config/ucenv.bat">
            <replacefilter token="@INSTALL_HOME@" value="${install.home}\updatecenter"/>
            <replacefilter token="%JAVA_HOME%" value="${local.java.home}"/>
            <replacefilter token="@EXT_LIB@" value="${install.home}\updatecenter\lib\schema2beans.jar"/>
            <replacefilter token="@REGISTRATION_DIR@" value="${install.home}\lib\registration"/>
        </replace>
        <replace file="${install.home}/updatecenter/bin/updatetool.bat">
            <replacefilter token="@INSTALL_HOME@" value="${install.home}\updatecenter"/>
        </replace>
        <replace file="${install.home}/updatecenter/config/config.xml">
            <replacefilter token="%appserver_home%" value="${install.home}"/>
        </replace>
     
    </target>
    <target name="do.token.unix" depends="setup.init" if="unix">
        <!-- token replacement:: bin/* -->
        <replace token="%CONFIG_HOME%"
                 value="${install.home}/config"
                 dir="${install.home}/bin"/>
     
        <replace file="${install.home}/bin/wsimport">
            <replacefilter token="%INSTALL_HOME%" value="${install.home}"/>
            <replacefilter token="%WEBSERVICES_LIB%" value="${install.home}/lib"/>
            <replacefilter token="%JAVA_HOME%" value="${local.java.home}"/>
        </replace>
        <replace file="${install.home}/bin/wsgen">
            <replacefilter token="%INSTALL_HOME%" value="${install.home}"/>
            <replacefilter token="%WEBSERVICES_LIB%" value="${install.home}/lib"/>
            <replacefilter token="%JAVA_HOME%" value="${local.java.home}"/>
        </replace>
        <replace file="${install.home}/bin/xjc">
            <replacefilter token="%INSTALL_HOME%" value="${install.home}"/>
            <replacefilter token="%WEBSERVICES_LIB%" value="${install.home}/lib"/>
            <replacefilter token="%JAVA_HOME%" value="${local.java.home}"/>
        </replace>
        <replace file="${install.home}/bin/schemagen">
            <replacefilter token="%INSTALL_HOME%" value="${install.home}"/>
            <replacefilter token="%WEBSERVICES_LIB%" value="${install.home}/lib"/>
            <replacefilter token="%JAVA_HOME%" value="${local.java.home}"/>
        </replace>
        <replace file="${install.home}/bin/asapt">
            <replacefilter token="%INSTALL_HOME%" value="${install.home}"/>
            <replacefilter token="%WEBSERVICES_LIB%" value="${install.home}/lib"/>
            <replacefilter token="%JAVA_HOME%" value="${local.java.home}"/>
        </replace>
        <replace file="${install.home}/bin/wscompile">
            <replacefilter token="%INSTALL_HOME%" value="${install.home}"/>
            <replacefilter token="%WEBSERVICES_LIB%" value="${install.home}/lib"/>
            <replacefilter token="%JAVA_HOME%" value="${local.java.home}"/>
        </replace>
        <replace file="${install.home}/bin/wsdeploy">
            <replacefilter token="%INSTALL_HOME%" value="${install.home}"/>
            <replacefilter token="%WEBSERVICES_LIB%" value="${install.home}/lib"/>
            <replacefilter token="%JAVA_HOME%" value="${local.java.home}"/>
        </replace>
     
        <!-- append imqenv:: imq/etc/imqenv.conf -->
        <echo file="${install.home}/imq/etc/imqenv.conf" append="true">
            IMQ_DEFAULT_JAVAHOME=${local.java.home}
            IMQ_DEFAULT_VARHOME=${install.home}/domains/${domain.name}/imq
        </echo>
     
        <!-- token replacement:: config/asenv.conf -->
        <replace file="${install.home}/config/asenv.conf">
            <replacefilter token="%ANT_HOME%" value="${install.home}/lib/ant"/>
            <replacefilter token="%ANT_LIB%" value="${install.home}/lib/ant/lib"/>
            <replacefilter token="%WEBSERVICES_LIB%" value="${install.home}/lib"/>
            <replacefilter token="%NSS_HOME%" value="${install.home}/lib"/>
            <replacefilter token="%NSS_BIN_HOME%" value="${install.home}/lib/admincgi"/>
            <replacefilter token="%IMQ_LIB%" value="${install.home}/imq/lib"/>
            <replacefilter token="%IMQ_BIN%" value="${install.home}/imq/bin"/>
            <replacefilter token="%CONFIG_HOME%" value="${install.home}/config"/>
            <replacefilter token="%INSTALL_HOME%" value="${install.home}"/>
            <replacefilter token="%JAVA_HOME%" value="${local.java.home}"/>
            <replacefilter token="%JHELP_HOME%" value="${install.home}/lib"/>
            <replacefilter token="%ICU_LIB%" value="${install.home}/lib"/>
            <replacefilter token="%JATO_LIB%" value="${install.home}/lib"/>
            <replacefilter token="%WEBCONSOLE_LIB%" value="${install.home}/lib"/>
            <replacefilter token="%USE_NATIVE_LAUNCHER%" value="false"/>
            <replacefilter token="%LAUNCHER_LIB%" value="/jre/lib/i386/client"/>
            <replacefilter token="%JDMK_HOME%" value="${install.home}/lib/SUNWjdmk/5.1"/>
            <replacefilter token="%LOCALE%" value="en_US"/>
            <replacefilter token="%DEF_DOMAINS_PATH%" value="${install.home}/domains"/>
            <replacefilter token="%ACC_CONFIG%" value="${install.home}/domains/${domain.name}/config/sun-acc.xml"/>
            <replacefilter token="%HADB_HOME%" value=" "/>
            <replacefilter token="%MFWK_HOME%" value=" "/>
            <replacefilter token="%DERBY_HOME%" value="${install.home}/javadb"/>
        </replace>
        <!-- token replacement:: updatecenter/config/ucenv.conf -->
        <replace file="${install.home}/updatecenter/config/ucenv.conf">
            <replacefilter token="@INSTALL_HOME@" value="${install.home}/updatecenter"/>
            <replacefilter token="$JAVA_HOME" value="${local.java.home}"/>
            <replacefilter token="@EXT_LIB@" value="${install.home}/updatecenter/lib/schema2beans.jar"/>
            <replacefilter token="@REGISTRATION_DIR@" value="${install.home}/lib/registration"/>
        </replace>
        <replace file="${install.home}/updatecenter/bin/updatetool">
            <replacefilter token="@INSTALL_HOME@" value="${install.home}/updatecenter"/>
        </replace>
        <replace file="${install.home}/updatecenter/config/config.xml">
            <replacefilter token="%appserver_home%" value="${install.home}"/>
        </replace>
     
    </target> 
     
    <target name="do.token.enable.uc" if="checkbox.value">
        <replace file="${install.home}/updatecenter/config/config.xml">
            <replacefilter token="never" value="TUE"/>
        </replace>
    </target>
     
    <target name="do.token.jdic" 
            depends="do.token.jdic.windows, do.token.jdic.solaris-sparc,
            do.token.jdic.solaris-x86, do.token.jdic.linux, do.token.jdic.mac"/>                                
     
     
    <target name="do.token.jdic.windows" if="windows">
        <replace file="${install.home}/updatecenter/config/ucenv.bat">
            <replacefilter token="@JDIC_LIB@" value="${install.home}\updatecenter\lib\jdic\windows\x86"/>
            <replacefilter token="@JDIC_STUB_LIB@" value="${install.home}\updatecenter\lib\jdic\windows"/>
        </replace>         
    </target>
     
    <target name="do.token.jdic.solaris-sparc" if="solaris-sparc">
        <replace file="${install.home}/updatecenter/config/ucenv.conf">
            <replacefilter token="@JDIC_LIB@" value="${install.home}/updatecenter/lib/jdic/sunos/sparc"/>
            <replacefilter token="@JDIC_STUB_LIB@" value="${install.home}/updatecenter/lib/jdic/sunos"/>
        </replace>         
    </target>
     
    <target name="do.token.jdic.solaris-x86" if="solaris-x86">
        <replace file="${install.home}/updatecenter/config/ucenv.conf">
            <replacefilter token="@JDIC_LIB@" value="${install.home}/updatecenter/lib/jdic/sunos/x86"/>
            <replacefilter token="@JDIC_STUB_LIB@" value="${install.home}/updatecenter/lib/jdic/sunos"/>
        </replace>         
    </target>
     
    <target name="do.token.jdic.linux" if="linux">
        <replace file="${install.home}/updatecenter/config/ucenv.conf">
            <replacefilter token="@JDIC_LIB@" value="${install.home}/updatecenter/lib/jdic/linux/x86"/>
            <replacefilter token="@JDIC_STUB_LIB@" value="${install.home}/updatecenter/lib/jdic/linux"/>
        </replace>         
    </target>
     
    <target name="do.token.jdic.mac" if="darwin">
        <replace file="${install.home}/updatecenter/config/ucenv.conf">
            <replacefilter token="@JDIC_LIB@" value="${install.home}/updatecenter/lib/jdic/mac/ppc"/>
            <replacefilter token="@JDIC_STUB_LIB@" value="${install.home}/updatecenter/lib/jdic/mac"/>
        </replace>         
    </target>
     
    <target name="do.chmod" depends="do.chmod.unix"/>
     
    <target name="do.chmod.unix" depends="setup.init">
        <!-- all the executable GlassFish/bin executable files -->
        <chmod perm="ugo+x">
        <fileset dir="${install.home}/bin"/>
        </chmod>
        <!-- all the GlassFish/lib libraries and helper executables -->
        <chmod perm="ugo+x">
        <fileset dir="${install.home}/lib">
            <include name="*.so"/>
            <include name="appserv"/>
            <include name="appservLauncher"/>
        </fileset>
        </chmod>
        <!-- the IMQ executables -->
        <chmod perm="ugo+x">
        <fileset dir="${install.home}/imq/bin"/>
        </chmod>
        <!-- Apache ANT -->
        <chmod perm="ugo+x">
        <fileset dir="${install.home}/lib/ant/bin">
            <!--
             We don't plan to run GlassFish under Cygwin.
             Cygwin requires executable bits for all the .exe, .dll, .bat and .cmd.
             If you want to run GlassFish under Cygwin, comment the following <exclude/>.
            -->
            <exclude name="*.bat"/>
            <exclude name="*.cmd"/>
        </fileset>
        </chmod>
        <!-- Netscape security executables -->
        <chmod perm="ugo+x">
        <fileset dir="${install.home}/lib/upgrade"/>
        </chmod>
        <!-- javadb -->
        <chmod perm="ugo+x">
        <fileset dir="${install.home}/javadb/bin">
            <include name="*.ksh"/>
            <!--
             For Cygwin use the following:
            <include name="*.bat"/>
            <include name="*.cmd"/>
            -->
        </fileset>
        </chmod>
        <!-- updatecenter -->
        <chmod perm="ugo+x">
        <fileset dir="${install.home}/updatecenter/bin"/>
        </chmod>
        <chmod file="${install.home}/lib/killserv" perm="ugo+x"/> 
    </target>
     
    <target name="create.domain" depends="setup.init,set.env,remove.domain.xml">
        <exec executable="${ASADMIN}" failonerror="true">
            <arg line="create-domain" />
            <arg line="--adminport ${admin.port}" />
            <arg line="--instanceport ${instance.port}" />
            <arg line="--user ${admin.user}" />
            <arg line="--passwordfile &quot;${adminpassfile}&quot;" />
            <arg line="--domainproperties orb.listener.port=${orb.port}:jms.port=${imq.port}:http.ssl.port=${https.port}" />
            <arg line="--savelogin" />
            <arg line="${domain.name}" />
        </exec>
        <delete file="${adminpassfile}" />
    </target>
     
    <target name="clean-runtime" depends="set.env">
        <exec executable="${ASADMIN}">
            <arg line="delete-domain"/>
            <arg line="${domain.name}" />
        </exec>
        <delete>
            <fileset dir="${install.home}/config" includes="asenv*,asadmin*"/>
            <fileset dir="${install.home}/bin" excludes="*.dll"/>
        </delete>
    </target>
     
    <!-- task for creating installer -->
    <taskdef name="installerBuilder"
             classname="org.jvnet.poormans_installer.builder.BuilderTask">
        <classpath>
            <fileset dir="${install.home}/lib/installer-builder">
                <include name="*.jar" />
             </fileset>
        </classpath>
    </taskdef>
     
    <target name="create-installer">
        <echo message="Creating an installer..."/>
        <installerBuilder
            licenseFile="${glassfish.license}"
            zipFile="${glassfish.zipfile}"
            classFile="${glassfish.class}"/>
    </target>
     
    <target name="compress-jars">
        <echo message="Running Jarpack on jarfiles first..."/>
        <antcall target="glassfish-jarpack"/>
        <antcall target="clean-packed-jars"/>
    </target>
     
    <target name="uncompress-jars">
        <echo message="Running Jar-Unpack on packed jarfiles..."/>
        <antcall target="glassfish-jarunpack"/>
    </target>
     
    <target name="create-zip">
        <echo message="Creating ${glassfish.zipfile} in ${install.home}..."/>
        <available file="${install.home}/../${glassfish.release.name}" type="dir" property="glassfish.present"/>
        <antcall target="copy-glassfish"/>
        <zip destfile="${glassfish.zipfile}"
            basedir="${install.home}/.."
            includes="${glassfish.release.name}/**"
            excludes="glassfish/samples/**"
        />
        <antcall target="delete-glassfish"/>
    </target>
     
    <target name="copy-glassfish" unless="glassfish.present">
        <echo message="Copying ${install.home} to ${install.home}/../${glassfish.release.name}"/>
        <mkdir dir="${install.home}/../${glassfish.release.name}"/>
        <copy  todir="${install.home}/../${glassfish.release.name}">
                <fileset dir="${install.home}" includes="**"/>
        </copy>
    </target>
     
    <target name="delete-glassfish" unless="glassfish.present">
         <delete dir="${install.home}/../${glassfish.release.name}"/>
    </target>
     
    <target name="build-jarinstaller-pe" depends="create-zip">
        <echo message="Creating installer for glassfish..."/>
        <antcall target="create-installer">
            <param name="license.file" value="${glassfish.license}"/>
            <param name="zip.file" value="${glassfish.zipfile}"/>
            <param name="class.file" value="${glassfish.class}"/>
        </antcall>
        <echo message="Creating installer jar for glassfish..."/>
        <jar destfile="../${glassfish_pe.release.name}-installer.jar" basedir="${install.home}">
            <include name="${glassfish.class}"/>
            <manifest>
                <attribute name="Main-Class" value="glassfish"/>
            </manifest>
         </jar>
         <delete file="${glassfish.zipfile}"/>
         <delete file="${glassfish.class}"/>
    </target>
     
    <target name="create-persistence-installer">
        <echo message="Creating an installer..."/>
        <installerBuilder
            licenseFile="${persistence-location}/${glassfish.license}"
            zipFile="${persistence-location}/${glassfish-persistence.zipfile}"
            classFile="${persistence-location}/${glassfish_persistence.class}"/>
    </target>
     
    <target name="create-persistence-zip">
        <echo message="Creating glassfish-persistence-image.zip..."/>
        <zip destfile="${persistence-location}/${glassfish-persistence.zipfile}"
            basedir="${persistence-location}/.."
            includes="glassfish-persistence/**"
            excludes="glassfish-persistence/*persistence*">
            <zipfileset dir="${glassfish.home}/lib" includes="toplink-essentials*.jar"
                prefix="glassfish-persistence"/>
        </zip>
    </target>
     
    <target name="build-persistence-jarinstaller" depends="create-persistence-zip">
        <echo message="Creating installer for glassfish-persistence..."/>
        <antcall target="create-persistence-installer">
            <param name="license.file" value="${persistence-location}/${glassfish.license}"/>
            <param name="zip.file" value="${persistence-location}/${glassfish-persistence.zipfile}"/>
            <param name="class.file" value="${persistence-location}/${glassfish_persistence.class}"/>
        </antcall>
        <echo message="Creating installer jar for glassfish-persistence..."/>
        <jar destfile="${persistence-location}/${glassfish.release.name}-persistence-installer.jar"
            basedir="${persistence-location}">
            <include name="${glassfish_persistence.class}"/>
            <manifest>
                <attribute name="Main-Class" value="glassfish_persistence"/>
            </manifest>
         </jar>
    </target>
     
    <target name="jarpack-tasks" >
        <taskdef name="pack200"
                 classname="com.sun.tools.apache.ant.pack200.Pack200Task"
                 classpath="${jarpack-task.jar}" />
        <taskdef name="unpack200"
                 classname="com.sun.tools.apache.ant.pack200.Unpack200Task"
                 classpath="${jarpack-task.jar}" />
    </target>
     
    <!-- Target to pack the jars using the Pack200 ant optional task -->
    <target name="jar-pack" depends="jarpack-tasks"
        description="Applying the pack utility on jars">
        <mkdir dir="${pack.jar.dir}/normalized" />
        <pack200 src="${pack.jar.dir}/${pack.jar.name}"
                  destfile="${pack.jar.dir}/normalized/${pack.jar.name}"
                  repack="true"
                  stripdebug="false"
                  deflatehint="keep"
                  unknownattribute="pass"
                  keepfileorder="true"/>
     
        <pack200 src="${pack.jar.dir}/normalized/${pack.jar.name}"
                  destfile="${pack.jar.dir}/normalized/${pack.jar.name}.pack.gz"
                  gzipoutput="true"
                  stripdebug="false"
                  deflatehint="keep"
                  unknownattribute="pass"
                  keepfileorder="true"/>
     
        <unpack200 src="${pack.jar.dir}/normalized/${pack.jar.name}.pack.gz"
                    dest="${pack.jar.dir}/normalized/a-${pack.jar.name}" />
     
        <pack200 src="${pack.jar.dir}/normalized/a-${pack.jar.name}"
                 destfile="${pack.jar.dir}/${pack.jar.name}.pack.gz"
                 gzipoutput="true"
                 stripdebug="false"
                 deflatehint="keep"
                 unknownattribute="pass"
                 keepfileorder="true" />
     
        <delete file="${pack.jar.dir}/${pack.jar.name}" />
    </target>
     
    <target name="jar-unpack" depends="jarpack-tasks">
        <unpack200 src="${pack.jar.dir}/${pack.jar.name}.pack.gz"
                   dest="${pack.jar.dir}/${pack.jar.name}" />
        <delete file="${pack.jar.dir}/${pack.jar.name}.pack.gz" />
    </target>
     
    <!-- Target to pack jars that are bundled with GlassFish -->
    <target name="glassfish-jarunpack" depends="setup.init" if="run-jarunpack">
        <echo message="Applying UnPack200 on Packed jars using JDK1.5 " />
        <echo message="${jarpack-task.jar}" />
        <antcall target="nonmac-jarunpack"/>
        <antcall target="jar-unpack">
            <param name="pack.jar.name" value="appserv-cmp.jar"/>
            <param name="pack.jar.dir" value="${install.home}/lib"/>
        </antcall>
        <antcall target="jar-unpack">
            <param name="pack.jar.name" value="appserv-jstl.jar"/>
            <param name="pack.jar.dir" value="${install.home}/lib"/>
        </antcall>
        <antcall target="jar-unpack">
            <param name="pack.jar.name" value="appserv-tags.jar"/>
            <param name="pack.jar.dir" value="${install.home}/lib"/>
        </antcall>
        <antcall target="jar-unpack">
            <param name="pack.jar.name" value="activation.jar"/>
            <param name="pack.jar.dir" value="${install.home}/lib/endorsed"/>
        </antcall>
        <antcall target="jar-unpack">
            <param name="pack.jar.name" value="webservices-api.jar"/>
            <param name="pack.jar.dir" value="${install.home}/lib/endorsed"/>
        </antcall>
        <antcall target="jar-unpack">
            <param name="pack.jar.name" value="webservices-rt.jar"/>
            <param name="pack.jar.dir" value="${install.home}/lib"/>
        </antcall>
        <antcall target="jar-unpack">
            <param name="pack.jar.name" value="webservices-tools.jar"/>
            <param name="pack.jar.dir" value="${install.home}/lib"/>
        </antcall>
        <antcall target="jar-unpack">
            <param name="pack.jar.name" value="com-sun-commons-launcher.jar"/>
            <param name="pack.jar.dir" value="${install.home}/lib"/>
        </antcall>
        <antcall target="jar-unpack">
            <param name="pack.jar.name" value="j2ee-svc.jar"/>
            <param name="pack.jar.dir" value="${install.home}/lib"/>
        </antcall>
        <antcall target="jar-unpack">
            <param name="pack.jar.name" value="jsf-impl.jar"/>
            <param name="pack.jar.dir" value="${install.home}/lib"/>
        </antcall>
        <antcall target="jar-unpack">
            <param name="pack.jar.name" value="sun-appserv-ant.jar"/>
            <param name="pack.jar.dir" value="${install.home}/lib"/>
        </antcall>
    <!-- 
        <antcall target="jar-unpack">
            <param name="pack.jar.name" value="sun-as-jsr88-dm.jar"/> 
            <param name="pack.jar.dir" value="${install.home}/lib/deployment"/>
        </antcall>
    -->
    <!-- 
        <antcall target="jar-unpack">
            <param name="pack.jar.name" value="toplink-essentials.jar"/>
            <param name="pack.jar.dir" value="${install.home}/lib"/>
        </antcall>
        <antcall target="jar-unpack">
            <param name="pack.jar.name" value="appserv-ext.jar"/>
            <param name="pack.jar.dir" value="${install.home}/lib"/>
        </antcall>
        <antcall target="jar-unpack">
            <param name="pack.jar.name" value="appserv-rt.jar"/>
            <param name="pack.jar.dir" value="${install.home}/lib"/>
        </antcall>
    -->
        <antcall target="jar-unpack">
            <param name="pack.jar.name" value="javaee.jar"/>
            <param name="pack.jar.dir" value="${install.home}/lib"/>
        </antcall>
        <antcall target="jar-unpack">
            <param name="pack.jar.name" value="appserv-admin.jar"/>
            <param name="pack.jar.dir" value="${install.home}/lib"/>
        </antcall>
        <antcall target="jar-unpack">
            <param name="pack.jar.name" value="admin-cli.jar"/>
            <param name="pack.jar.dir" value="${install.home}/lib"/>
        </antcall>
        <antcall target="jar-unpack">
            <param name="pack.jar.name" value="appserv-deployment-client.jar"/>
            <param name="pack.jar.dir" value="${install.home}/lib"/>
        </antcall>
        <antcall target="jar-unpack">
            <param name="pack.jar.name" value="appserv-se.jar"/>
            <param name="pack.jar.dir" value="${install.home}/lib"/>
        </antcall>
        <antcall target="jar-unpack">
            <param name="pack.jar.name" value="admin-cli-ee.jar"/>
            <param name="pack.jar.dir" value="${install.home}/lib"/>
        </antcall>
    </target>
     
    <!-- Target to pack jars that are bundled with GlassFish -->
    <target name="glassfish-jarpack" >
        <echo message="Applying Pack200 on GlassFish jars using JDK1.5, ${jarpack-task.jar}" />
        <antcall target="nonmac-jarpack"/>
        <antcall target="jar-pack">
            <param name="pack.jar.name" value="appserv-cmp.jar"/>
            <param name="pack.jar.dir" value="${install.home}/lib"/>
        </antcall>
        <antcall target="jar-pack">
            <param name="pack.jar.name" value="appserv-jstl.jar"/>
            <param name="pack.jar.dir" value="${install.home}/lib"/>
        </antcall>
        <antcall target="jar-pack">
            <param name="pack.jar.name" value="appserv-tags.jar"/>
            <param name="pack.jar.dir" value="${install.home}/lib"/>
        </antcall>
        <antcall target="jar-pack">
            <param name="pack.jar.name" value="activation.jar"/>
            <param name="pack.jar.dir" value="${install.home}/lib/endorsed"/>
        </antcall>
        <antcall target="jar-pack">
            <param name="pack.jar.name" value="webservices-api.jar"/>
            <param name="pack.jar.dir" value="${install.home}/lib/endorsed"/>
        </antcall>
        <antcall target="jar-pack">
            <param name="pack.jar.name" value="webservices-rt.jar"/>
            <param name="pack.jar.dir" value="${install.home}/lib"/>
        </antcall>
        <antcall target="jar-pack">
            <param name="pack.jar.name" value="webservices-tools.jar"/>
            <param name="pack.jar.dir" value="${install.home}/lib"/>
        </antcall>
        <antcall target="jar-pack">
            <param name="pack.jar.name" value="com-sun-commons-launcher.jar"/>
            <param name="pack.jar.dir" value="${install.home}/lib"/>
        </antcall>
        <antcall target="jar-pack">
            <param name="pack.jar.name" value="j2ee-svc.jar"/>
            <param name="pack.jar.dir" value="${install.home}/lib"/>
        </antcall>
        <antcall target="jar-pack">
            <param name="pack.jar.name" value="jsf-impl.jar"/>
            <param name="pack.jar.dir" value="${install.home}/lib"/>
        </antcall>
        <antcall target="jar-pack">
            <param name="pack.jar.name" value="sun-appserv-ant.jar"/>
            <param name="pack.jar.dir" value="${install.home}/lib"/>
        </antcall>
    <!-- 
        <antcall target="jar-pack">
            <param name="pack.jar.name" value="sun-as-jsr88-dm.jar"/> 
            <param name="pack.jar.dir" value="${install.home}/lib/deployment"/>
        </antcall>
    -->
    <!--
        <antcall target="jar-pack">
            <param name="pack.jar.name" value="toplink-essentials.jar"/>
            <param name="pack.jar.dir" value="${install.home}/lib/"/>
        </antcall>
        <antcall target="jar-pack">
            <param name="pack.jar.name" value="appserv-ext.jar"/>
            <param name="pack.jar.dir" value="${install.home}/lib"/>
        </antcall>
        <antcall target="jar-pack">
            <param name="pack.jar.name" value="appserv-rt.jar"/>
            <param name="pack.jar.dir" value="${install.home}/lib"/>
        </antcall>
    -->
        <antcall target="jar-pack">
            <param name="pack.jar.name" value="javaee.jar"/>
            <param name="pack.jar.dir" value="${install.home}/lib"/>
        </antcall>
        <antcall target="jar-pack">
            <param name="pack.jar.name" value="appserv-admin.jar"/>
            <param name="pack.jar.dir" value="${install.home}/lib"/>
        </antcall>
        <antcall target="jar-pack">
            <param name="pack.jar.name" value="admin-cli.jar"/>
            <param name="pack.jar.dir" value="${install.home}/lib"/>
        </antcall>
        <antcall target="jar-pack">
            <param name="pack.jar.name" value="appserv-deployment-client.jar"/>
            <param name="pack.jar.dir" value="${install.home}/lib"/>
        </antcall>
        <antcall target="jar-pack">
            <param name="pack.jar.name" value="appserv-se.jar"/>
            <param name="pack.jar.dir" value="${install.home}/lib"/>
        </antcall>
        <antcall target="jar-pack">
            <param name="pack.jar.name" value="admin-cli-ee.jar"/>
            <param name="pack.jar.dir" value="${install.home}/lib"/>
        </antcall>
    </target>
     
    <target name="nonmac-jarpack" depends="setup.init" unless="darwin">
        <antcall target="nonaix-jarpack"/>
    </target>
     
    <target name="nonaix-jarpack" depends="setup.init" unless="aix">
        <antcall target="jar-pack">
            <param name="pack.jar.name" value="appserv-ext.jar"/>
            <param name="pack.jar.dir" value="${install.home}/lib"/>
        </antcall>
        <antcall target="jar-pack">
            <param name="pack.jar.name" value="toplink-essentials.jar"/>
            <param name="pack.jar.dir" value="${install.home}/lib/"/>
        </antcall>
        <antcall target="jar-pack">
            <param name="pack.jar.name" value="appserv-rt.jar"/>
            <param name="pack.jar.dir" value="${install.home}/lib"/>
        </antcall>
    </target>
     
     
    <target name="nonmac-jarunpack" depends="setup.init" unless="darwin">
        <antcall target="nonaix-jarunpack"/>
    </target>
     
    <target name="nonaix-jarunpack" depends="setup.init" unless="aix">
        <antcall target="jar-unpack">
            <param name="pack.jar.name" value="appserv-ext.jar"/>
            <param name="pack.jar.dir" value="${install.home}/lib"/>
        </antcall>
        <antcall target="jar-unpack">
            <param name="pack.jar.name" value="toplink-essentials.jar"/>
            <param name="pack.jar.dir" value="${install.home}/lib"/>
        </antcall>
        <antcall target="jar-unpack">
            <param name="pack.jar.name" value="appserv-rt.jar"/>
            <param name="pack.jar.dir" value="${install.home}/lib"/>
        </antcall>
    </target>
     
     
    <!-- removes the packed jars -->
    <target name="clean-packed-jars" >
        <delete>
           <fileset dir="${install.home}/lib/normalized" includes="**/*" />
           <fileset dir="${install.home}/lib/endorsed/normalized" includes="**/*" />
        </delete>
        <delete dir="${install.home}/lib/normalized"/>
        <delete dir="${install.home}/lib/endorsed/normalized"/>
    </target>
     
    </project>
    J'ai ceci d'indiqué à la ligne 137
    Please set java.home to a JDK installation
    Quelqu'un saurait-il m'indiquer d'où peut venir le problème ? J'ai tout essayé et cherché un peu partout, sans succès.

    Merci d'avance pour votre aide.

  2. #2
    Expert éminent sénior
    Avatar de tchize_
    Homme Profil pro
    Ingénieur développement logiciels
    Inscrit en
    Avril 2007
    Messages
    25 481
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 44
    Localisation : Belgique

    Informations professionnelles :
    Activité : Ingénieur développement logiciels
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Avril 2007
    Messages : 25 481
    Points : 48 806
    Points
    48 806
    Par défaut
    Citation Envoyé par kitcarson23 Voir le message
    a la fin de l'installation j'a crée la variable environnementale suivante:
    nom de la variable: java_home
    valeur de la variable:
    C:\Program Files\Java\jdk1.6.0_24
    meme avec cela il pose des probleme de
    Non, ton message d'erreur dit que JAVA_HOME vaut C:\Program Files\Java\JRE6

    Maintenant, tu dis avoir tout essayé, mais le plus simple ça restait quand même de tapper


    SET JAVA_HOME="C:\Program Files\Java\jdk1.6.0_24" juste avant ta commande ant...

  3. #3
    Membre régulier
    Inscrit en
    Janvier 2007
    Messages
    219
    Détails du profil
    Informations forums :
    Inscription : Janvier 2007
    Messages : 219
    Points : 76
    Points
    76
    Par défaut
    Bonjour
    je suis entré dans le répertoire glassfish
    d:\glassfish> j'ai tapé la commande suivante
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    SET JAVA_HOME="C:\Program Files\Java\jdk1.6.0_24"
    comme indiqué
    en suite j'ai tapé la commande:

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    Lib\ant\bin\ant -f setup.xml
    alors il me renvoie le message suivant:
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    files\java\jdk1.6.0_24""
    était inattendu
    merci de votre assistance

  4. #4
    Expert éminent sénior
    Avatar de tchize_
    Homme Profil pro
    Ingénieur développement logiciels
    Inscrit en
    Avril 2007
    Messages
    25 481
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 44
    Localisation : Belgique

    Informations professionnelles :
    Activité : Ingénieur développement logiciels
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Avril 2007
    Messages : 25 481
    Points : 48 806
    Points
    48 806
    Par défaut
    Essaie

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    SET JAVA_HOME=""C:\Program Files\Java\jdk1.6.0_24""

    Sur les scripts qui foirent un peu les espaces dans les chemins, parfois, ça passe.

  5. #5
    Membre régulier
    Inscrit en
    Janvier 2007
    Messages
    219
    Détails du profil
    Informations forums :
    Inscription : Janvier 2007
    Messages : 219
    Points : 76
    Points
    76
    Par défaut
    Bonsoir
    merci à tous
    comme vous Avez indiqué j'ai tapé la commande avec les doubles guillemets
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    SET JAVA_HOME=""C:\Program Files\Java\jdk1.6.0_24""
    j'ai lance les différentes commandes
    j'ai comme résultat BUILD SUCCESSFUL
    j'ai aussi pu lancer le serveur
    il a démarré
    merci beaucoup
    je continue avec le reste du projet.

+ Répondre à la discussion
Cette discussion est résolue.

Discussions similaires

  1. Unable to locate tools.jar
    Par tupac25 dans le forum ANT
    Réponses: 0
    Dernier message: 19/04/2013, 02h21
  2. Erreur "Missing artifact com.sun:tools:jar:1.5.0"
    Par sekaijin dans le forum Maven
    Réponses: 19
    Dernier message: 19/01/2012, 18h57
  3. Réponses: 3
    Dernier message: 26/10/2006, 11h42
  4. [débutant] erreur "indice de liste hors limites(1)"
    Par lidouka dans le forum Langage
    Réponses: 2
    Dernier message: 13/12/2005, 14h31

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo