Results 1 to 2 of 2

Thread: Linking the Synaptic's JMagick to ImageMagick

  1. #1
    Join Date
    Sep 2006
    Location
    Germany
    Beans
    403
    Distro
    Ubuntu 11.10 Oneiric Ocelot

    Linking the Synaptic's JMagick to ImageMagick

    Hello,
    I used Synaptic to install everything JMagick and ImageMagick. JMagick requires the JNI link from my Java Project to ImageMagick. I can't seem to find what the link or sym-link should be.

    Anybody have any success setting up JMagick to a java project? Most of my searching shows Ubuntu 9.10 solutions with a svn ./configure with a lot of path variables. I would think the Synaptic version would have all that done already.
    "You don't do art because you want to, no, you do art because you have to." -- M. Buonarroti

  2. #2
    Join Date
    Sep 2006
    Location
    Germany
    Beans
    403
    Distro
    Ubuntu 11.10 Oneiric Ocelot

    Re: Linking the Synaptic's JMagick to ImageMagick

    After spending a lot of time with this failure, I wanted to tell what does work first.
    In regular JavaSE you can hand off a String[] arr to
    Code:
        private static boolean exec(String[] command) {
            Process proc;
    
            try {
                System.out.println("Trying to execute command " + Arrays.asList(command));
                proc = Runtime.getRuntime().exec(command);
            } catch (IOException e) {
                System.out.println("IOException while trying to execute " + command);
                return false;
            }
    With JNI you wouldn't end up with a portable software application. JNI is invariably such a nightmare unless you install a complete API, SDK, and then build JMagick with a lot of flags set so to connect java to native. IMHO, Synaptic libjmagick could not match the user's JDK with the ImageMagick version. Ubuntu loves to rename the libs to stave off OS cracks. JMagick has slowed development since a couple of years backwards.

    Anyway, if you find this thread, try Runtime.getRuntime().exec( myIMcmmd )
    "You don't do art because you want to, no, you do art because you have to." -- M. Buonarroti

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •