Symbian
Symbian OS Library

FAQ-1039 How do I specify a JNI project which builds a class in a non-default package?

[Index][spacer] [Previous] [Next]



 

Classification: Java Category: JNI
Created: 04/27/2004 Modified: 06/16/2004
Number: FAQ-1039
Platform: Symbian OS v7.0

Question:
The file "classes.mk" in the infoprint JNI examples on the UIQ SDK builds all the Java classes into a default package. How do I have to modify this file to make it build into a different named package?

Answer:
The com.symbian.devnet.util.TaskSwitch utility class also defines native methods. You can find the source and project build files for this in C:\Symbian\UIQ_70\erj\utilities\util\. From inspecting the version of classes.mk there you should be able to infer how to include package info in your own project.