<span id="Label3">When using the Javah command, it is found to use directly:<br><p>javah-d Outputdir-jni Xxx.xxx.MyClass</p><p>Will Appear:</p><p><span>Error: class Android.hardware.Camera not found. </span></p>Because my <span>MyClass</span> inside quoted <span>android.hardware.Camera, so must add Classpath</span><p><br></p><p><span>Note that</span> on Unix-like systems:</p><p><span>javah-d outputdir-classpath ~/library/android/sdk/platforms/android-21/android.jar<strong><span style="background-color:#E53333;">:.</span></strong> <span>Xxx.xxx.MyClass</span> </span></p><p>If the win system is the case, it should be:<br><span>javah-d</span> <span>OutputDir</span> <span></span> <span></span><span style="background-color:#337FE5;"><span style="background-color:#337FE5;"></span></span> -classpath <span></span> D:\Library\Android\sdk\platforms\android-21\android.jar; <strong><span style="background-color:#337FE5;">. </span></strong> <span>Xxx.xxx.MyClass</span></p><p>Javah can't find the Android system class</p></span>
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service