Category Archives: Java

Android Studio ndk project asset_manager_jni.h – no such file or directory error

Problem

While building an Android java library project with Android Studio, a compiler error occurs: “android/asset_manager_jni.h: No such file or directory“. Java sources are in the main/java folder. C++ native sources are placed into the main/jni folder. When I try to compile the whole library without my custom Android.mk, there is no error! When using it, my own ndkbuild in the build.gradle fails with the above error. I searched for solutions but none helped me. Environment: MacBook, OS X: Yosemite, IDE: Android Studio 1.1.0. I installed the latest NDK android-ndk-r10d. What do I miss? (Project code was included).

Continue reading Android Studio ndk project asset_manager_jni.h – no such file or directory error

Configure NetBeans to test and deploy Raspberry Pi project

The Raspberry Pi (RPi) is a great strong device to play with. It is definiately not the perfect gadget to run resource hungry IDE, and develop c, c++, web… or Java applications on. Use your own laptop or desktop computer to build your code, test it and debug it while the code is running on the device. NetBeans for Mac (and Windows) is a reliable IDE with remote testing and deployment options.

Continue reading Configure NetBeans to test and deploy Raspberry Pi project

Develop Raspberry Pi application on Mac (OS X)

Question

As a newbie I am planning to play with a Raspberry Pi 2 (RPi). I am a seasoned c++, c#, objective-c and java programmer. Can I manage projects from my MacBook Pro? Can I control RPi remotely from the Mac without using extra monitor and keyboard? What programming languages and SDK do you recommend? Can I use Xcode, Eclipse or NetBeans? How to debug and deploy a Raspberry Pi application?

Continue reading Develop Raspberry Pi application on Mac (OS X)

Add SQLite Free Text Search functionality to Java app on Mac

Question: I’d like to pre-build a platform independent SQLite database with Java desktop app. This database file with FTS (Free Text Search) indexes will be embedded into Android and iPhone applications. How can I install an SQLite3 free text search (FTS3) module for my Java desktop application? Somehow this binary, library (or app file) cannot be found on the net. Environment: OS X 10.6, NetBeans IDE, Java Swing desktop app with sqlite-jdbc-3.7.2.jar wrapper. Continue reading Add SQLite Free Text Search functionality to Java app on Mac