locked
how to install healthvault java sdk RRS feed

  • Question

  • hi,
    I am new to java, I've downloaded "changset # 41669" under "source code" tabl from http://healthvaultjavalib.codeplex.com/SourceControl/ListDownloadableCommits.aspx. I found 3 folders namely branches, trunks and tags.Each of the folders contains some subfolders which includes SDK in that. I have read "Readme.txt" which talks about "maven" build environment. What is the steps to install the java SDK for healthvault. Am I in the right way? I dont find much documents regarding this. Can anyone of you guide me please?
    Thursday, December 3, 2009 6:36 AM

Answers

  • Hello Kumaresh,

    Yes you can follow the instructions given in the "Readme.txt" for the Java SDK installation. It gives a step by step procedure to do the same.

    If you need any detailed information on the same I would suggest you to try posting the same in http://healthvaultjavalib.codeplex.com/Thread/List.aspx.

    Hope this helps.

    Thanks and Regards,
    Aneesh D.
    Thursday, December 3, 2009 10:45 PM
  • If you just want to run it you can just install it using mvn and then directly run it.

    It seems you are trying to run it using Eclipse. My best guess is you don't have access privileges to this repository.

    I would suggest you to put this query in the http://healthvaultjavalib.codeplex.com/Thread/List.aspx forum.

    Thanks and Regards,
    Aneesh D.
    Tuesday, December 8, 2009 11:40 PM

All replies

  • Hello Kumaresh,

    Yes you can follow the instructions given in the "Readme.txt" for the Java SDK installation. It gives a step by step procedure to do the same.

    If you need any detailed information on the same I would suggest you to try posting the same in http://healthvaultjavalib.codeplex.com/Thread/List.aspx.

    Hope this helps.

    Thanks and Regards,
    Aneesh D.
    Thursday, December 3, 2009 10:45 PM
  • I followed the readme.txt, in that they told to configure M2_REPO variable to map at maven repository. After doing so, I ran jetty:run server in the command promplt, but it's saying error as  follows:

    [INFO] Failed to resolve artifact.

    Missing:
    ----------
    1) com.microsoft.hsg:hv-sdk:jar:jaxb-SNAPSHOT

      Try downloading the file manually from the project website.

      Then, install it using the command:
          mvn install:install-file -DgroupId=com.microsoft.hsg -DartifactId=hv-sdk
    Dversion=jaxb-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file

      Alternatively, if you host your own repository you can deploy the file there:

          mvn deploy:deploy-file -DgroupId=com.microsoft.hsg -DartifactId=hv-sdk -D
    ersion=jaxb-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -Dreposit
    ryId=[id]

      Path to dependency:
            1) hv:weight-jaxb-ui:war:0.1-SNAPSHOT
            2) com.microsoft.hsg:hv-sdk:jar:jaxb-SNAPSHOT

    2) com.microsoft.hsg:hv-jaxb:jar:jaxb-SNAPSHOT

      Try downloading the file manually from the project website.

      Then, install it using the command:
          mvn install:install-file -DgroupId=com.microsoft.hsg -DartifactId=hv-jaxb
    -Dversion=jaxb-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file

      Alternatively, if you host your own repository you can deploy the file there:

          mvn deploy:deploy-file -DgroupId=com.microsoft.hsg -DartifactId=hv-jaxb -
    version=jaxb-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -Dreposi
    oryId=[id]

      Path to dependency:
            1) hv:weight-jaxb-ui:war:0.1-SNAPSHOT
            2) com.microsoft.hsg:hv-jaxb:jar:jaxb-SNAPSHOT

    ----------
    2 required artifacts are missing.

    for artifact:
      hv:weight-jaxb-ui:war:0.1-SNAPSHOT

    from the specified remote repositories:
      central (http://repo1.maven.org/maven2)

    [INFO] ------------------------------------------------------------------------
    [INFO] For more information, run Maven with the -e switch
    [INFO] ------------------------------------------------------------------------
    [INFO] Total time: 13 seconds
    [INFO] Finished at: Sat Dec 05 11:59:10 IST 2009
    [INFO] Final Memory: 8M/14M
    [INFO] ------------------------------------------------------------------------

    I do not know where I did mistake. Can you help me out in resolving this issue?

    Saturday, December 5, 2009 6:31 AM
  • If you just want to run it you can just install it using mvn and then directly run it.

    It seems you are trying to run it using Eclipse. My best guess is you don't have access privileges to this repository.

    I would suggest you to put this query in the http://healthvaultjavalib.codeplex.com/Thread/List.aspx forum.

    Thanks and Regards,
    Aneesh D.
    Tuesday, December 8, 2009 11:40 PM
  • Kumaresh,

    This might be helpful:
    http://social.msdn.microsoft.com/Forums/en-US/healthvault/thread/4021eafb-4241-4499-b0cf-238306449a5e

    Thank you,
    Anish Ravindran
    Wednesday, December 9, 2009 9:38 AM
  • In the link you said, the weight data can only be entered, If I want to add some more types lile allergy, immunization, labresults, family histroy, demographic info, what should I do?. Apart from this the weight data is not stored in healthvault's ppe. How should I store in ppe? I have stored, retrieved the above said data using .net, but in java I find it bit difficult[since am a begineer in java]
    Thursday, December 10, 2009 5:39 AM
  • I ran directly by typing http://localhost:8080/jwildcat-ui in the browser, which worked well. My query is, If I add some more types like Allergy, Immunization and so on in the sample project, how it will get reflected in the browser. How should I store these data in the healthvault PPE?

    Kindly reply

    Thanks in advace.
    Thursday, December 10, 2009 5:43 AM
  • Java SDK has limited data type support and it ONLY allows to view and add weight measurements.

    Thank you,
    Anish Ravindran
    Thursday, December 10, 2009 9:46 AM
  • Hi Mr.Anish,

    Thanks for your reply. May I know what are the data types that is supported in java sdk? and can I store the supporting data types in PPE?

    Thursday, December 10, 2009 12:17 PM
  • Hi Kumaresh,

    Using the current Java SDK you can work only with Weight Data Type. Thank you.

    Anish Ravindran
    Thursday, December 10, 2009 12:49 PM
  • Anish-- why do you state that the Java SDK only allows use of the Weight data type?  That is not accurate.  The vast majority of HealthVault data types are available via the Java SDK.
    Friday, December 18, 2009 6:08 AM
  • All--

    Sorry for the incorrect communication. Please find the list of all Health Vault data types which are supported in Java SDK from the latest change set, under the 'jaxb' folder.

    Thanks for the heads up.

    Thank you
    Anish Ravindran
    Monday, December 21, 2009 6:59 PM
  • Can you explain how to use the data types which is in jaxb folder? I have posted the same query in codeplex forum, didn't get much information.... Kindly do the needful seniors, provide me some code level help...
    Monday, December 21, 2009 11:28 PM
  • I have planned to use .net SDK, since I am not much comfortable with java SDK!!!
    Tuesday, December 22, 2009 10:53 PM