Beginner Question:Unable to build and run Javapetstore using  Sun SDK.

Hi, there is a problem I�ve come across building and running JavaPetstore from Command Line using Ant.
It shows that Build is successful but there is an error message in very beginning:
�Unable to locate tools. jar. Expected to find it in C:\Program Files\Java\jre 1.5.0_11\lib\tools.jar�
But there is no such a file in jre-1.5.0_11 or previous versions.
The only place where the file with such name can be found is jdk\lib.
All attempts to run end up with:
� BUILD FAILED.
C:\<PETSTORE_HOME>\bp-project\command-line-ant-task.xml:77;unable to find javac compiler;com.sun.tools.javac.Main is not on the class path.
Perhaps JAVA_HOME does not point to JDK.
Directories C:\Sun\SDK\bin and C:\Sun\SDK\jdk are in the PATH.
JAVA_HOME as a System variable is set up to C:\Sun\SDK\jdk.
Building and running other applications like a BluePrints or Samples brings to same result.
I will post more information if needed.
Thank you in advance for help.

Multiply duplicated

Similar Messages

  • Unable to build and run Javapetstore using  Sun SDK

    Hi,
    There is a problem I�ve come across building and running JavaPetstore from Command Line using Ant.
    It shows that Build is successful but there is an error message in very beginning:
    �Unable to locate tools. jar. Expected to find it in C:\Program Files\Java\jre 1.5.0_11\lib\tools.jar�
    But there is no such a file in jre-1.5.0_11 or previous versions.
    The only place where the file with such name can be found is jdk\lib.All attempts to run end up with:
    � BUILD FAILED.
    C:\<PETSTORE_HOME>\bp-project\command-line-ant-task.xml:77;unable to find javac compiler;com.sun.tools.javac.Main is not on the class path.
    Perhaps JAVA_HOME does not point to JDK.
    Directories C:\Sun\SDK\bin and C:\Sun\SDK\jdk are in the PATH.
    JAVA_HOME as a System variable is set up to C:\Sun\SDK\jdk.
    Building and running other applications like a BluePrints or Samples brings to same result.
    What can I do? I will post more information if needed.
    Thank you in advance for help.

    Multiply duplicated

  • Unable to build and run Javapetstore using  Sun SDK from Command Line

    Hi,
    Here is a problem I?ve come across building and running JavaPetstore from Command Line using Ant.
    It shows that Build is successful but there is an error message in very beginning:
    ?Unable to locate tools. jar. Expected to find it in C:\Program Files\Java\jre 1.5.0_11\lib\tools.jar?
    But there is no such a file in jre-1.5.0_11 or previous versions.
    The only place where the file with such name can be found is jdk\lib.
    All attempts to run end up with:
    ? BUILD FAILED.
    C:\<PETSTORE_HOME>\bp-project\command-line-ant-task.xml:77;unable to find javac compiler;com.sun.tools.javac.Main is not on the class path.
    Perhaps JAVA_HOME does not point to JDK."
    Directories C:\Sun\SDK\bin and C:\Sun\SDK\jdk are in the PATH.
    JAVA_HOME as a System variable is set up to C:\Sun\SDK\jdk.
    Building and running other applications like a BluePrints or Samples bring to same result.
    I will post more information if needed.
    Thank you in advance for help.

    If you are using Windows XP:
    1. Right click on my computer
    2. Select Properties from the popup dialog
    3. Click on the "Advanced" tab
    4. Click the button towards the bottom that says "Environment Variables"
    5. In the dialog that pops up, look in both the User variables and the System variables for a variable named CLASSPATH
    6. If its not there, you need to create it. If you want to make it available to all users of your computer, create it as a System variable. If you only want it to be available to the current user, add it as a User variable.
    7. If it is there, or if you just created it, it needs to contain the following values: the current directory (symbolically abbreviated as a period: "."), any class libraries you want to be available to the java compiler (javac) or the java interpreter (java). By default, jre/lib and jre/lib/ext are searched for classes, so you don't need to include anything located in one of these folders on the classpath.

  • Xcode 4 and applescript to build and run a target

    I am not really able to find clear info about how this should work; seems that since Xcode4 was introduced, Applescript does not work anymore with it.
    All that i have to do is to launch Xcode4, open a project, select a target and build and run (to be more specific, i have a test target that runs Unit tests; that's what i am trying to launch); but so far I was unable to tell Applescript how to do this simple action.
    The project is fine, it builds and runs nicely, even using xcodebuild; but it doesn't seem to work if i try via Applescript.
    Is there anyone that knows how to actually tell Xcode to build a specific target with specific build settings? I am running the simulator4.0 as SDK. configuration Debug, target called "mytestsuite".
    So far I can only launch and load the project into Xcode, but any other option fails, like when i tell the project that i want to build.
    Any help is more than appreciated; the lack of resources honestly is making me think to abandon Applescript for something that has more examples and is much more user friendly...but for now I gotta use it so can't avoid to deal with it (can't use xcodebuild sadly).
    Thanks in advance for any info.

    No worries; my nick is pretty common among people that likes Japanese animation (is the nick of the main protagonist of a series called *******!!! that was pretty popular in the 90s); the only place where i use it is mainly here or on pelicanparts and classicamiga.
    Anyway surprise me that nobody use applescript to build Xcode4 projects; probably everyone uses either xcode3 or just use xcodebuild.

  • How to build and run sample extensions?

    I spend quite a while in trying to get the sample extensions to run, provided at
    Adobe-CEP/CEP-Resources · GitHub  or also in the Adobe Illustrator CC 2014 SDK for the Plugins that have a GUI.
    So far i did not succeed.
    System Windows 7 x64. Illustrator CC
    First try:
    Package one of the samples using the Adobe package manager. Added the whole folder of "CEP_HTML_Test_Extension" or as well the "TutorialUI" from the SDK samples.
    and then install the resulting zxp file it using the "Extension manager". No errors reported. Extension managers lists the Extension as active for AI CC. Started Illustrator.
    But i dont see anything in illustrator. There is no entry "Extensions" in the Windows menu of Illustrator.
    The menus of the Tutorial PlugIn are shown, but the Dialog of the sample does not show up. In the debugger i noticed that the call to pFnLoadExtension fails.
    Second try:
    Following the pdf "USING THE ADOBE EXTENSION SDK" (http://wwwimages.adobe.com/content/dam/Adobe/en/devnet/creativesuite/pdfs/CC14_Extension_S DK.pdf)
    Package done as before
    Activated PlayerDebugMode in HKEY_CURRENT_USER\Software\Adobe\CSXS.5
    copied the zxp file to C:\Program Files\Common Files\Adobe\CEP\extensions
    Same result. I do not see anything of a extension.
    I had no problems building and running the Sample Plugins though.
    What am i doing Wrong?
    How can i build and run a simple sample extension?
    Any help appreciated.

    Help About Illustrator shows:
    Version 2014 1.0
    18.1.0 (64 Bit)
    From Samples-master\UI_Showcase\CSXS\manifest.xml i see:
    <HostList>
    <Host Name="ILST" Version="[17.0,17.9]" />
    <Host Name="PHSP" Version="[14.0,14.9]"/>
    <Host Name="PHXS" Version="[14.0,14.9]"/>
    <Host Name="PPRO" Version="[7.0,7.9]" />
    </HostList>

  • How to change the application status back to build and run

    hi ,
    i changed my applications status to run only .. and now system is not allowing me to change the status of my application back to "build and run"
    any help is appriciated..
    Thanks

    I found the solution for my problem as go on below track and change the setting.
    Home-->Application Builder-->Cross Application Reports-->Build Status and Application Status

  • HT1926 I a m unable to install and run the lates - Error 7()Windows error 1114)t version of iTunes. I keep getting a rruntime error - R6034 and a windows error

    I am unable to install and run  the latest version ot iTunes. Getting "Runtime error - R6034. An application has made an attempt to load the C runtime library incorrectly"
    Error 7(Windows error 1114)

    Try and not duplicate these issues and do a search next time.
    Now load https://discussions.apple.com/thread/5826672?start=0&tstart=0
    and that Topic has the correct information to fix this problem.
    Regards
    pcbugfixer

  • When do Build and Run..getting HTTP Status 404 - ApacheTomcat/5.5.35 error

    Hello OPA Expert,
    I have a projected created which I can build successfully but when I am click on Build and Run option from the build menu. I am getting following error on the web page :
      HTTP Status 404 -
    type Status report
    message
    description The requested resource () is not available.
    ApacheTomcat/5.5.35 error
    Please help in correct this so that I can see the output or the screen which I have created.
    Thanks and Regards,
    Aditya

    The project is just the default code you get when you create a new project?
    Have you tried creating a new project and running it to see if the problem changes?
    HAve you tried runnign a clean and then a build?
    If you've done that and it still crashes create a new user, log into that account and try Xcode. Does it crash in the new user account also?
    If it runs as the new user something in your environment is causing the problem. If it crashes as the new user also then it is a system wide issue. In this case I'd try a re-install of Xcode first.
    post back with the results.
    regards

  • OPM "build and run" error

    Hi
    I have a problem with OPM when I use "build and run".
    I only get a message "The system cannot find the file specified" and nothing more. It has worked, but it used to open Google Chrome browser. Since I did not want this behaviour I uninstalled Google Chrome. But then I got this error instead.
    I can run "build and debug" prefectly fine.
    The problem is not related to a specific project.
    I have also tried to reinstall OPM but the problem remains.
    What file is it the system cannot find? Is there a way of finding this in a log somewhere?
    How does the "build and run" command work? Is there a way of checking why it can not open the browser?
    kind regards,
    Michael

    Hi Andrew
    Just to add some more observations.
    It seems that OPM doesn't look directly to the default browser setting. If I change the default browser, OPM does not directly recognize the new setting. OPM opens the previous selected default browser anyway.
    I dont know if the setting is unique per project or if it is per OPM installation.
    OPM seems to pick up the default browser, but then OPM caches this somewhere. Which caused problem for me when I uninstalled Google Chrome. OPM insisted on trying to start Google Chrome anyway.
    When I now got Firefox working as default browser the problem solved it self. But when I selected IE as default browser, then when I ran OPM it still opened Firefox, and Firefox gave me the warning that it was not default browser.
    So OPM does not always look at the default browser setting.
    kind regards,
    Michael

  • Build and run Sun's PetStore1.3.1_02 application with BEA WebLogic Server 8.1.

    build and run Sun's PetStore
    1.3.1_02 application with BEA WebLogic Server 8.1.
    5) In the same Command Prompt, compile PetStore using the commands:
    cd c:\bea\user_projects\domains\petstore
    setPetStoreEnv.cmd
    cd c:\petstore1.3.1_02\src
    ant
    buildfile:build.xml does not exist!
    build failed
    could you tell me how ?
    thank you

    What we, BEA, provides is a patch to allow you to compile Pet Store for
    WebLogic Server. It does not contain the source code.
    Sun's Pet Store source code can be found at
    http://developer.java.sun.com/developer/releases/petstore/petstore1_3_1_02.h
    tml. See the requirements section of README.TXT
    You need both in order to make it work.
    "Ankur" <[email protected]> wrote in message
    news:3fa9f2d9$[email protected]..
    Hi Nick,
    I tried building the petstore1.3.1_02 application following theinstructions in the readme. But I got an error as the buil.xml file is
    missing in the directory.....\petstore1.3.1_02\src.
    >
    I tried unzipping the downloaded again and for a petstore.domain.jar alongwith the readme. This jar does not contain the build.xml file.
    >
    Then I tried compiling one by one the component folder and found that the../xmldocuments/src folder has only a build.xml file but no source file...
    >
    Kinldy suggest what to do? Can you send me the zip via email?
    P.S: I have checked the zip and the files are missing.

  • Xcode Build and Run window doesn't show anything i done in .xib even a Label?

    I am new to xcode ,try to learn programing ,i try to build a simple Mac program ,i drag a label icon to .xib user interface and SAVE then RUN ,in the window it won't show anything ?  anyone can help ? thanks

    The NewTry window looks like the window that opened when you ran the app not the window in the builder, right?
    You need to open thre app window in the builder. To do this you need to select the app cube  window icon in the column to the left of the builder window.
    Select the solid blue cube   window icon that says NewTry App Delegate like this
    (note the name of the cube  window icon will reflect the app name which is why the above says Test App App Delegate)
    Once you have that window open in the builder then you can drag ui elements into it and they will appear when you build and run the app.
    Of course getting them to do something is another issue entirely!
    Message was edited by: Frank Caggiano - its not the blue cube but the window icon above it.

  • When PC System timing hits 0000hrs Loops back to start and runs again using Loop function?

    When PC System timing hits 0000hrs Loops back to start and runs again using Loop function?

    It's all described in the help for it. Vista version:
    Attachments:
    Task Scheduler.png ‏61 KB

  • Since Febuary 14th, 2013 we are unable to send and recieve email using our hotmail account on our Iphone. We can get our email by loggin in with our computer but not using our Iphone.

    Since Febuary 14th, 2013 we are unable to send and recieve email using our hotmail account on our Iphone. We can get our email by loggin in with our computer but not using our Iphone.

    Hotmail has been discontinued for some time now.  See:
    http://windows.microsoft.com/en-us/windows/outlook/auto-upgrade-outlook-faq

  • How to change foreground and background color using CC SDK?

    Hello all,
    I am just starting to study the sdk (Mac CC). Currently, I am seeking the answer to change foreground and background color using CC SDK?
    Is it possible to do so? In addition, will the Image Mode such as RGB, CYMK or Grayscale be effecting such solution?
    Thanks in advance.

    These are NOT dropdown menus. They are dropdown LISTS.
    http://web.me.com/toad.hall/Demo1/Drop_DownMenus.html
    And from the links in the Google search you can learn that a list item has no style.
    And a dropdown list behaves differently from dropdown menus. Here's how it looks on Mobile Safari :

  • Error While Runnig Calender Build and Run Automated Benefit cobol Process

    While Running Pay Calender Build and Automated Benefit cobol process i m getting a error
    Maximum number of set Run Cntl Record Loaded into Array.
    Array Limit Exceeded
    at pos 00028
    Please any one can help me to get rid of this problem.
    Thanks,
    Amit Asawa

    Hussein Sawwan wrote:
    Please post the details of the application release, database version and OS.Oracle EBS R12.1.1 windows server 2003
    Please verify you have no invalid objects in the database and no errors are reported in the database log file.i dont know where can i find this log file ?
    Search MOS for (ORA-06512 and GLPPOS) and go through the docs.i am sorry i don't have MOS ID :)
    Thank you
    kareem

Maybe you are looking for