JNI - WIN 32 - How to create a shared Lib ??

Can any one please tell me how to create a shared library in win 2000 environment. I am a novice to JNI. As of now I have reached to step 5 of JNI tutorial.
http://java.sun.com/docs/books/tutorial/native1.1/stepbystep/step5.html
But I can not find the command cl ????? to create a shared library ..
what should I do ??

Under Windows -- get VC++ and follow the tutorial to create a DLL (dynamic link library). That IS what is known as a shared library under UNIX.
Regards.

Similar Messages

  • How to control the shared libs when creating an new OC4J  in AS 10.1.3.4

    Hi there
    I experience some wired behavior in AS 10.1.3.4!
    I Have 2 different installation of AS 10.,1.3.4 (Win 2003 server).
    When I create an OC4J instance (using the manager) at virtual server 1 I got 28 global libraries
    When I create an OC4J instance (using the manager) at virtual server 2 I got 30 global libraries, (+ apache.webservices & oracle.ifs.client )
    Why this difference ?
    And how to control it?
    Note the default instance "Home" has 28 libraries on both servers!!
    Why is it sometime possible possible to use <instance>applib for the jar, and sometime I need to create an <instance>\shared-lib\global.libraries\1.0 library ?
    Regards HAns

    Hi there
    I experience some wired behavior in AS 10.1.3.4!
    I Have 2 different installation of AS 10.,1.3.4 (Win 2003 server).
    When I create an OC4J instance (using the manager) at virtual server 1 I got 28 global libraries
    When I create an OC4J instance (using the manager) at virtual server 2 I got 30 global libraries, (+ apache.webservices & oracle.ifs.client )
    Why this difference ?
    And how to control it?
    Note the default instance "Home" has 28 libraries on both servers!!
    Why is it sometime possible possible to use <instance>applib for the jar, and sometime I need to create an <instance>\shared-lib\global.libraries\1.0 library ?
    Regards HAns

  • How to create a shared review without an internal server

    I have Adobe Acrobat XI Pro, and I'm trying to create a shared review where myself and 2 colleagues can make edits and add comments to the same PDF simultaneously. Basically, we're all tasked with editing the document and have to work on it at the same time, but need one finished product at the end.  I've tried the "send for email review" option, and my colleagues have tried making edits and sending it back to me, but when I click on "track reviews," there's nothing there, so I can't figure out how to integrate their edits with mine (so there are now 3 separate documents with different edits). When I try "send for shared review", the only option it gives me is via internal server, which I don't have access to. Any recommendations would be helpful!

    Well Roy,
    I was also facing some similar problem, just now got my service displayed in portal. Thanks a lot that you could solve it urself. Anyway, now for using this service from another portal component do the following
    1. Add SharingReference value in Deployment Descriptor of the portal app from where u want to access this service
    example:
    <application-config>
    <property name="SharingReference"       value="com.customer.training.MyFirstPortalApp">
    </property>
    </application-config>
    2. Add libraries of the Portal Service (xxxapi.jar)
    in your par file u can see one jar file as <servicename>api.jar . extract this to some other location and in the client portal app project add this .jar to its build path.
    3. Write code to access the Portal Service
        a. Import package of the Portal Service
        b. Get instance of the Portal Service
        c. Call methods of the Portal Service
    example:IPortalRuntimeResources runtimeResources =      PortalRuntime.getRuntimeResources();
    IService aService = runtimeResources.getService("com.customer.training.MyFirstPortalApp.MyService");
    // OR
    IService aService = runtimeResources.getService(IMyService.KEY);
    // Cast the Service
    IMyService myService = (IMyService)aService;
    // call methods of the service
    response.write(myService.getWelcomeString(aName));
    thats how it should be...
    regards,
    Shubhadip

  • How to create the shared library?

    I am new to this topic. I would like to know how I should create the shared library? I followed the provided lesson's steps and in step 5, it states that a shared library has to be create.
    I am using Win2000 and I have installed Visual C++ 6.0, and when I try the command "cl -Ic:\java\include -Ic:\java\include\win32 -LD HelloWorldImp.c -Fehello.dll", there is an error said that it can't find the mspdb60.dll?
    what is the problem? and what should I do?
    please help.
    Thanks.

    I am new to this topic. I would like to know how I should create the shared library? I followed the provided lesson's steps and in step 5, it states that a shared library has to be create.
    I am using Win2000 and I have installed Devc++ 4.9.8.0 and when I try the command "cl -Ic:\java\include -Ic:\java\include\win32 -LD HelloWorldImp.c -Fehello.dll", but it reports as: "accepting connections" or "press any key to end CL"
    what is the problem? and what should I do?
    please help.
    Thanks. please send me e-mail: [email protected]

  • How to create a shared Apple ID with iCloud email address for household?

    I would like to create a shared Apple ID with iCloud email address that wife and I can share and access from separate devices? A shared household iCloud email address would be useful for email contact for creating/managing bill accounts for utilities, school for kids, bill pay etc…  I currently have my own Apple ID on my MBP.
    Thanks!
    dlaron

    If you mean that you would like to create a shared iCloud account with a shared iCloud email address and you already have an iCloud account of your own, you can do that by creating a new Apple ID (see https://appleid.apple.com/account), then use the ID to set up a secondary iCloud account on your Mac by going to System Preferences>Internet Accounts (or Mail,Contacts,Calendars)>iCloud and signing in with the new ID.  You can then turn enable Mail in this account to create the shared email account.  Secondary accounts are more limited than primary iCloud accounts, and will only sync Mail, Contacts, Calendars, Reminders and Notes.
    Once the account is created, it can be added to iOS devices by signing in with the ID in Settings>Mail,Contacts,Calendars>Add Account>iCloud.
    Or, if your only interest is in having a shared email account, you might consider just setting up a free Gmail account to share.

  • How to create a shared network drive and enforce it with password?

    Dear All,
    As stated, i would like to create shared network drive within my office to my department to share file and document. I would also like to have that network drive to be enforce by password protection. I would like this solution be native to Microsoft
    before i result to any 3rd party solution.
    I'm deeply grateful for anyone who can provide me with an solution or suggestion. :)
    Thanks so much,
    Regards,
    Aiphos Hoo

    Hi,
    If you're in a domain, then as S Guna siad, you should guarantee appropriate permissions to users.
    If you're not in a domain, then you can use "Password protected sharing", but this setting doesn't have effect on computers in a homegroup
    Control Panel\All Control Panel Items\Network and Sharing Center\Advanced sharing settings, All networks, turn on "Password protected sharing"
    http://windows.microsoft.com/en-us/windows/share-files-with-someone#1TC=windows-7
    Yolanda Zhu
    TechNet Community Support

  • How to create a shared menu bar

    I can't see a way to create a single menu bar that is shared by several pages and only needs to be updated in one place. Surely DreamWeaver has such a feature?

    You have already been answered by the methods to use,, but this is my long winded answer to your question - explaining both techniques:
    You have 2 choices:
    Templates    
    Server Side Includes
    Using the template function within Dreamweaver is a good way to go if it's a small site . .
    For larger sites then serverside includes would be more practical and earlier for maintenance purposes.
    Templates:
    You create a master template page, you declare which areas will be the same for every page, (non-editable regions)  and then declare an area that will change on every page (the content area) , these are editable regions.
    Once you create the template and save it, you are then able to create 'child' pages from this template  - as many as you like  :-)  If you every need to make a change to the menu or the footer or the header, change it in the master template, save it and the changes will flow through to the child pages created from the template.
    Using DW Templates:
    http://www.adobe.com/devnet/dreamweaver/templates.html
    http://www.adobe.com/devnet/dreamweaver/articles/dw_templates.html
    The other option is to use Server Side Includes (SSI)
    A bit more about SSIs here:
    http://help.adobe.com/en_US/Dreamweaver/10.0_Using/WSc78c5058ca073340dcda9110b1f 693f21-7b6ca.html
    http://bignosebird.com/ssi.shtml
    Using PHP includes if your server supports php:
    http://www.w3schools.com/PHP/php_includes.asp
    One major difference between using Templates and SSI?
    When you make a change to a template page, you will need to re-upload all the pages to the server that were changed - may become very tedious if it is a very large site.
    With using SSI, you make a change to one file and only have to upload the one file and all pages on the server will be update accordingly.
    When to use Templates, Library Items & SSIs -
    http://www.adobe.com/devnet/dreamweaver/articles/ssi_lbi_template.html
    Nadia
    Adobe® Community Expert : Dreamweaver
    http://www.perrelink.com.au
    Unique CSS Templates | Tutorials | SEO Articles
    http://www.DreamweaverResources.com
    http://csstemplates.com.au/
    http://twitter.com/nadiap

  • How to create print sharing for Mac and PC computers

    Hello~ I hope someone can answer these questions... Thanks!
    We are a small design office. We have trouble printing recently after we upgrade our Mac OSX v10.4.
    We have:
    2 PC computers (Window XP Home Edition)
    1 Power Mac G4
    1 Power Mac G5
    1 PowerBook G4
    1 Epson Stylus Pro 4000 large format printer
    1 hp laserjet 3030 fax/copier/printer
    We used to transfer the PC files to the server and print from Mac. We were able to print with 'shared printer' if one Mac computer is connected to the printer. After we upgraded 1 Power Mac G4 to OSX v10.4, we can no longer use the 'shared printer' for the other Mac computers. We cannot find the printer under 'shared printer' in the Adobe application, such as Illustrator and Photoshop.
    We would like to set up the print sharing system that both Mac and PC computers can send files to the prints without putting files to the server or switching the printers. Can anyone help please? Many thanks!
    Power Mac G4   Mac OS X (10.4.4)  

    There are a couple of disadvantages with formatting a
    disk as FAT32. Firstly, there is a limit on the file
    size for FAT32. I think it like 2 GB so if you
    capturing video the results will probably not fit
    into this file limit. Secondly FAT32 will not be
    bootable. I alway clone my system to a backup disk as
    bootable. That way if anything goes wrong with my
    system, I can just boot from my backup disk and fix
    it.
    The problem with doing this though is that the drive will not be usable with Windows (which was in the original posting) unless you use the third party MacDrive software on the PC.
    iFelix

  • How to create .swf and .lib font files?

    Hello All!
    I'm working with a flash template I bought but I'd like to change the fonts.
    According to the documentation:
    To add a new font new .swf files should be transferred to  the “fonts” folder, and necessary changes should be done in fontsLibrary.xml file as well, using the same format.
    In the "fonts" folder I have both .swf and .lib files.
    I've managed to create what I believe to be a healthy .swf font file following the steps in here: http://www.communitymx.com/content/article.cfm?cid=67A61
    Still, after editing the XML accordingly, it won't work, and I believe it's because I don't hava the .lib file.
    Here's what the XML looks like, pretty simple actually:
    <?xml version="1.0" encoding="utf-8"?>
    <fontsLibrary>
    <fonts>
      <font name="standard 07_57" url="standard07_57.swf"/>
      <font name="standard 07_58" url="standard07_58.swf"/>
      <font name="Marketing Script" url="MarketingScript.swf"/>
      <font name="extravaganza" url="extravaganza.swf"/>
    </fonts>
    </fontsLibrary>
    Anyone has any idea how I can progress on this?
    What other info can I give to help you help me?
    Many thanks!!!

    Hi I found the SAP note:897289, which I got answer for my post.
    Regards,
    Murthy

  • Creating a shared library for JNI in windows

    I went through the JNi tutorial online and it worked just fine on a Linux computer. Now I'm trying to make do the same tutorial on windows. When I get to the step 4. Create a Shared Library, I'm stuck. I don't know how to create this shared library on windows. It gives an example using Visual C++ but I don't have that. Any tips or advice out there what I should do? Any help would be greatly appreciated.

    //mac.java
    class mac
        public native void getMac();
        private native String getLine(String prompt);
        static {
         System.loadLibrary("myMac");//This is myMac.DLL
         /*if generated by borland
         System.loadLibrary("mymac");//This is mymac.dll
         public static void main(String[] args)
        mac mc=new mac();
        String input = mc.getLine("Enter Some Thing ");
        System.out.println("You Entered " + input);
        System.out.println(mc.getMac());
    prompt> javac mac.java
    prompt> javah -jni mac
    Borland compiler
    /*mymac.c*/
    #include <jni.h>
    #include "mac.h"
    #include <stdio.h>
    JNIEXPORT void JNICALL
    Java_mac_getMac(JNIEnv *env, jobject obj)
        printf("I am in  getmac dir in mymac.dll (Borland) \n");
        return;
    JNIEXPORT jstring JNICALL
    Java_mac_getLine(JNIEnv *env, jobject obj, jstring enter)
        char buf[128];
        const char *str = (*env)->GetStringUTFChars(env, enter, 0);
        printf("%s", str);
        (*env)->ReleaseStringUTFChars(env, enter, str);
        scanf("%s", buf);
        return (*env)->NewStringUTF(env, buf);
    To generate DLL
    create bcc32.cfg file in %BORLAND_INSTALL%/BCC5/bin Folder
    In the bcc32.cfg file add following code
    -I"%BORLAND_INSTALL%\BCC55\include;%JAVA_HOME%\include;%JAVA_HOME%\include\win32"
    -L"%BORLAND_INSTALL%\BCC55\lib;%BORLAND_INSTALL%\BCC55\Lib\PSDK;"
    i.e the path for borland compiler and java.
    now goto prompt and say
    prompt>bcc32 -tWM -tWD mymac.c
    This will create mymac.lib File
    Now say
    prompt>implib -c mymac.lib mymac.dll
    That's it!!
    there you are with dll
    Now you can run the mac.class file by using java
    VC++
    Click File->New->Win32Dynamic-Link Library
    Give name and Select
    A simple DLL project
    You will have
    myMac.CPP file
    // myMac.cpp : Defines the entry point for the DLL application.
    #include "stdafx.h"
    #include "mac.h"
    #include "jni.h" //can copy or give full path
    #include <math.h>
    BOOL APIENTRY DllMain( HANDLE hModule,
                           DWORD  ul_reason_for_call,
                           LPVOID lpReserved
        return TRUE;
    JNIEXPORT void JNICALL
    Java_mac_getMac(JNIEnv *env, jobject obj)
        printf("You are in getMac (VC++) DLL\n");
    JNIEXPORT jstring JNICALL
    Java_mac_getLine(JNIEnv *env, jobject obj, jstring enter)
        char buf[128];
        const char *str = env->GetStringUTFChars(enter, 0);
        printf("\n%s", str);
        env->ReleaseStringUTFChars(enter, str);
        scanf("%s", buf);
        return env->NewStringUTF(buf);
    Hope this is useful
    regards
    kanad Deshpande

  • How do I create a shared photo stream?

    I see discussions regarding shared photo streams - all pertaining to issues with existing shared photo streams.  I don't see anything that provides instructions on how to create a shared photo stream.  How is this accomplished?  And how do I allow someone access to my shared photo stream?

    If you're creating it from iPhoto on your Mac this screenshot describes how;
    OT

  • How do you create a shared photo stream on the ipad

    I've updated my iPad (3rd gen) to iOS 6 but I can't figure out how to create a shared photo stream.
    I've followed the instructions on apples website but it's as if the feature is missing.
    Anyone else tried using the feature?

    Went crazy since I had no "new iCloud agreement" request. Anyway I updated my account infos and finally found in Settings  > iCloud > Photo Streaming the button to enable Shared Photo Steams button

  • Creating shared lib out of statical libs..

    Hello!
    Over here we are trying to create a shared lib (.so) by doing
    CC -G -o foo.so -h libfoo.so object.o -lbar -lgaz
    Basically we want all functionality in the libbar.a and libgaz.a, but the resulting file, libfoo.so seems a little bit small..
    Can we assume that the linker does smart linking and removes code from the libs that isn't used from itself? (to be honest sounds like a good idea :-))
    Meanwhile, is there a good way to do this?? Should we do something like
    CC -G -o foo.so -h libfoo.so object.o libbar.a libgaz.a
    instead??
    Can't find much about this in the documentation.. Don't know if I just haven't searched the wrong places??
    /Andy

    Hi There,
    The first thing I will suggest you is the
    document to read. C++ User's Guide for
    Forte developer 6 update 2 - chapter 16 on
    building libraries in C++ environment.
    Are these libbar.a and libgaz.a archived libraries using C or C++? If these libraries are C
    then you can convert them in .so using the following command.
    cc -G -o libmylib.so.1 -zallextract libmylib.a
    The main difference between linking with a archive and building a shared object is that the shared object is a indivisable unit. When you link against a archive you only get those components of the archive which the linking application directly references.
    So - if you build a shared library with '-zallextract' you will get everything in the archive included in the shared library. This might be exactly what you intend and not cause a problem - but it depends upon what is in the archive and is up to you how you are using it.
    I hope this helps.
    ...jagruti
    Developers Technical Support
    Sun Microsystems, http://www.sun.com/developers/support

  • How to create shared object in Open Vms environment.

              Hi All,
              Iam using Weblogic Server 5.1 on OpenVms 7.2-1. As a part of development, I need
              to use JNI(Java Native Interface )to call existing "C" function.
              Iam stuck at creating shared object on OpenVms. I would like to know what is the
              procedure for creating these shared objects for a given "C" programme.
              For your easy reference :This is how we create dynamic link libraries for "C"
              code by using Microsoft C++ comipler.
              cl -Ic:\jdk\include -Ic:\jdk\include\win32 -LD SampleProgramme.c -FeSampleProgramme.dll
              Can somebody help me on this?
              Thanks in Advance,
              Prashanth Bhat.
              

    You might also want to read the following series of articles:
    http://www.oracle.com/technetwork/articles/servers-storage-dev/linkinglibraries-396782.html
    Regards,
    Darryl.

  • Hi. I purchased a new ipad mini and my brother already has iphone 4,so how can i avoid sharing the same contents that are on his phone? Will creating an other apple id help us in seperating our facetime and icloud accounts as we share our laptop to sync ?

    Hi. I purchased a new ipad mini and my brother already has iphone 4,so how can i avoid sharing the same contents that are on his phone? Will creating an other apple id help us in seperating our facetime and icloud accounts as we share our laptop to sync ?

    Have a read here...
    https://discussions.apple.com/message/18409815?ac_cid=ha
    And See Here...
    How to Use Multiple iDevices with One Computer

Maybe you are looking for

  • Weblogic.management.server bound more than once?

    Sorry if I already posted this in cluster, but I realized that it should belong here instead.... I have an admin server that does not belong in any cluster. I set up 2 managed server (app01, app02) targetted to "app cluster". I can start up app01 or

  • How to send a mail prior to the due date

    Hi all,              I would like to send a mail prior to the due date. Please let me know how to go to the previous step after the loop is executed once in workflows. Thanks, Sirisha N.

  • My apple ID is not verified on iMessage or FaceTime! Help!

    I bought an iPad last October 30th, my bday and since I have gotten it, I have never been able to use iMessage or FaceTime. Its street up because I have friends I want to talk on it. I tried calling apple but all they did was raise my phone bill. Eve

  • Xorg 7.0 RC0

    It looks like the X.org crew has been doing a lot of slimming down. This modularization (sp?) of the X server is definitely something I've been waiting for... Dang, I can't wait to see what 7.0 final will be like. (Strangely, the "extra" directory, w

  • Enterprise Mgr works with one db but not the other

    Hi We have two Oracle 10g databases installed. Enterprise Manager works with the second, but not the first. I believe the problem started when we migrated the host server to another network domain. Everything else works fine, but I'm getting a page l