Azure SDK for Java on Mac/Linux

I need to develop a part (communication with Service Bus) of a solution in Java (normally I use C# for development) on Mac/Linux. Can I just use the microsoft-windowsazure-api-0.4.6.jar file of the Azure SDK for Mac/Linux in my project, because I don't
use Maven?
Thanks.
Guy

When trying out some code using the Windows Azure SDK for Java (on a Mac) obviously just adding the jar to my project and adding it to my build path isn't just enough. I get error messages such as:
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory
at com.microsoft.windowsazure.services.core.Configuration.<clinit>(Configuration.java:48)
at com.microsoft.windowsazure.services.serviceBus.ServiceBusConfiguration.configureWithWrapAuthentication(ServiceBusConfiguration.java:88)
at xx.yyy.zzzz.aaaaa.ServiceBusClient.<init>(ServiceBusClient.java:20)
at xx.yyy.zzzz.aaaaa.Main.main(Main.java:7)
Caused by: java.lang.ClassNotFoundException: org.apache.commons.logging.LogFactory
at java.net.URLClassLoader$1.run(URLClassLoader.java:372)
at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:360)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
... 4 more
When clicking e.g. on Configuration.java:48 I get: Source not found.
The JAR file microsoft-windowsazure-api-0.4.6.jar has no source attachment.
What am I missing. Thanks for your help.

Similar Messages

  • Porting from JDK 1.2.2 to MS SDK for Java 4.0 - Help!!!

    Hi All!
    My company is developing big project using WLS 4.5.1. + JDK 1.2.2 + Java
    Plug-In 1.2.2 on clients. A lot of applied code depend on Java 2 APIs,
    javax/swing is actively used as well. But the customer decide to use
    Microsoft VM both on server and client sides - they have support contract
    (for other products) with MS and MS may decide to cancel support if our
    customer will use Sun JDK and Sun JVM.
    So, I have to try to port all project to MS SDK for Java and the question
    is: Do I have a chance not to rewrite 100% of my code?
    Somewhere I read: ":I've downloaded the new MS Virtual Machine
    (msjavx86.exe) that should be compatible to Java2:" - is it really so? Does
    anybody knows if MS will support Java 2 platform specifications? As I found
    at MS, latest MS JDK 4.0 (on which WLS 5.1 can run) meets specification of
    Java 1.1 and after installing it I found that I must rewrite about 90% of my
    code. Can someone clarify the situation with MS JDK?
    Thanks in advance,
    Andrey Bogush
    PS: Any information, links, documents, overviews on how to persuade the
    customer to use Sun JDK and JVM against MS one are VERY and STRONGLY welcome

    Andrey Bogush wrote:
    >
    Hi All!
    My company is developing big project using WLS 4.5.1. + JDK 1.2.2 + Java
    Plug-In 1.2.2 on clients. A lot of applied code depend on Java 2 APIs,
    javax/swing is actively used as well. But the customer decide to use
    Microsoft VM both on server and client sides - they have support contract
    (for other products) with MS and MS may decide to cancel support if our
    customer will use Sun JDK and Sun JVM.MS can cancel their support if they use Sun's JDK! That's an
    "interesting" clause in your support contract.
    >
    So, I have to try to port all project to MS SDK for Java and the question
    is: Do I have a chance not to rewrite 100% of my code?
    Somewhere I read: ":I've downloaded the new MS Virtual Machine
    (msjavx86.exe) that should be compatible to Java2:" - is it really so?I don't believe any versions of Microsoft's JVMs support Java2.
    Personally, I think it would be a big waste of time to port working
    Java2 code to JDK 1.1 just to run MS's JVM.
    -- Rob
    Does
    anybody knows if MS will support Java 2 platform specifications? As I found
    at MS, latest MS JDK 4.0 (on which WLS 5.1 can run) meets specification of
    Java 1.1 and after installing it I found that I must rewrite about 90% of my
    code. Can someone clarify the situation with MS JDK?
    Thanks in advance,
    Andrey Bogush
    PS: Any information, links, documents, overviews on how to persuade the
    customer to use Sun JDK and JVM against MS one are VERY and STRONGLY welcome

  • Use vCloud SDK for Java to integrate with vCD 5.6

    Hello Folks,
             Newbie here.
             I have a situation where a home grown app, that uses vCloud SDK for Java to invoke a vCloud Director 5.1 installation. We use this for powering on/ off a few VMs.
             Our installation is being upgraded from vCloud Director 5.1 to 5.6.
             My question is, are we expected to upgrade/ carry out any code changes to our current implementation to integrate with the newer runtime version (5.6)?
             Many thanks in advance.
    Regards
    Mohan

    Somewhat going from memory here.
    As long as the REST API Versions URL states that it is compatible with 5.1, then you should be fine to make the calls as v5.1.
    Here is the section of the documentation for that:
    Using the vCloud API with vCloud Director
    The I think the SDKs are just wrappers in a manner of speaking.  They all eventually translate code (java/python/etc) into a REST API system that is sent into vCloud Director via the API.  For the most part, I think it'll work.
    That's not talking about "support", just that it should work with some exceptions.  I don't know if there is an official stance on cross compatibility like this.

  • SonyEricsson SDK for Java ME - version 2.5.0.2 - Where?

    Hi. I'm looking for a SonyEricsson SDK for Java ME, and I need its version 2.5.0.2 (for p1i on-device debug). But only 2.5.0.3 can be downloaded from developer.sonymobile.com. I've looked for it on google, but I haven't found. Does somebody have this version? If you have it, or you know a download link, post me, please. Thanks!

    I've had a look but that version doesn't seem to be available for download anymore, either on Sony's developer world site, or anywhere else. I suggest you contact Sony and see if they can help you:
    http://www.sonymobile.com/global-en/support/contact-us/

  • How we create .cspack and cscfg and csdef file for deployement service for azure sdk for php

    my project is on php .I want create virtual machine on azure using azure sdk for php but in deployment it need cspack and cssfg file . I want the way to which i get those file .

    Hi Nasreen,
    Thanks for posting here!
    Refer to :
    http://blogs.msdn.com/b/rmattsampson/archive/2014/04/03/azure-development-in-the-azure-sdk-2-3-and-update-2-rc.aspx and
    https://msdn.microsoft.com/library/azure/jj157194.aspx
    Hope this helps!
    Regards,
    Sadiqh

  • Cannot restart website using Azure/azure-sdk-for-node

    I have a couple of websites working and running and I am trying to build a monitoring service for them.
    One of the operations its supposed to do is restart the website. The SDK contains a restart function which issues a POST request to the azure management server. For some reason the request doesn't return the Pipeline's callback, it doesn't even enter there.
    I have opened an issue on Github about it but for almost 2 weeks no answers : https://github.com/Azure/azure-sdk-for-node/issues/1407
    Other requests work properly. The documentation says i can read more about it here: http://msdn.microsoft.com/en-us/library/windowsazure/dn236425.aspx , but this link isn't available anymore.
    Can someone please help me?
    Regards :) 

    I have a couple of websites working and running and I am trying to build a monitoring service for them.
    One of the operations its supposed to do is restart the website. The SDK contains a restart function which issues a POST request to the azure management server. For some reason the request doesn't return the Pipeline's callback, it doesn't even enter there.
    I have opened an issue on Github about it but for almost 2 weeks no answers : https://github.com/Azure/azure-sdk-for-node/issues/1407
    Other requests work properly. The documentation says i can read more about it here: http://msdn.microsoft.com/en-us/library/windowsazure/dn236425.aspx , but this link isn't available anymore.
    Can someone please help me?
    Regards :) 

  • What's the difference between Netscape SDK for Java & JNDI?

    I know I can use either JNDI or Netscape SDK to access iDS. So whats their differences basically?
    Why would I need JNDI/Netscape SDK if I can just use either of them to access iDS?
    Thanks!

    Netscape SDK for JAVA developed only for iplanet Directory Server but JNDI for any directory server.
    JNDI has classes provided by Sun that will help your application interact with an LDAP server.JNDI applications work similarly to JDBC applications - write applications once and be free to use "drivers" from different vendors. Sun provides the "driver" that will help interact with the LDAP server. Sun also provides "drivers" for other naming services (like CORBA, Netscape).
    The Java Naming and Directory Interface (JNDI) allows Java applications to use a single set of methods to access multiple naming and directory services such as LDAP and NIS.
    JNDI is a Java API that provides a common way for programmers to access a variety of naming and directory services. The API consists of several packages:
    javax.naming for naming operations (access entries)
    javax.naming.directory for directory operations (access attributes)
    javax.naming.event for requesting event notification
    javax.naming.ldap for LDAP-specific features.
    JNDI operates through a layer of software called a Service Provider. The Service Provider implements the JNDI operations in terms of a particular underlying protocol.
    JNDI's Service Provider Interface (SPI) allows you to select Service Providers at runtime. In many cases you can use the same JNDI methods regardless of whether the Service Provider is talking to an LDAP server or using another protocol such as NIS. In order to access all of the functionality of the LDAP protocol, however, you will have to use methods outside of this abstraction.

  • Ebusiness Suite SDK for Java session management

    Hi, I am trying to try sample java application mentioned in Oracle® E-Business Suite Software Development Kit for Java Release 11i and 12 Part No. E28169-02
    Current version i am trying is Jdeveloper 11.1.1.4.0 and Ebiz suite 12.1.3
    able to create Apps Data source with out any issue.
    when Home.jsp is accessed through application menu, user name and all session related information is showing as NULL.
    how to resolve this issue.

    Hi Shay,
    I gone through the webinar.
    Here is more explanation of my issue.
    I created Apps Data source earlier. That time i registered external node in ebusiness suite with node_name as ip_address of weblogic server.
    But that time session details came as Null on sample Java application.
    Then i realized that may be the issue and corrected registration of external node and corrected ebiz profile options accordingly.
    When i tried to create Apps data source with fresh dbc file, i got into invalid username/pwd issue.
    As per following forum discussion topic, hyphen and dots in host name will cause issue with Apps data source creation, which is confirmed by couple of discussion participants and Juan also.
    https://kr.forums.oracle.com/forums/thread.jspa?threadID=2489849&start=30&tstart=0
    My weblogic host name is like WL-SOADEV-01.domainname.com
    what should be my further actions to resolve this issue.
    Thanks
    Maheedhar.J

  • How to set default audio device for java apps on Linux?

    I would like to find a way to choose a particular (ALSA) audio device for java applications. How can this be done without reprogramming the application or changing the default ALSA device? I came across "sound.properties", but could not find any information how to use this file on an ALSA system.
    Thanks for any help, Mark

    Eugenia wrote:Well, it's still not good enough.
    We can't satisfy everyone. What you want is a corner case. For most people ALSA and dmix works appropriately, and that is what esd uses by default. We cannot document and automate every configuration possible. That's up to the users.
    However, if you don't want to restart gnome, try the below... I make a few assumptions, but even if they're wrong, they're hardly difficult to work around.
    Just copy the /etc/esd.conf to ~/.esd.conf, make your change, then do killall esd. Presumably gnome will restart esd, and it ought to read your local config. If it doesnt, start it yourself.
    Feel free to write a script that automates this, or document it on the wiki.
    I have to restart Gnome to get this thing working. Other OSes *automatically* can use an alternative device. But if I change ESD, I will have to restart Gnome, no?
    Well, if you try my suggestion above, no. You can restart esd yourself. And that's what all the other distros do, except with some fancy GUI.
    James

  • Java Software Development Kit (SDK) for Java 6 on Leopard.

    Does anyone know if the Java Software Development Kit (SDK) comes with Leopard, or if one needs to sign up for an Apple developer account to obtain it?
    I typed the following command on the Terminal command line: 
        javac
    The output of that command was:
    Usage: javac <options> <source files>
    where possible options include:
      -g                         Generate all debugging info
      -g:none                    Generate no debugging info
      -g:{lines,vars,source}     Generate only some debugging info
      -nowarn                    Generate no warnings
      -verbose                   Output messages about what the compiler is doing
      -deprecation               Output source locations where deprecated APIs are used
      -classpath <path>          Specify where to find user class files
      -cp <path>                 Specify where to find user class files
      -sourcepath <path>         Specify where to find input source files
      -bootclasspath <path>      Override location of bootstrap class files
      -extdirs <dirs>            Override location of installed extensions
      -endorseddirs <dirs>       Override location of endorsed standards path
      -d <directory>             Specify where to place generated class files
      -encoding <encoding>       Specify character encoding used by source files
      -source <release>          Provide source compatibility with specified release
      -target <release>          Generate class files for specific VM version
      -version                   Version information
      -help                      Print a synopsis of standard options
      -X                         Print a synopsis of nonstandard options
      -J<flag>                   Pass <flag> directly to the runtime system
    I would like to use Java version 6.

    Hi John,
    I sort of remember Java 6  being IntelMac only...
    Once you’ve gotten logged in, go to Downloads, select “Java” on the right hand side of the page, and download the Java SE 6 beta. Note: this is only available for Intel Macs running Tiger or Leopard — if you’ve got a G4 or G5, you’re out of luck right now
    http://www.metaphoriclabs.com/articles/installing-java-6-on-mac-os-x/
    But here they are...
    http://ituploads.com/apple/macintosh-os-x-java-jdk/
    Can I do Java 6 development in OS X?...
    http://stackoverflow.com/questions/739418/can-i-do-java-6-development-in-os-x

  • Microsoft SDK for Java

    Well i am new at Java but i found it necessary to convert some libraries i made previously in C++ that deals with various aspects in the WIN2k server ... when i tried to do this in java i wasn't able to access win32api ..( unless building my virtual machine :)) ). so i searched and found that the microsoft VM supports alot of intresting stuff like J/direct and win32 api access and the WFC ...
    so as i won't use java ( at least at this point) in development for other OSes i wanted to know how could i use the MSVM in development . and if the sdk is legal or it is still under the 7 year treaty or what ...
    if it isn't feasable how could i access DLL files on windows and api (regardless of what is written in Core Java Volume 2)

    You'd better go on JNI side:
    1. ms jvm is going to be less and less supported
    2. j/direct is not the standard way to call native code
    3. if you're planning to port your code on another platform, you will use the same java code and rewrite the native part as needed.
    I've used JNI and can tell you is very simple to use, specially if you're an experienced c/c++ programmer.
    Good start points:
    http://java.sun.com/docs/books/tutorial/native1.1/index.html
    http://java.sun.com/products/jdk/faq/jni-j2sdk-faq.html
    Hope it helps

  • HT5228 What about a security fix for Java under Mac OS 10.4 and 10.5?

    Apple recognized and offered a fix for the Flashback trojan here:
    http://support.apple.com/kb/HT5228?viewlocale=en_US&locale=en_US
    But it is only for OS 10.7 and 10.6.  Presumably, users of 10.5 and 10.4 are still vulnerable.  Because Apple insisted on providing Java support, rather than Oracle, the fix that was released in February doesn't work unless Apple were to make it work.
    If Apple is unwilling to support Java for 10.5 and 10.4, they need to hand over whatever documentation Oracle would need so they can keep the Java environment (and security) up to date.  10.5 and 10.4 are still viable OSes and to not patch obvious security flaws in one way or another is irresponsible, at best.

    http://www.apple.com/feedback/ - Apple products feedback links
    I wouldn't expect anything to come of it.
    I have disabled Java on my browsers.  It isn't really neded all that often.

  • Problem in setting path and classpath for java in RedHat linux 9

    Hi ,
    i am not able to set the PATH and CLASSPATH for j2sdk1.4.2_06
    I have tried with export PATH=$PATH:/usr/j2sdk1.4.2_06/bin
    and export CLASSPATH=$CLASSPATH:/usr/j2sdk1.4.2_06/lib
    in terminal
    but i want to configure it as permenant way for the jre and jdk
    and we should only type java or javac according to the requirement
    regards mihir...

    type those in .bashrc ... save and exit
    then at prompt, type 'source .bashrc'
    this is the permanent solution ...
    bhalo thakun

  • Exception in openDocument call - SDK for Java

    Hi,
    Getting exception in openDocument call to get object of type DocumentInstance. Snippet -
    IEnterpriseSession eSession=(IEnterpriseSession)session.getAttribute("EnterpriseSession");     
    if ( eSession != null)
         ReportEngine webiRepEngine = (ReportEngine) eSession.getService("", "WebiReportEngine");
                    webiRepEngine.setLocale(request.getLocale().getLanguage());
         session.setAttribute("ReportEngine", webiRepEngine);
                   String searchID = "149729";
                   query = "SELECT SI_ID, SI_NAME, SI_PARENTID,"
         + " SI_KIND, SI_INSTANCE, SI_DESCRIPTION FROM"
         + " CI_INFOOBJECTS WHERE SI_PARENTID = " + searchID;
                  try
          IInfoStore localInfoStore = (IInfoStore)session.getAttribute("InfoStore");
          list = localInfoStore.query(query);
         catch(Exception sdke){
              System.out.println("query exception - " + sdke);
                    DocumentInstance doc = null;
                    ReportEngine repEngine = (ReportEngine)session.getAttribute("ReportEngine");
                    for (int reportCnt = 0; reportCnt < list.getResultSize(); reportCnt++)
              IInfoObject document = (IInfoObject) list.get(reportCnt);
                                    doc = repEngine.openDocument(document.getID());
    In the logs I can see correct value of 'document.getID()' for the corresponding document. However at the call - openDocument(document.getID()), exception -
    Web Intelligence cannot perform the intended action on this document. (Error: WIS 30650)
    Am I missing something in above code?
    Any help will be greatly appreciated.
    Thanks
    -A
    Edited by: aditya gaurav on Aug 15, 2008 10:25 PM
    Edited by: aditya gaurav on Aug 15, 2008 10:30 PM

    Thanks for the reply Ted.
    Iterating only through documents with parent ID as a specific ID (as in the 'query'). Currently in our environment, it returns 2 ID's (for 2 files as present in the infoview) and hence looping twice to get these 2 files.
    To rule out the probability of checking on invalid document ID (under the call openDocument(docID) ), even tried hard-coding the document ID (to the value as seen in infoview). And still the error continues.
    Can it be something related to configuration of BO server?
    -A

  • Help on Directory SDK for Java

    Hi
    I work using LDAP Directory SDK, i have a requirement to compare two LDIF files or compare an LDIF file with a directory subtree and provide a new LDIF which is having only changes.
    Is there any resources available on this ?
    Swaraj

    Is there anyone who could answer this one ?
    Swaraj

Maybe you are looking for

  • How to Add using Actionscript

    Hi, This may seem to be a simple problem, but I am not sure how to get the heads and tails from this. I have written up a code snippet that spits out the values based from the output from an external HTTPService. The variables I declared are integer

  • Strange alert every time I get a message

    Every time I get a message, I hear a strange noise. It doesn't matter if my skype window is active or not, it will make the sound (usually I get a different sound only when skype ISN'T active)This tells me that it's obviously linked to skype somehow,

  • Managed-property enum

    Hi, I would like to use a member of Java 5 enum as the value of a managed-property but I can't seem to get it to work. I have tried the following configurations in faces-config.xml <managed-property> <property-name>fieldName</property-name> <property

  • How to set policy password to Uppercase

    Hi!!! Somebody knows how to setup the policy password in OID in order to consider one Uppercase Character in the syntax. Thank's for your help.

  • AF100 clip names not showing up in PP.  Still just numbers.

    Okay, so I copies the metadata to the camera and what not. Check. Record some clips. Check. When I view the clips in the Mac finder window, the name I gave the clips pre the metadata show up just fine (test0001, test 0002), but when I import those sa