login about faq

Hi.

I usually develop only with windows., But today, I have to do it cross platform.

This my source code for include chilkat library when use windows only.

static {
    try {
        System.loadLibrary("lib/win64");
    } catch (UnsatisfiedLinkError e) {
        try {
            System.loadLibrary("lib/win32");
        } catch (UnsatisfiedLinkError e2) {
            System.err.println("Native code library failed to load.\n" + e2);
            System.exit(1);
        }
    }
}

And now I no idea. How include chilkat library on java application with cross platform ?

Please guide best way to me.

Thank you.

asked Jun 20 '14 at 02:11

Jaynarol's gravatar image

Jaynarol
26236


Your code would be the same in all cases:

...
        System.loadLibrary("chilkat");
...

The only difference is that on Linux the Java runtime would find and load libchilkat.so, whereas on Windows the runtime would find and load chilkat.dll

link

answered Jun 20 '14 at 12:26

chilkat's gravatar image

chilkat ♦♦
11.8k316358420

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×21
×2
×1

Asked: Jun 20 '14 at 02:11

Seen: 943 times

Last updated: Jun 20 '14 at 12:26

powered by OSQA