blob: dc2d341b88c692f5924b44a35cce4e169c05459d [file] [log] [blame]
//
// Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may not use this file except in compliance
// with the License. You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing,
// software distributed under the License is distributed on an
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
// under the License.
//
= How do I add native libraries to my module?
:page-layout: wikidev
:page-tags: wiki, devfaq, needsreview
:jbake-status: published
:keywords: Apache NetBeans wiki DevFaqNativeLibraries
:description: Apache NetBeans wiki DevFaqNativeLibraries
:toc: left
:toc-title:
:page-syntax: true
:page-wikidevsection: _development_issues_module_basics_and_classpath_issues_and_information_about_rcpplatform_application_configuration
:page-position: 14
include::front::partial$database.adoc[]
DLLs or SOs can be placed in the folder `release/modules/lib/` in a module project's sources (look in the *Files* tab). This will make them appear in the final NBM or application in a `lib` subdirectory beneath where the module's JAR resides. Then just use `System.loadLibrary` as usual.
link:{apidoclink}org-openide-modules/org/openide/modules/doc-files/api.html#jni[API Reference: JNI in modules]
Applies to: NetBeans 6.8 and above