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.

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

  • 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

  • How to run form in the background from command line

    please can anybody tell me to
    how to run form in the background from command line
    vishal

    Ummm....Oracle Forms is a foreground runtime kind of thing. What you want is a database procedure (or an OS utility - it depends on what sort of processing you want to do in the background).
    Cheers, APC

  • Error while running ADF-BC Test Suite from command line

    Hi,
    I have created a separate test project containing the Test Suite for the Model componenet of my ADF-BC  application.
    I need to run this test project separately from jmeter.
    The tests run fine from Jdev, But when I package the test project into a jar and try to run from command line, I get the following error:
    java.lang.NoClassDefFoundError: oracle/jbo/ApplicationModule
            at com.oracle.cs.cap.module.applicationModule.ServiceAMFixture.<init>(ServiceAMFixture.java:36)
            at com.oracle.cs.cap.module.applicationModule.ServiceAMFixture.<clinit>(ServiceAMFixture.java:15)
            at com.oracle.cs.cap.module.view.EntitlementReportDurationViewVO.EntitlementReportDurationViewVOTest.<init>(EntitlementReportDurationViewVOTest.java:11)
            at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
            at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
            at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
            at java.lang.reflect.Constructor.newInstance(Unknown Source)
            at org.junit.internal.runners.JUnit4ClassRunner.createTest(JUnit4ClassRunner.java:72)
            at org.junit.internal.runners.JUnit4ClassRunner.invokeTestMethod(JUnit4ClassRunner.java:79)
            at org.junit.internal.runners.JUnit4ClassRunner.runMethods(JUnit4ClassRunner.java:51)
            at org.junit.internal.runners.JUnit4ClassRunner$1.run(JUnit4ClassRunner.java:44)
            at org.junit.internal.runners.ClassRoadie.runUnprotected(ClassRoadie.java:27)
            at org.junit.internal.runners.ClassRoadie.runProtected(ClassRoadie.java:37)
            at org.junit.internal.runners.JUnit4ClassRunner.run(JUnit4ClassRunner.java:42)
            at org.junit.internal.runners.CompositeRunner.runChildren(CompositeRunner.java:33)
            at org.junit.runners.Suite.access$000(Suite.java:26)
            at org.junit.runners.Suite$1.run(Suite.java:93)
            at org.junit.internal.runners.ClassRoadie.runUnprotected(ClassRoadie.java:27)
            at org.junit.internal.runners.ClassRoadie.runProtected(ClassRoadie.java:37)
            at org.junit.runners.Suite.run(Suite.java:91)
            at org.junit.internal.runners.CompositeRunner.runChildren(CompositeRunner.java:33)
            at org.junit.internal.runners.CompositeRunner.run(CompositeRunner.java:28)
            at org.junit.runner.JUnitCore.run(JUnitCore.java:130)
            at org.junit.runner.JUnitCore.run(JUnitCore.java:109)
            at org.junit.runner.JUnitCore.run(JUnitCore.java:100)
            at org.junit.runner.JUnitCore.runMain(JUnitCore.java:81)
            at org.junit.runner.JUnitCore.main(JUnitCore.java:44)
    Caused by: java.lang.ClassNotFoundException: oracle.jbo.ApplicationModule
            at java.net.URLClassLoader$1.run(Unknown Source)
            at java.security.AccessController.doPrivileged(Native Method)
            at java.net.URLClassLoader.findClass(Unknown Source)
            at java.lang.ClassLoader.loadClass(Unknown Source)
            at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
            at java.lang.ClassLoader.loadClass(Unknown Source)
            ... 27 more
    The Test project jar is created as ADF Library JAR File with Model.jpr as the dependent project. This takes care of project class dependencies
    All the adf library dependencies are added to the manifest file of the Test Project jar referring to a location lib/ in the jar file directory.
    I tried creating the ApplicationModule using both Configuration class (Configuration.createRootApplicationModule) as well as using the JDBC Connection String but both fail when I run the test cases independently from jmeter.
    Anybody came across such an error? Please help.
    Thanks,
    Sapna

    Hi Timo,
    Im using JDev version 11.1.1.6.0.
    I checked the class path on the jdev console. All the library references are mentioned in the manifest.mf classpath of the test project like below:
    Manifest-Version: 1.0
    Class-Path: lib/identitystore.jar
    lib/adfm.jar
    lib/groovy-all-1.6.3.jar
    lib/adftransactionsdt.jar
    lib/adf-dt-at-rt.jar
    lib/adfdt_common.jar
    lib/adflibrary.jar
    lib/xmlparserv2.jar
    lib/db-ca.jar
    lib/jdev-cm.jar
    lib/ojmisc.jar
    lib/commons-el.jar
    lib/jsp-el-api.jar
    etc...
    So I expect the library references should be resolved looking at the manifest file.
    Another set of entries that I see in the jdev classpath are related to the Model project which is under test.
    -classpath
    D:\CurrentProject_1\16_7_2013_3pm\11_7_2013\.adf;
    D:\CurrentProject_1\16_7_2013_3pm\11_7_2013\Model\classes;
    How do I put these entries into my class path? Will it be sufficient if I add the Model.jar into my test project classpath?
    Thanks,
    Sapna

  • Acrobat 9 - Use Optimize PDF from command-line or batch

    one can use the functionality optimize pdf from the command line or a batch script?
    thanks

    I found the solution. With the batch sequence i create the pdf optimization, and use the plug-in Autobatchtool (from the partner evermap) to run this batch from command-line. Thanks for you help

  • Install and setup FTP in Windows 7 from command line

    Hi
    I want to do the following things from command line in Windows 7.
    1. Enable IIS and FTP. The command in the following link installs only the IIS: http://www.iis.net/learn/install/installing-iis-7/installing-iis-from-the-command-line
    2. Create ftp site and edit bindings as well
    Thanks,
    Lina :)

    You are looking for this information
    http://social.technet.microsoft.com/Forums/windowsserver/en-US/dc4fcf93-8268-44f4-822a-d463d9443f6c/windows-7-and-server-2003-printer-server-issues?forum=winserverprint
    Alan Morris Windows Printing Team

  • Unable to restart the Microsoft Software Protection Platform service from command line - Win81 MS Office 2013 SP1

    I'm unable to restart the Microsoft Software Protection Platform service on a Windows 8.1 laptop for MS Office 2013 SP1 (32-bit) using the following command:
    cscript ospp.vbs /osppsvcrestart (issued from C:\Program Files (x86)\Microsoft Office\Office15)
    When this is run, a window appears with the title ospp.vbs and the text "Error: The Software Protection Platform service is not installed"
    I verified that the service is installed in services.msc, and was able to manually stop and restart the SPP service in the Services console without issue.
    The command runs correctly when restarting the MS Office 2013 SPP on Windows 7 devices.
    Has anyone else seen this or have a solution for it?
    The reason that I am attempting to restart the service from the command line is because this command is part of a script to change the KMS server IP Address used by OSPP prior to software activation.
    The only other options that I have at this time is to ask the users to reboot, or manually force a reboot.  This is both time consuming and disruptive to the users.
    The Fix It tool to remove MS Office 2013 was run, and the MS Office 2013 software was successfully reinstalled after a reboot.  The software was successfully activated.  When the command was run, it produced the same exact error.

    Hi,
    I am able to reproduce this on my own machine, but in my case, I don't see the specific service running in the Services console. 
    I would like first confirm that whether you've the right service running on your Windows 8.1 system. The display name of this service should be "Office Software Protection Platform", service name is "osppsvc".
    You can also check this by going to below path where you should see the executable file (OSPPSVC.EXE) if the service is installed on your system (in my case, the folder is empty):
    C:\Program Files\Common Files\Microsoft Shared\OfficeSoftwareProtectionPlatform
    Regards,
    Ethan Hua
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Run report in Oracle Application from command line

    Hi All,
    I have a requirement that i have to generate a report through command line and save the output as pdf in a folder on the server. How can i achieve this task. Is any body have some idea plz reply quickly. We have a UAT at 10th of this month.
    Thanx in Advance.
    Saquib Mahmood

    Hi,
    You can use CONCSUB (or SQL*Plus with anonymous PL/SQL block calling fnd_request.submit_request) to submit concurrent request which is a report with output set to PDF, then get the pdf file from $APPLCSF/$APPLOUT/o<request_id>.out and copy to the folder on the server as xxxx.pdf.
    Regards,
    Gareth
    Blog: http://garethroberts.blogspot.com/

  • 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 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>

  • 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

  • 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

Maybe you are looking for

  • Tuning Oracle Applicatons Order Management Query

    Hi We are trying to build a Order Management related workbench for this I have created below query as per the client requirement. And I have to use one package function to get Available_qty based on client defination. Package Function name is "xx_eg_

  • Can't focus on custom itemRenderer?

    I have made a custom itemRenderer doubling as an itemEditor following the guidelines in the documentation. However, even though I have set the rendererIsEditor="true", when tabbing amongst other editable fields, the controls inside the itemRenderer d

  • Open ParametersのcommentIDとは何ですか?

    Adobe Acrobat 7.0.9 Standard Windows 2000 PDFのOpen Parametersを調査しているのですが.「comment=commentID」の「commentID」とは何を設定すればいいのかわかりません. ご存知の方がいらっしゃれば.ご教示ください. サンプルでは http://example.org/doc.pdf#page=1&comment=452fde0e-fd22-457c-84aa-2cf5bed5a349 と.書かれているのでノートツール

  • Wiki Server 2 Template choices.

    I may have over looked this simple option in the documentation but... I want to remove all templates except for the custom template we have created as a choice on the wiki settings. Does anyone know which .plist I need to edit to hide the other templ

  • FCP7 - Computer shut down after 5 minutes of importing HDV footage

    Hello, I've searched around forums for a couple hours now looking for people with similar problems as mine. I've taken about 10 minutes of 1080i, 24p, footage on my Canon HV40 camera. I'm capturing the footage in HDV-Apple ProRes 422 1080p24 using my