How to embed mplayer in Linux with JNI

Hello All,
I was wondering if anyone here knows to get a Linux based video player to draw on the awt Canvas. I am trying to play the streaming video in ASX / WMV format on Linux. And MPlayer is one such player that can play almost anything.
For windows, there are a few options to embed the native media player and I am thinking of going with jawin as it hides most of the native implementation. But I have not much idea about how to do it in Linux. Couldn't find many examples / guides either.
If someone has an idea / links and would like to share it, it'll be highly appreciated.
Thanks in advance,
Rex

I could advance a little more and got the JNI library to draw on the awt Canvas. But still can't get another native program like gedit to draw on the Canvas.
This is what I am doing to draw the rectangles (from Sun's example) -
gc = XCreateGC(dsi_x11->display, dsi_x11->drawable, 0, 0);
XSetBackground(dsi_x11->display, gc, 0);
for (i=0; i<36;i++)
XSetForeground(dsi_x11->display, gc, 10*i);
XFillRectangle(dsi_x11->display, dsi_x11->drawable, gc,
10*i, 5, 90, 90);
XSetForeground(dsi_x11->display, gc, 155);
XDrawImageString(dsi_x11->display, dsi_x11->drawable, gc,
100, 110, testString, strlen(testString));
But how do I pass the handle 'gc' to another program like gedit to draw on this surface instead of opening it's own window ? It'll be a great help if someone could share an idea on this.
Thanks,
Rex

Similar Messages

  • How to embed a link image with pop up windows?

    Does anyone have any suggestions on how to embed a link
    within flash movie? Once you click on it, it will pop up a new
    window, but I want to disable the toolbars, status bar ..., and
    only show the jpg image for this window.
    Does anyone have any suggestions on how to do it in flash?
    Thanks in advance for any suggestions
    Eric

    If the Oracle Web Application you are talking about uses OAFramework then you can use personalization to add a link to the Ebiz suite page. But in order to fetch the userId and append it to the URL of the link you need to extend the controller in that page and set the destination of the link you had added in the controller. You have APIs on pageContext when you override the processRequest of the extended controller to fetch the userId. You can then create the URL by appending the userId and set it on the linkBean.
    If you are new to OAF then you should read the devguide and personalization guide to get yourself familiarised with extending OAF application.

  • How to use a C# dll with JNI

    After a ton of issues, I finally got this working properly. I've come across a lot of forum posts about the various problems and VERY few answers so I thought I would post my solution here.
    To do this, you need to create a managed C++ layer in between C# and java. The JNI functions in C++ dll can make calls to the C# dll directly, and your java program can make calls directly to the native JNI functions. Some important notes on using C# classes in C++ are:
    -gcroot<CSClass ^> should be used on any objects that are instances of some C# class.
    -the symbol ^ should be used with all C# references (its the symbol for references)
    -gcnew should be used to allocate C# objects
    -in visual studio, add the C# dll as a reference rather than using #using <CsDLL.dll>
    -do not use #using <CsDLL.dll>
    The next issue is loading the libraries. By adding the folder your C++ dll is located in to the Djava.library.path VM argument, you can load your C++ library with System.LoadLibrary("Cppdll.dll"). You DO NOT need to load the C# dll in your java program. In fact, it will ignore you if you try. The problem with loading this dll is with how the CLR searches for referenced assemblies. The CLR First searches the DEVPATH environment variable (if the machine.config file has developer mode set to on), then it searches the GAC, then it searches the codebases, then it searchs the current executable's directory along with a list of definable subdirectories (probes).
    DEVPATH is a decent option, but it requires modifying the machine.config file to be in developer mode. Once that is done, it acts just like the PATH environment variable.
    If your C# dlls are strongly named, I would recommend adding them to the GAC or using codebases. However I have not done this and am not sure how.

    Hi,
    i have to use a c# dll in my java program .by following this link http://www.codeproject.com/KB/cross-platform/javacsharp.aspx i done that.but it is working for only one c# program.if i am trying to use a dll it is throwing error
    # An unexpected error has been detected by Java Runtime Environment:
    # Internal Error (0xe0434f4d), pid=3988, tid=3704
    # Java VM: Java HotSpot(TM) Client VM (11.0-b16 mixed mode, sharing windows-x86)
    # Problematic frame:
    # C [kernel32.dll+0x442eb]
    # An error report file with more information is saved as:
    # D:\Work\EclipseWorkspace\HelloInflux\hs_err_pid3988.log
    # If you would like to submit a bug report, please visit:
    # http://java.sun.com/webapps/bugreport/crash.jsp
    # The crash happened outside the Java Virtual Machine in native code.
    # See problematic frame for where to report the bug.
    Please help me out. i want a few steps to invoke a c# dll by using jni

  • How to send mail from linux with .txt file as attachment ..

    I want to send email from linux box and in the body of the email i want to have the content of dblog.txt file.
    I want dglob.txt file content to be part of the mail body.
    Thanks in advance!!

    Apr 29 15:19:35 lctwprddb01 sendmail[1616]: m3TJJZ4k001616: to=[email protected], ctladdr=oracle (500/500), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30109, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (m3TJJZhB001617 Message accepted for delivery)
    Apr 29 16:04:52 lctwprddb01 sendmail[1422]: m3TIP6LJ031388: to=<[email protected]>, ctladdr=<[email protected]> (500/500), delay=01:39:46, xdelay=00:48:01, mailer=esmtp, pri=120423, relay=cluster2a.us.messagelabs.com. [216.82.249.211], dsn=4.0.0, stat=Deferred: Connection timed out with cluster2a.us.messagelabs.com.
    Apr 29 16:07:36 lctwprddb01 sendmail[1619]: m3TJJZhB001617: to=<[email protected]>, ctladdr=<[email protected]> (500/500), delay=00:48:01, xdelay=00:48:01, mailer=esmtp, pri=120425, relay=cluster2a.us.messagelabs.com. [216.82.248.44], dsn=4.0.0, stat=Deferred: Connection timed out with cluster2a.us.messagelabs.com.
    Apr 29 16:07:52 lctwprddb01 sendmail[1627]: m3TILs2r031176: to=<[email protected]>, ctladdr=<[email protected]> (500/500), delay=01:45:58, xdelay=00:48:01, mailer=esmtp, pri=120429, relay=cluster2a.us.messagelabs.com. [216.82.248.45], dsn=4.0.0, stat=Deferred: Connection timed out with cluster2a.us.messagelabs.com.

  • How to embed ffmpeg encoder lib with flascc

    Hello,
    I'm trying to embed ffmpeg encoder in a swf.
    How to proceed? I have download the ffmpeg shared lib from http://ffmpeg.zeranoe.com/builds/
    Should I create Cmakelist file in each directory like in the Box2D flascc default example, or is there any other way to compile the encoder without have to listed all source file?
    What is the best practice?
    Thanks for help

    In the case of ffmpeg, I have to build and install.
    I launch
    $ PATH=/cygdrive/d/flascc/sdk/usr/bin:$PATH ./configure --prefix=/cygdrive/d/flascc/sdk/usr --disable-ffserver --disable-network --disable-debug --disable-yasm --disable-asm --disable-stripping --enable-memalign-hack
    then
    $ make
    $ make install
    Everything works (it's very long, but it works).
    Libs are present in flassc/sdk/usr/lib directory (libavcodec.a, libavdevice.a etc), but when in ffmpeg/docs/example I try to use the Makefile like this:
    $ PATH=/cygdrive/d/flascc/sdk/usr/bin:$PATH make
    cygwin fire me
    Package libavdevice was not found in the pkg-config search path.
    Perhaps you should add the directory containing `libavdevice.pc'
    to the PKG_CONFIG_PATH environment variable
    No package 'libavdevice' found
    Package libavformat was not found in the pkg-config search path.
    Perhaps you should add the directory containing `libavformat.pc'
    to the PKG_CONFIG_PATH environment variable
    No package 'libavformat' found
    I don't know why. There is libavdevice.pc, libavformat.pc etc in my flascc/sdk/usr/lib/pkgconfig directory...
    how should I configure pkg-config, CFLAGS and LDLIBS?
    Here is the ffmpeg doc example's Makefile
    # use pkg-config for getting CFLAGS and LDLIBS
    FFMPEG_LIBS=    libavdevice                        \
                    libavformat                        \
                    libavfilter                        \
                    libavcodec                         \
                    libswresample                      \
                    libswscale                         \
                    libavutil                          \
    CFLAGS += -Wall -O2 -g
    CFLAGS := $(shell pkg-config --cflags $(FFMPEG_LIBS)) $(CFLAGS)
    LDLIBS := $(shell pkg-config --libs $(FFMPEG_LIBS)) $(LDLIBS)
    EXAMPLES=       decoding_encoding                  \
                    demuxing                           \
                    filtering_video                    \
                    filtering_audio                    \
                    metadata                           \
                    muxing                             \
                    scaling_video                      \
    OBJS=$(addsuffix .o,$(EXAMPLES))
    # the following examples make explicit use of the math library
    decoding_encoding: LDLIBS += -lm
    muxing:            LDLIBS += -lm
    .phony: all clean-test clean
    all: $(OBJS) $(EXAMPLES)
    clean-test:
              $(RM) test*.pgm test.h264 test.mp2 test.sw test.mpg
    clean: clean-test
              $(RM) $(EXAMPLES) $(OBJS)
    Thanks for help and guidance

  • How to run AIR on linux with no gui, no console?

    Folks,
    Has anyone had success running an AIR application from the command line in the background without a GUI?  Is setting WindowApplication.visible=false, sufficient?  Required?  Thanks!

    To run an Air app you need to install Air installer.
    One of the requirements of Air Installer is either GNOME or KDE.
    So I think it will not run.
    More requirements here:
         http://www.adobe.com/support/documentation/en/air/1_5_1/releasenotes_developers.html#sysre qs
    HTH.

  • Calling an existing C code with JNI under linux.

    Hi all,
    I am trying to use an exsiting c code with jni but I am keep getting
    java.lang.UnsatisfiedLinkError, I am working under linux.
    This is what I have done so far:
    1.export LD_LIBRARY_PATH='pwd'/lib
    2. created HspellNative.java with the static System.loadLibrary("HspellNative") and native function called hspellInit
    3. compiled the java class
    4. javah -jni HspellNative
    5. HspellNative.c:
    #include <jni.h>
    #include <stdio.h>
    #include "HspellNative.h"
    #include "hspell.h"
    JNIEXPORT jint JNICALL
    Java_HspellNative_hspellInit ( JNIEnv* env, jobject obj )
         struct dict_radix **dict;
         return ( (jint) (hspell_init(dict,0) ) );
    6. could be the problematic one:
    gcc -o lib/libHspellNative.so -shared -I/opt/bea/jdk142_05/include -I/opt/bea/jdk142_05/include/linux hspell.c HspellNative.c
    7. java HspellNative
    8. getting the following error:
    Exception in thread "main" java.lang.UnsatisfiedLinkError: /opt/haim/Hspell/hspell-0.9/lib/libHspellNative.so: /opt/haim/Hspell/hspell-0.9/lib/libHspellNative.so: undefined symbol: hspell_debug
    at java.lang.ClassLoader$NativeLibrary.load(Native Method)
    at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1586)
    at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1511)
    at java.lang.Runtime.loadLibrary0(Runtime.java:788)
    at java.lang.System.loadLibrary(System.java:834)
    at HspellNative.<clinit>(HspellNative.java:18)
    My problem is that I don't know how to combine my HspellNative.c to the existing hspell.c, I know I should put them together in the shared library somehow, but how ?
    Please advice.
    Thanks in advance,
    Haim.

    I know there is something wrong with the .so, the question is: what ? and how do I fix it ?
    This is the ldd ldd libHspellNative.so output:
    /etc/libcwait.so => /etc/libcwait.so (0x0060b000)
    libc.so.6 => /lib/tls/libc.so.6 (0x00111000)
    /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x00359000)
    I have no idea what it means...
    I think I will try the SWIG.
    Thanks any way.

  • Tutorial - How to triple boot OSX, Linux and Windows 8.1 with a shared Data Partition without any third party Win / OSX softwares

    This is not a question, but rather a personal guide that has proved to be running successfully.
    I would like to thank numerous sources, including Christopher Murphy's suggestions at:
    Re: Repairing Boot Camp after creating new partition
    Before proceeding, there are certain concepts needs to know:
    Why Boot Camp does NOT allow further partitioning of drives after Windows has installed?
    Answer: Because the way Apple configures the Mac to be recognized as non UEFI capable system on Windows.
    Quote from Christopher Murphy based on the above line:
    However, Windows on Macs right now use CSM-BIOS mode in Mac firmware that presents BIOS to Windows rather than EFI. Windows thinks it's on a BIOS computer, and therefore mandates the use of MBR for boot disks, rather than GPT. So that's why we have this hybrid MBR+GPT approach on Mac with Windows on it. You inherit the limitations of MBR, which is four primary partitions.
    So what does it means?
    It means that OSX + EFI + Recovery HD + Boot Camp partition = 4 primary partitions and thus any attempt to modify the disk will render booting issues of either system.
    For more info on GPT (GUID Partition Table disks VS Master Boot Record or MBR in short, you may visit: http://msdn.microsoft.com/en-us/library/windows/hardware/dn640535%28v=vs.85%29.a spx)
    So, how to overcome it?
    The general guideline is to install ALL GPT ready OS first then create a Data partition, before installing Windows (Which is again, NOT supported GPT due to EFI configuration by Apple where end-users are not able to modify it).
    Interestingly, since Mac Pro 2013 Late supports only Windows 8 and above, thus it is not known if this CSM-BIOS applies to it or not.
    Do take note that GPT disks in Windows can only be booted when the system meets the 2 requirements:
    http://msdn.microsoft.com/en-us/library/windows/hardware/dn640535%28v=vs.85%29.a spx#gpt_faq_win7_boot
    1) Windows x64 version (Which is a must for newer Macs. If you cannot go to Boot Camp 5, then you need Windows 7 x86 or 32bit version)
    2) UEFI system. However, Windows sees all Macs (With the possibility of Mac Pro 2013 Late is an exception. To be determined) as BIOS, or rather NON-UEFI system.
    In short, booting on GPT disks is not possible for Mac in Windows.
    Summary,
    It is tested that a combination of the following will not work:
    - OSX + Windows + Linux
    - Windows + OSX + Linux
    - Windows + Linux + OSX
    Usually it can create the system un-bootable or OSX refused to install due to the system does not recognize such partitions and / or Disk Utility refused to format a free space. An example screen-shot is provided below:
    The error message is shown as
    Title: "Failed to erase volume" Message: "Failed to wipe volume, as an error occurred: MediaKit has reported that the device does not have enough free space to execute the requested operations."
    The second thing is about the preparations we need.
    1) 1X Windows 7 or 8 DVD or USB thumbdrive
    1A) If you uses a DVD to install, you will need another thumbdrive to load the BootCamp drivers for Windows as well as may requires an external DVD drive for newer Macs
    2) 1X Linux DVD of your choice. Personally I choose Fedora 20.
    So ready? Let's go.
    1. Using Disk Utility, shrink the OSX's partition size to what is needed. For me, I give OSX 150GB. Do NOT create any new partition.
    Disk Utility should see something like below whereby only OSX partition is left with desired disk space. The remaining space are to be unused disk space for the moment.
    Note: Click on the top most item that should start with the size of your HDD / SSD. Then clicked on "Partition" and specify the desired OSX size. Hit "Apply" after that.
    2: Download Boot Camp drivers only via Boot Camp Assistant. The USB thumbdrive shall be used later after Linux's installation.
    Boot Camp Assistant should see this:
    I have only selected "Download latest Windows Support Files from Apple"
    3. Insert Linux DVD, reboot Mac into EFI mode (The left most first "EFI mode").
    Note 1: Before rebooting, please plugged in an Ethernet adapter because Wi-Fi drivers is not installed.
    Note 2: For Thunderbolt adapters, it must be plugged in before reboot as hot-swapping is not supported under Linux. More on the tips at the end of this article.
    Note 3: Press and hold "Option" after the screen turns black. Release Option key after you see the image as below:

    For the unfortunate part that did not make it on time to edit the images:
    9. Install the Windows Support software from your CD/USB drive to gain full functionality of your computer. Reboot and go to Windows again.
    Note 1: You may choose to eject disc at this point of time. For Apple SuperDrive users, you will need to wait until the drivers (i.e. Boot Camp support files) is installed and rebooted before ejecting is reasonably possible (As I failed to figured out how to right click without the drivers)
    Note 2: Unlike Windows 7 on KBase article TS4599 Keyboard/trackpad inoperative, black screen, or alert messages when installing Windows 7, USB stick can be plugged in after the Windows installation is done. This is because Windows 7 (And probably Windows 7 with SP1 DVD) does not have a built in USB 3 drivers when it was released back in 2009 where USB3 has not arrived then.
    Note 3: Due to TPM, Bitlocker is not supported without the use of thumbdrives.
    10. Using Disk Management to determine the given drive letter for the DATA partition (DO NOT DELETE and RECREATE partition or else you can goodbye to booting Linux and OSX). Disk Management will not allow you to format it as exFAT / FAT32 in graphical way.
    Note: You may remove or modify some of the disk letters in Disk Management. However, do NOT remove / modfify the drive letter for the partition with 200MB size in HFS. This is because it will disallow booting of Linux and neither could Windows nor OSX can do anything EXCEPT to reinstall Linux only.
    11. Open Command Prompt in Administrator Mode (Important!!), and key in the following command:
    format F: /FS:exFAT
    Give this volume a label after it has successfully formatted before hitting "Enter" again.
    Note: Mine Data partition was assigned as F drive. Please make necessary adjustment to "F:" should your Data partition is assigned to other letters.
    12. After that, Setup your Data partition structure as you like.
    Tip: Minimally create the important folders such as:
    - Music
    - Documents
    - Movie (Videos)
    - Downloads
    - Pictures
    All these folders are commonly used by the 3 OSes. I do NOT recommend changing of /home (OSX and / or Linux) and / or user home directory (Windows) either partially or as a whole.
    This is because of compatibility issue.
    On a side note, iTunes Media Library used in OSX and Windows are NOT able to be use interchangably due to hard-coded path used.
    13. Useful troubleshooting in Fedora / Linux:
    With references to these:
    http://chaidarun.com/fedora-mbp
    http://anderson.the-silvas.com/2014/02/14/fedora-20-on-a-macbook-pro-13-late-201 3-retina-display/
    http://unencumberedbyfacts.com/2013/08/16/linux-on-a-macbook-pro-101/
    I would like to highlight a few important points:
    1) Wi-Fi driver:
    http://rpmfusion.org/Configuration
    Note 1: The sound driver should be installed at Out of Box Experience. However, the Wi-Fi is not.
    Note 2: Install both free and non-free repository. By the way, some other software like VLC can only be found after the Free Repository is installed.
    Search for "akmod-wl" in Gnome-Package-Installer in order to install Wi-Fi drivers
    Note 3: For those who do not have Ethernet adapters and their Mac does NOT have a built-in Ethernet port, it is recommended to get one. This is because Fedora 20 does not have a good support for iPhone USB tethering. Unsure for Andriod / Blackberry / Windows Phone users.
    2) Grub Menu:
    It will show several options to boot into OSX, even of the capability to boot into x86 or x64 mode. However, neither of them is bootable except Linux and the rescue.
    Hence, it is recommended to remove the items by hand in this file:
    /boot/efi/EFI/fedora/grub.cfg
    Command to be used:
    "sudo gedit /boot/efi/EFI/fedora/grub.cfg"
    Parts to be removed:
    - For any extra kernels, delete the target entry by locating the line "menuentry" under "/etc/grub.d/10_linux" sector to one line above the next "menuentry".
    It is recommended to keep one main kernel, and one recovery at the minimal.
    - For other OS, delete all the entry (Since neither it can works) under "/etc/grub.d/30_os-prober" sector without removing the lines starts with ###.
    Auto Mount exFAT partition:
    - After installing extra packages for exFAT support (Since it is not supported by Fedora 20 from a default installation), you may wish to edit "/etc/fstab" in order to mount the exFAT partition during boot time.
    Command to be used:
    "sudo gedit /etc/fstab"
    Add the following line in gedit:
    UUID=702D-912D /run/media/Samuel/DATA                   exfat    defaults        1 2
    Note 1: For DATA partition, OSX & Boot Camp partition, Fedora defaults mounts under: "/run/medua/<Username with case sensitive>/<Partition Label Name>"
    Note 2: UUID is unique ID. You can find out the UUID by:
    Step 1: First determine the DATA partition number:
    "sudo gdisk /dev/sda"
    Step 2: Determine the UUID of this partition number:
    "sudo blkid /dev/sda8"
    Reference 1: http://manpages.courier-mta.org/htmlman5/fstab.5.html
    Reference 2: http://liquidat.wordpress.com/2007/10/15/short-tip-get-uuid-of-hard-disks/
    3) Overheating CPU
    Solution is to issue the following command in Linux terminal: su -c "echo -n 1 > /sys/devices/system/cpu/intel_pstate/no_turbo"
    4) System resumes immediately after suspend
    Solution is to issue the following command in Linux terminal: su -c "echo XHC1 > /proc/acpi/wakeup"
    5) What does not works well out of box:
    - Both GNOME and KDE's fonts are too small to be readable for out of box experience. Additional configuration is a need. (Some of the info can be found on "More Tips" later)
    - Thunderbolt hotplugging is NOT supported under Windows and Linux so far. Neither FaceTime HD camera works as well.
    - The red light in Headphone jack is always on. I do not have luck in switching off the light without losing the sound.
    Note 1: It is determined that the module "snd_hda_intel" is used by both cards (HDMI and normal output)
    Note 2: It is also known that blacklisting it can switch off the redlight at the price of muting the system.
    Note: Based on this article, http://support.apple.com/kb/TS1574
    A Mac (Except Mac Pro) needs servicing when there is a red light while the system fails to detect internal speakers. However, this article does NOT applies to this issue.
    5A) More Tips:
    Install gnome-tweak-tool for more customization
    Search for: "gnome-package" to install:
    Install Gnome Package Installer for advanced package repository
    Install Gnome Package Updater for advanced updates to be install (Whereby Fedora's App Store alike might not show the relevant updates)
    14. Verify if disk is still GPT:
    Use Gdisk to determine if the disk is pure GPT:
    http://ubuntuforums.org/showthread.php?t=1742682
    Command: sudo gdisk -l /dev/sda (The entire hard drive)
    You should see the MBR is "Protective" instead of anything else.
    15. Congrats, the system is ready for triple boot. (I forgot to eject my Windows DVD when the photo was taken)
    Note 1: You cannot set the default startup disk in Linux due to the lack of Boot Camp Control Panel in Linux.
    Neither is changing startup disk recommended in Windows due to the inability to display correctly.
    For me, I click "Cancel" whenever I am on this tab (Feel free to make other Boot Camp adjustments in other tabs).
    Only OSX I know that can show the startup disk options correctly.
    Note 2: For some reason, OSX likes to auto mount the EFI partition everytime it boots up. It is not known to have any issue for ejecting other disks or mounting disks via Disk Utility.
    Note 3: It is not determined if any Firmware or System upgrades will cause issues. It is only known that all 3 OS's regular updates should not be an issue.
    System Updates excludes Mac OSX 10.9.3 updates to OSX 10.9.4 type as I had done it on a OSX 10.9.4 Mac or Windows 8.1 to Windows 8.1 Update 1 since my Windows DVD comes with Update 1.
    System Upgrades refers to OSX Mavericks to Yosemite, Fedora 20 to Fedora 21, Windows 8.1 Update 1 to Windows 8.2 / Windows 9 for that matter.
    Note 4: Reset SMC and / or PRAM will NOT affect your ability to boot any of the OS (OSX, Recovery HD, Fedora & Windows 8)
    Yup, that is it!

  • How to install Windows 8 or 8.1 on linpus linux with usb? I have Acer aspire E5-551G-t16q.

    how to install Windows 8 or 8.1 on linpus linux with usb? I have Acer aspire E5-551G-t16q. 

    Welcome to Apple Support Communities
    Your MacBook Pro is not designed to install Windows through an USB drive, so do not use this option. You are getting a white screen because your MacBook cannot start up from the USB drive with Windows.
    Instead, use a DVD with Windows, so you will be able to install Windows. Follow these steps > http://manuals.info.apple.com/MANUALS/1000/MA1636/en_US/boot_camp_install-setup_ 10.8.pdf
    Mid 2009 MacBooks Pro do not support Windows 8 officially

  • How to embed a signature in the PDF file with Java?

    Hello All!
    There is no problem to sign a PDF with Java for me. But how to embed this signature in the PDF. I really don't know. I've found the PdfSignature class in the iText lib. But it is poor.
    I've read on the another forum: "If you want to do server-based signatures, there is only one option - SecurSign http://www.appligent.com)."

    How to sign a PDF using iText

  • How can I get the time in Microsecond with JNI ?

    How can I get the time in Microsecond with JNI ?

    JNIEXPORT jdouble JNICALL Java_Win32Native_queryPerformanceFrequency (JNIEnv *env, jobject obj) {
         LARGE_INTEGER lFrequency;
         ::QueryPerformanceFrequency(&lFrequency);
         return (jdouble)lFrequency.QuadPart;
    JNIEXPORT jdouble JNICALL Java_Win32Native_queryPerformanceCounter (JNIEnv *env, jobject obj) {
         LARGE_INTEGER lpCounter;
         ::QueryPerformanceCounter(&lpCounter);
         return (jdouble)lpCounter.QuadPart;

  • HELP!!!! I have spent hours trying to find out how to embed an image with a link or a Microsoft Word document with a hyperlink built within the document -- not as an attachment! Does ANYONE know the secret? Can it be done, or not! My PC clients do it.

    HELP!!!! I have spent hours trying to find out how to embed an image with a link, or embed a Microsoft Word document with a hyperlink built within the document -- not as an attachment into my email -- but where it shows as the email content when opened! Does ANYONE know the secret? Can it be done, or not? My PC clients do it all the time easily. Then I want to be able to send the embedded image/document (not as an attachment, but visable within the email when opened) to many email contacts at once, BUT the individuals receiveing them DO NOT SEE the other email contacts. Cannot seem to be able to find anything on being able to do these 2 tasks.PLEASE, SOMEONE, HELP!!!

    Don't know if this applies to Lion, but read here:
    http://www.makeuseof.com/tag/create-html-announcement-mail-iweb-mac/

  • How do you setup GNU/Linux on an iMac G4 with Panther OS X 10.3.9 ?...

    How do you setup GNU/Linux on an iMac apple computer
    http://en.wikipedia.org/wiki/IMac_G4
    with Panther OS X 10.3.9
    http://en.wikipedia.org/wiki/OSX10.3 ?...

    There is a Ubuntu 10.4 version for Mac with PPC architecture; not sure
    how that would work in the computer you may consider running it in.
    Some leads on that kind of discussion can be found by using a Google
    search, and the words: *ubuntu for PPC G4 Mac* + read through results.
    Or choose to search using these terms: *Open Source Linux PPC G4 Mac*
    A few results point back to Apple Discussions, where there were inquiries.
    Note the version of a Linux-type of OS, compatible with Mac PPC hardware,
    on the following page-link: *• Ubuntu 10.0.4 LTS (Lucid Lynx)*
    http://cdimage.ubuntu.com/ports/releases/10.04/release/
    {You would have to put the image, as downloaded from such a site, on a CD
    for use as an Installer; then follow any instructions as available to install it.}
    An old page (from 2007?) with some details, some not up-to-date,
    may be of help to a limited degree, from here: Ubuntu PPC wiki
    https://wiki.ubuntu.com/PowerPCFAQ#Is%20Ubuntu%20supported%20on%20PowerPC?
    Or: https://wiki.ubuntu.com/PowerPCFAQ
    See their home page to look for other information on the site: https://wiki.ubuntu.com/
    These wiki groups are like communities, with rules & other such considerations; you
    may be able to also find +Open Source+ sites with information and builds of suitable
    Linux versions capable of running well in an older PPC Mac. There are newer ones
    that would have no problem on a newer Intel-based Mac, of course.
    • Mac Linux Links: (perhaps too dated)
    http://lowendmac.com/linux/index.shtml
    • Comparison of Linux distributions:
    http://en.wikipedia.org/wiki/Comparisonof_Linuxdistributions
    Hardware support in the older PPC G4 Mac computer should be considered, in order
    to have the better experience possible with the Linux-based OS; and some specs in
    an old Mac may not be ideal. The graphics processor unit and amount of dedicated
    RAM for the graphics alone, could make a difference; depending on what you had in
    mind when running a Linux-based OS in a PPC Mac. So consider hardware specs.
    Some hardware in the computer may or may not be supported by the Software; and
    then, there may be some problems implementing a Linux OS version in your Mac.
    If you had an old Mac Mini (PPC or early Intel) & considered running Linux, there's
    a page of general ideas worth a peek: http://sowerbutts.com/linux-mac-mini/
    You may not have enough room on the existing internal hard disk drive inside the
    iMac G4, for a complete OS X 10.3.9 or Later OS X, and a partition for Linux in it.
    And, you may find through reading further, if you need to (or don't) start fresh and
    have a partition for each different OS, or not. For organizational purposes and ease
    of removing one system or the other, a partitioned hard disk drive may be best.
    There probably is a way to have Linux on an external bootable hard disk drive; &
    that would have to be compatible with the Mac hardware requirements to be seen
    and used by the computer, and also the ability to restart from Linux into Mac OS X
    would have to exist in the system software. Hopefully without incident.
    You will have some degree of a learning curve in this matter, from reading up on
    the details of any viable Linux versions, through the ones likely to work in your
    old PPC G4 Mac, and then if there are more than two or three good ones, of those
    what one would be most likely to be worth the additional effort to attempt to use in it.
    Depending on the version and specifications of your iMac G4 computer, there could
    be different versions of linux systems capable of running it. However, some items
    may not be supported which you would need to have working, such as wi-fi internet
    and sleep mode, etc; among others. Searching the net does bring up more info.
    {You may find, that going to OS X 10.4.11 would be more worth the effort, in that
    most everything would 'just work' and you can still find many good software bits
    and some fine freeware or low cost shareware to run on it. Linux versions vary
    so much on what they can and cannot do, I would not recommend running it.}
    Since I am not an expert in the matter, hopefully someone with a experimental time
    and results in a similar vintage Mac as yours will reply and give you insightful info.
    Good luck & happy computing!

  • How to use VS2005 dlls with jni?

    Hello,
    I have a java application using jni and some dlls.
    Previously this dlls were created using VS2003. Now I want to use VS2005 and I
    encountered some problems.
    Everything is working on my station were I have installed VS2005 but when I try to run the
    application on other station (a test station) is not working.
    I get the following error:
    java.lang.UnsatisfiedLinkError: C:\App\Test.dll: This application has failed to start because
    the application configuration is incorrect. Reinstalling the application may fix this problem
         at java.lang.ClassLoader$NativeLibrary.load(Native Method)
         at java.lang.ClassLoader.loadLibrary0(Unknown Source)
         ......First I tried to search all the dependences and copied all missing dlls from my work station to the test
    station in the application directory. Still not working.
    when dlls were made with VS2003 I had only 3 dependences: mfc71d, msvcp71d, msvcr71d. With this dlls in
    the application directory everything was fine.
    Second I tried to install .Net framework(2.0) and vcredist (VS2005_sp1) but still nothing.
    What I'm doing wrong? Is somebody which is using dlls made in VS2005 with jni?
    Thank you
    ,Dragos

    IIRC, that message means the manifest file in the DLL points to assembly that your computer doesn't have, or it has no manifest file.
    You either need to:
    -recompile using static linking so that it has no dependencies
    -stick the correct manifest in
    -include the entire SxS (site by side) assembly folders with your application (only the ones you're dependent on). These are found in something similar to:
    C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\redist\x86

  • How to embed fonts in a textbox in adobe acrobat 9

    Hi all,
    The forms has beed designed in adobe acrobat 9.It has the text in the textboxes with a fontstyle of DejaVu Sans Mono.The client or the user generates the form by clicking on the appropriate link and the textboxes are populated accordingly.The problem is they dont have the fontstyle used in the textbox installed on their system.So whenever they generate the pdf the font in the textbox doesn't print in properly.Is there anyway we could force it to use the font which we have originally set up.Thanks in advance

    Bernd Alheit wrote:
    Read this:
    http://www.ehow.com/how_6566713_embed-fonts-pdf.html
    I have the somthing like the following in Ctrl-D Fonts. They can not be embedded using the method above. I guess it is because the fonts in the original pdf are not available in the system. But how to embed the substitutes in the pdf file.
    Helvetica
        Type: Type 1
        Encoding: Custom
        Actual Font: Helvetica
        Actual Font Type: TrueType

Maybe you are looking for

  • Invoice creation issue (MIRO) against purchase order - reference

    while creating invoice i am getting the error : GL account not defined in  chart of account. regards Girish

  • Change settings for workflow operation

    Hi, I am trying to change the settings and choose a custom workflow for the workflow operation 'Upload Document' in a folder in content services. However i cannot change the settings as the 'Workspaces' container has 'Do not allow subfolders to modif

  • Question about DB13 jobs under MSCS environment

    Hi, I have migrated my system to cluster hardware.It´s two nodes windows 2003 server R2 x64, with MSCS and Oracle 10g. I need run DB13 operations, so I have installed the standalone gateway following note 657999. Gateway is running anda RFC works fin

  • My apple id is disabled

    I was hacked like 6 days ago and 61$ were stolen from my account. Did apple help? NO. Did paypal help? NOT YET. And now, I haven't been able to do **** with my phone since it has been disable for the last 5 days. So how am I getting it back? I have n

  • Why won't music go onto my iPhone 5?

    I have my iPhone 5 plugged in, music is to be handled manually, music share is off on the phone so that I can drag mjsic over to the phone (or at least I thought I should be able to) but when I drag songs over the music shows up as gray in iTunes, bu