JNIWrappers on both Linux and Windows

Hi,
I am Ravi and am doing a project. My project is to create a gateway of Linux and access 10 different systems, of which 7 are Linux and the other are Windows 2003.
they are all different servers of which ftp are more in number and also we have http servers.I need to write a JNI wrapper which calls the dll's of Windows and shared Libraries of Linux. The wrapper must be in the Linux Gateway.
Please help me How to do it. I will be Thankful.

RavindraReddyTelugu wrote:
Hi,
I am Ravi and am doing a project. My project is to create a gateway of Linux and access 10 different systems, of which 7 are Linux and the other are Windows 2003.
they are all different servers of which ftp are more in number and also we have http servers.I need to write a JNI wrapper which calls the dll's of Windows and shared Libraries of Linux. The wrapper must be in the Linux Gateway.At best your problem specification is incomplete.
If you need to communicate to computers via ftp/http then you do not need, and should not use, JNI.

Similar Messages

  • OS X won't show OS X partition, but shows up (and works) in both Linux and Windows.

    My Macbook Pro (early 2010, Intel 160 SSD) stopped working this weekend. I got the white screen with a folder with a question mark inside.
    I checked if the drive was ok, and it seemed to be working, so i plugged it in a running Windows machine and booted Ubuntu from a USB stick. Drive shows up fine and works, i back up my stuff asap and go back to windows. Using MacDisk (or some other program, can't remember the name) i am also able to access the drive and copy stuff both to and from.
    Lastly, after some time, i get a Lion installation to work on a USB drive and start it up. When i open Disk Utility it only shows a 1.52 GB partition called Mac OS X Base System and claims the drive is only that big. How can i resolve this?

    Hi gkamani2011,
    Thanks for using Apple Support Communities.  I would recommend the troubleshooting steps in this article if your Mac isn't fully booting into the Mac partition:
    Mac OS X: Gray screen appears during startup
    http://support.apple.com/kb/ts2570
    Cheers,
    - Ari

  • {SOLVED}SAMBA/CUPS Printer gone on both Linux and Windows Computers

    Greetings all,
    Have found myself in a pickle that has got me scratching my head.
    For a while now, I have had a headless server set up with Arch Linux with SAMBA and CUPS installed.  All computers in the house have had the printer set as default and have been working fine.  Have not had to print anything in about a week.  Wife went to print a coupon and told me that it would not print.
    I went to my Windows computer and sure enough, the printer no longer even shows up on the network.  I have not touched my smb.conf or changed any CUPS parameters so I am stumped why the printer is no longer accessable.
    When I go into my CUPS Web Interface it shows the printer and shows it as idle
    Officejet_7300    Automatically setup by HPLIP        HP Officejet 7300 Series, hpcups 3.12.10a    Idle
    Here is my smb.conf which like I mentioned earlier has not been touched.
    #======================= Global Settings =====================================
    [global]
    log file = /var/log/samba/%m.log
    printer = HP_7400
    guest account = nobody
    load printers = yes
    printing = cups
    server string = Samba Server
    path = /var/spool/samba
    workgroup = WORKGROUP
    hosts allow = 192.168.0. 192.168.1. 192.168.2. 127.
    security = share
    max log size = 50
    ; printcap name = /etc/printcap
    ; printcap name = lpstat
    # These scripts are used on a domain controller or stand-alone
    # machine to add or delete corresponding unix accounts
    ; add user script = /usr/sbin/useradd %u
    ; add group script = /usr/sbin/groupadd %g
    ; add machine script = /usr/sbin/adduser -n -g machines -c Machine -d /dev/null -s /bin/false %u
    ; delete user script = /usr/sbin/userdel %u
    ; delete user from group script = /usr/sbin/deluser %u %g
    ; delete group script = /usr/sbin/groupdel %g
    #============================ Share Definitions ==============================
    ;[homes]
    ; comment = Home Directories
    ; browseable = no
    ; writable = yes
    ;[Profiles]
    ; path = /usr/local/samba/profiles
    ; browseable = no
    ; guest ok = yes
    [Storage]
    comment = Home Data Storage
    path = /home/storage
    valid users = ichase ian sharon
    public = yes
    writable = yes
    browsable = yes
    create mask = 0777
    directory mask = 0777
    [printers]
    comment = All Printers
    path = /var/spool/samba
    browseable = yes
    Set public = yes
    guest ok = yes
    writable = yes
    printable = yes
    The Storage drive is still accessable by all computers in the house.  This would be a piece of cake if I had actually gone in and changed something but nothing has been changed.  Not sure when the printer decided to take a hiatus.
    Thanks as always for your help and if there is any other files or command output I can provide, let me know.
    Ian
    Last edited by ichase (2012-12-14 23:27:04)

    ewaller - good point, I actually did try shutting down the printer and turning it back on.  But to no avail.  I may not have touched any of the configuration files but I have run updates on the server via secure shell from my laptop.  So one of the updates may have caused this issue.  I believe that maybe the HP driver may have been updated and that could be the issue.  May need to look at going back to the older version of the driver.
    WonderWoofy - Thanks for the response, as mentioned above (and actually it just came to mind when I was typing it) the updated driver may have caused the issue.  Drivers and support has come a long way in regards to Linux though there is definitely more work that can be done.

  • How to link Linux and Windows?

    hi,
    i would like to build an application which can link both linux and windows together so that the linux's users can communicate with windows's users without problem. But i don't know which java's technologies used to do this job. Java CORBA? Java RMI? or others? Can you help me?
    thanks a lot.
    from
    mercy

    if i want to build a messaging or chat program like ICQ, java.net package can be used so that ICQ Linux's users can send messages to ICQ windows's users?

  • Oracle CRS across linux and windows

    I am interested in finding out if anyone has tried installing CRS across linux and windows - it should be possible (at least theoretically!), by running the crssetup.exe or the shell scripts to clone / add node etc.
    This is just for testing (having an idle and a very powerful Windows box idle) - would be great if this windows box could be added to the linux RAC cluster.
    Does anyone have the command line syntax of all the commands that need to be executed (without using a GUI such as addNode.sh)?
    One drastic way seems to be to install on linux first (copy the voting and registry disks using dd, dd over /dev/zero file), install on windows again and then "fix" the linux one by re-registering etc. - appreciate any ideas on this!

    Murali is correct - this is something to do with the format of the voting and registry. I was able to get as far as adding the nodes and olsnodes shows up on both linux and windows - but either cannot get ocssd to start up. Anyway this was just a exercise to see if CRS really cannot work or if it is just a soft requirement.
    For reference though, this is what I did:
    Use the excellent document on cloning at:
    http://download-east.oracle.com/docs/cd/B19306_01/em.102/b16227/oui7_cloning.htm
    1. record a response file and get the details of the options to pass to setup/runInstaller (-record -destinationFile fullPathtoResponsefile)
    2. use perl clone/bin/clone.pl
    3. run setup.exe using a command such as the one below:
    .\setup.exe -noConfig -clone -waitForCompletion "ORACLE_HOME=c:\oracle\crs10.2"
    "ORACLE_HOME_NAME=crs10" "n_storageTypeVDSK=2" "n_storageTypeOCR=2" "sl_OHPartitionsAndSpace_valueFromDlg={6,1,1012,0,N/A,1,7,1,1012,0,N/A,2}
    " "sl_tableList={verdani:verdani-priv:verdani-vip,mentor:mentor-priv:mentor-vip}
    " "s_ocrpartitionlocation=\\.\ocrcfg" "s_votingdisklocation=\\.\votedsk1" "PERFO
    RM_PARTITION_TASKS=FALSE" -silent -noconfig "s_clustername=crs10" "s_OcrVdskMirr
    or1RetVal=NO_VAL" "s_ocrMirrorLocation=NO_VAL" "s_VdskMirror2RetVal=NO_VAL"
    ** Make sure that the disk#s are correct! (check in disk management)
    Use GUIOracleOBJManager.exe in crsHome/bin to add the links to the raw devices (logical drives on extended partitions in windows)
    4. For linux use a command similar to the following:
    perl clone.pl ORACLE_HOME=/opt/oracle/product/crs10.2 ORACLE_HOME_NAME=crs10 '-O
    n_storageTypeVDSK=2' '-On_storageTypeOCR=2' '-O"sl_tableList={verdani:verdani-pr
    iv:verdani-vip,mentor:mentor-priv:mentor-vip,arisia:arisia-priv:arisia-vip}"' '-
    O-noConfig''-O"INVENTORY_LOCATION=/opt/oracle/oraInventory"' '-OPERFORM_PARTITIO
    N_TASKS=FALSE' '-O"s_ocrpartitionlocation=/dev/raw/ocrregistry"' '-O"s_votingdis
    klocation=/dev/raw/ocrvotingdisk"'
    5. after setup finishes on windows, follow the instructions in cfgToolLogs/configToolAllCommands - that runs crssetup.exe on windows to add the nodes.
    6. Add the linux nodes directly using clscfg on Windows

  • Can MacPro supports Linux and windows OS ?

    Hi,
    I want o install both linux and windows(Triple Boot: Mac OSX, Windows, and Inux) Is this possible? if yes can someone provide me the steps to insall both OS?
    Thanks,
    Harsha

    If I understand correctly,
    Using boot camp we can install windows, Linus while Mac OS is untouched. At the time of system start up I can choose which one I need out of three OS.
    This is correct.
    Another way is , install windows using boot camp and use VMware kind of softwares to install and run linux in a virtual machine.
    True, though you can run Windows in a virtual machine as well.
    While I was searching in Internet for the ways to install Linux I cam across the virtual box soft ware , I guess which is similar to VMware. Do you have any idea which one is better?
    I am not familiar with Virtual Box. Taking a brief look at their web site it does look similar, but I do not know which is better.
    Is VMware is free to dowoad from Internet or shall I need to buy this ?
    Parallels and VMware I believe have free trial versions, but eventually you need to purchase them. They are well worth the money in my opinion.
    Best of luck.

  • How to set owner-only access file permissions both on Linux and Windows

    Hi everybody.
    I have the following problem. I need to store some private user information in file system. So I need to set owner-only access permissions for some directory in user home. I did not find API for doing this. As I understand this is platform specific thing. Could anybody tell me how can I do this both on Linux and Windows?
    Thank you in advance.

    More ideas just came back to me (of something I did before)
    Each OS requires a different control.
    For Windows you will need to set the .policy file for each user (a pain if you have more than a dozen of clients) granting access (R or RW) to files/directories.
    Then you have to write some native code (access via JNI) to access/modify your authorization.
    A more professional solution that I used was J-Integra (other similar tool exist).
    Basically it is a bridge between Java and COM. It magically give you access to the COM API from Java (and vice versa).
    In my case it was to read/write/modify Winword documents transfered between PC and server.
    From memory you have to run the com2java.exe to build the bridge (classes in Java language) between the 2 families. Compile those classes and you have a "driver" for the COM (Microsoft Objects).
    Here I must confess my ignorance on Microsoft.
    Those COM objets must give you some easy/integrated access to the API for LDAP or Microsoft Active Directory Service (for centralize control with more complex setup).

  • Why we have separate azure java SDK for linux and windows

    I saw different links for downloading azure java SDK for linux and windows.
    What difference does it actually have when java is platform independent? Or both are same jars?

    Hi,
    Thank you for your post.
    It contains the same jar files.
    Regards,
    Mekh.

  • Problems using RMI between linux and windows.

    I have problems using RMI between linux and windows.
    This is my scenario:
    - Server running on linux pc
    - Clients running on linux and windows PCs
    When a linux client disconnect, first time that server try to call a method of this client, a rmi.ConnectException is generated so server can catch it, mark the client as disconnected and won't communicate with it anymore.
    When a windows client (tested on XP and Vista) disconnect, no exceptions are generated (I tryed to catch all the rmi exception), so server cannot know that client is disconnected and hangs trying to communicate with the windows client.
    Any ideas?
    Thanks in advance.
    cambieri

    Thanks for your reply.
    Yes, we are implementing a sort of callback using Publisher (remote Observable) and Subscribers (remote Observer). The pattern and relative code is very well described at this link: http://www2.sys-con.com/ITSG/virtualcd/java/archives/0210/schwell/index.html (look at the notifySubscribers(Object pub, Object code) function).
    Everything works great, the only problem is this: when a Publisher that reside on a Linux server try to notify something to a "dead" Subscriber that reside on a Windows PC it does't receive the usual ConnectException and so tends to hang.
    As a workaround we have solved now starting a new Thread for each update (notification), so only that Thread is blocked (until the timeout i guess) and not the entire "notifySubscribers" function (that contact all the Subscribers).
    Beside this, using the Thread seem to give us better performance.
    Is that missed ConnectException a bug? Or we are just making some mistake?
    We are using java 6 and when both client and server are Linux or Windows the ConnectException always happen and we don't have any problem.
    I hope that now this information are enough.
    Thanks again and greetings.
    O.C.

  • Different stringWidth between Linux and Windows

    When I use Ms Windows Arial Font in my Java Program running on Linux
    I found out the rendering result of the Font is different with same program running on Windows
    The Arial Font in Linux become wider, and this cause problem because i used absoule position.
    I am using Java 1.3.1, How can solve this problem??

    The Arial under Linux and Windows are not the same. Firts, they may be different font files, second, both systems uses different rendering engines to draw them. Also, some systems, as mine, won't have Arial font at all - substitute font will be used then. So, I would expect, you will have similar problems with any other font, any other operating system or even in some specific locales which uses reversed (right-to-left) line ordering. You will also be not able to do internationalization properly.
    Simply your application is not portable and written with breaking may portability rules. I hope, you are not doing it for money. The layout managers is the only existing aswer to your problem. The closest to absolute is a SpringLayout introduced in 1.4.x.
    The absolute location problem is not a bad thing in Java only - it can screw C, VisualC and CBuilder applications. Take some of them and tweek your system settings - use large fonts for buttons, tiny fonts for menu, change whatever OS provides you to be able to change in L&F and look what will happen with some of those applications. I would be really happy to have layout managers in CBuilder.
    regards,
    Tomasz Sztejka.

  • Font differs from Linux and Windows ?

    Hi, i just want to ask, are fonts different from windows and linux in applet. I use a standard courier font.
    For example, if i make an applet with courier font texts in linux, and make the texts wrap themselves, they will run ok in linux. But if i run the compiled applet in windows, the wrapped text somewhow got truncated.
    But if i compile the applet in windows, it will look ok in linux and windows.
    I've tried replacing my courier fonts in my /usr/java/jdk/jre/lib/fonts/cour*.ttf with the cour*.ttf from c:\windows\fonts with no effects .. Applets compiled and run ok in linux doesnt work in windows. They must be compiled in windows to run ok in both.
    Why is that ?
    Does the compilation use the fonts in the jdk lib or the system fonts ?
    I'm so confused T_T
    Please Help

    How do I get Mac OS 10.4.4 and Word X for Mac to see
    all the characters in the Word for PC document
    formatted in Times New Roman?
    There's no way with Office X, which can't do Unicode Greek. You need to upgrade to Office 2004 which is Unicode-savvy and installs in your Mac the same Times New Roman with Greek, Cyrillic, Hebrew, and Arabic which is used by WinXP. An alternative might be AbiWord or NeoOffice/J.

  • I have an external drive - WD My Passport FOR MAC. I want to format it to work on both mac and windows. Which format do you think I should use? Will either one cause damage to the files on the hard drive?

    I have an external hard drive - WD My Passport FOR MAC. I want to format it to work on both mac and windows. I also want to be able to connect it to my TV and watch movies.
    I read up and I think I am supposed to use exFAT or FAT32? I also saw MS-DOS. Which format should I should use? Will any of them cause damage to the files on the hard drive?
    My little memory stick uses MS-DOS and it works on both mac and windows.
    Please can you just tell me a little about each and suggest which one to use.
    I know how to change it once you tell me so don't waste your time writing about changing it.

    Will any of them cause damage to the files on the hard drive?
    WARNING: FORMATTING A DRIVE ERASES IT COMPLETELY !!
    If you need to carry large files (e.g., larger than about 4GB) back and forth, you may need ExFAT. Otherwise MS-DOS works for smaller files.
    The Mac can Read, but not write Windows New Technology File System (NTFS) without an add-on program such as Paragon NTFS.

  • I have partitioned my time capsule, but I can't get it to work as a Time Machine back up and permanent media server for both mac and PC. What format do I need to partition the drive to so that it works for both mac and windows and so that it will be visab

    I have partitioned my time capsule, as I want part of it to act as a media server for both mac and windows. However I don't know what format that I need to partition it to. I also can't make it a permanently accesible drive. I want to restore the drive to the original format (which I don't know) and start again and re-partition the drive in a format that can be used for media by both mac and PC and for time machine back-ups and make the media part of it permanetly accesible so I can add and acccess my files.
    Thanks

    You are mixing up a couple of things here.
    The TC drive cannot be partitioned without removing it.. did you do that?
    If you partition it you must use a Mac disk utility and use the HFS+ ie standard Mac format. And GUID partition table not windows type.
    You can select erase disk in the airport utility.. that will take the disk back to original format. No partitions. TC is deliberately not partitioned as it is not a media server.. it is a backup device for TM. Over time .. the disk will be filled with TM backups so you have a long history of file changes to your computer.
    There is no media server in the TC.. it is merely disk storage.. you can serve files from it to a media device.. but the TC itself is dumb as dumb.
    Now the actual format of the drive is irrelevant to the PC.. The TC offers SMB file services to the network. You can copy files to and from the TC as if it was a local disk without caring one iota about the format. The TC handles that .. it is not a local disk .. it is a network drive.
    Although you cannot partition the TC. you can still copy files to it.. this does have implications for TM.. but as long as there is plenty of free space should not be a major issue.
    You can create a disk image via the disk utility in a Mac.. and as stated you can create partitions if you do it on a Mac with the disk directly connected which means breaking warranty if any exists on the TC.

  • [SOLVED]Arch Linux, and Windows 8.1 Dual Boot issue

    Hi guys. I recently bought a new laptop, and decided to run Arch Linux and Windows 8.1. I installed Windows 8.1 first as recommended by the beginners guide, and then installed Arch Linux. I made sure UEFI was enabled in my BIOS, and made sure everything was on a GPT partition. The install itself went fine. My laptop loads grub, and Arch Linux shows up and boots, but there is no option to boot into Windows 8.1. The only way I can boot into Windows 8.1 is by accessing my motherboard, and choosing to launch the windows boot manager instead of the grub launcher. How can I get Windows 8.1 to show up in grub? Thanks in advance guys.
    Last edited by Painguy (2014-08-20 20:19:37)

    Painguy wrote:
    -----------Edit------------------
    Yeah just ran this after installing os prober
    grub-mkconfig -o /boot/grub/grub.cfg
    and it works now. Sorry for the crazy posts guys. Thanks for the suggestions and help.
    Yeah I'm sure I'm doing something wrong lol. I did not install OS-Prober. I think that's where the issue is. I'm missing the menu entry in grub.cfg right? Do I just run os prober or do I have to manually edit grub.cfg.
    If that's not the case then here is what I did up until now. What I did was start with a blank SSD drive. I used cgdisk to make the disk use a GPT partitioning scheme. I installed windows 8.1 and checked in windows to make sure it boots into UEFI-GPT mode and it does.  I then installed arch linux using the beginners guide. I made sure to use cgdisk to create any extra partitions, and installed GRUB to the efi partition that windows had created ( I did not format this partition ). I then finished the installation and rebooted, and Grub only shows arch linux. I don't think I'm dealing with anything MBR related. I made sure I used the GPT partitioning scheme....i think lol.
    All you need to do is run os-prober then run grub-mkconfig. It should pick up Windows at that point.

  • External hard drive use with both Mac and Windows

    I know that you can't use an iPod (through iTunes) with both Mac and Windows, but can you still use it as an external hard drive with both operating systems?

    Yes, if the iPod is in Windows format. Mac OS X can read and write Windows formatted iPods, but Windows can't access Mac formatted disks unless special software is installed.
    (9844)

Maybe you are looking for

  • Exit for changing Pricing Conditions with change in Ship to party

    Hi All, In transaction VA01/ VA02 the pricing conditions are getting calculated with respect to the Sold-to-party no.. Instead I wanted it to get calculated with respect to the Ship-to-party. Please guide me with an Exit that i can use, or any other

  • Can't sign into itunes with "unknown error (-50)" prompting

    can't sign into itunes with "unknown error (-50)" prompting

  • Payment Term Requirement Issue

    Hi, If i create the invoice today, i need to do the payment on either 15th or 30th of after 2 months. Example: Invoice Date - 15-10-2010.  But the payment due date should be either on 15th of December or 30th of December. How can i create this paymen

  • My app will not allow me to make an in app purchase?

    Every time I try to make an in app purchase in the app WSOP... I go and fill out valid credit or debit cards, then it will say I've attempted to use to many cards and that method is unavailable... So I purchase iTunes gift cards, that works for a whi

  • Cd burner failing!

    I have an iBook G3 10.2.8. The CD has worked for about 2 years with iTunes, and it suddenly has begun giving me an error message. First, iTunes says "canceling the burn", then the error message says "device not responding". Do you know what could be