m.kelas-karyawan-sebi.prestasi.web.id Layanan Informasi 17 Jam
Telp/Fax : 021-8762002, 8762003, 8762004, 87912360
HP/SMS : 081 1110 4824 27, 0812 9526 2009, 08523 1234 000
WhatsApp : 0817 0816 486, 0812 9526 2009
email : _Hubungi Kami__ silahkan klik
Chatting dengan Staf :
ggkarir.com
ggiklan.com
Pilih Bahasa :   ID   EN   Permintaan Katalog / Brosur (GRATIS via POS)   Ensiklopedia Lowongan Karir Iklan

   
Cari di Apache Ant 
    Apache Ant Tutorial

    Sebelumnya  (Javadoc/Javadoc2) (JDepend)  Berikutnya    
Apache Ant Tasks

Javah

Javah

Description

Generates JNI headers from a Java class.

When this task executes, it will generate the C header and source files thatare needed to implement native methods. JNI operates differently depending onwhether JDK1.2(or later) or pre-JDK1.2systems are used.

It is possible to use different compilers. This can be selectedwith the implementation attribute or a nested element. Here are the choices of the attribute:

  • default - the default compiler (kaffeh or sun) for the platform.
  • sun (the standard compiler of the JDK)
  • kaffeh (the native standard compiler of Kaffe)
  • gcjh (the native standard compiler of gcj and gij) since Apache Ant 1.8.2

Note: if you are using this task to work on multiple files the command line may become too long on some operating systems. Unfortunately the javah command doesn't support command argument files the way javac (for example) does, so all that can be done is breaking the amount of classes to compile into smaller chunks.

Parameters

Attribute Description Required
class the fully-qualified name of the class (or classes, separated by commas) Yes
outputFile concatenates the resulting header or source files for all the classes listed into this file Yes
destdir sets the directory where javah saves the header files or the stub files.
force specifies that output files should always be written (JDK1.2 only) No
old specifies that old JDK1.0-style header files should be generated (otherwise output file contain JNI-style native method function prototypes) (JDK1.2 only) No
stubs generate C declarations from the Java object file (used with old) No
verbose causes Javah to print a message concerning the status of the generated files No
classpath the classpath to use. No
bootclasspath location of bootstrap class files. No
extdirs location of installed extensions. No
implementation The compiler implementation to use. If this attribute is not set, the default compiler for the current VM will be used. (See the above list of valid compilers.) No

Either outputFile or destdir must be supplied, but not both. 

Parameters specified as nested elements

arg

You can specify additional command line arguments for the compilerwith nested <arg> elements. These elements arespecified like Command-line Argumentsbut have an additional attribute that can be used to enable argumentsonly if a given compiler implementation will be used.

Attribute Description Required
value See Command-line Arguments. Exactly one of these.
line
file
path
prefix See Command-line Arguments. Since Ant 1.8. No
suffix No
implementation Only pass the specified argument if the chosen compiler implementation matches the value of this attribute. Legal values are the same as those in the above list of valid compilers.) No

implementationclasspath since Ant 1.8.0

A PATH like structure holding the classpath to use when loading the compiler implementation if a custom class has been specified. Doesn't have any effect when using one of the built-in compilers.

Any nested element of a type that implements JavahAdapter since Ant 1.8.0

If a defined type implements the JavahAdapter interface a nested element of that type can be used as an alternative to the implementation attribute.

Examples

  <javah destdir="c" class="org.foo.bar.Wibble"/>

makes a JNI header of the named class, using the JDK1.2 JNI model. Assumingthe directory 'c' already exists, the file org_foo_bar_Wibble.his created there. If this file already exists, it is left unchanged.

  <javah outputFile="wibble.h">    <class name="org.foo.bar.Wibble,org.foo.bar.Bobble"/>  </javah>

is similar to the previous example, except the output is written to a filecalled wibble.hin the current directory.

  <javah destdir="c" force="yes">    <class name="org.foo.bar.Wibble"/>    <class name="org.foo.bar.Bobble"/>    <class name="org.foo.bar.Tribble"/>  </javah>

writes three header files, one for each of the classes named. Because theforce option is set, these header files are always written when the Javah taskis invoked, even if they already exist.

  <javah destdir="c" verbose="yes" old="yes" force="yes">    <class name="org.foo.bar.Wibble"/>    <class name="org.foo.bar.Bobble"/>    <class name="org.foo.bar.Tribble"/>  </javah>  <javah destdir="c" verbose="yes" stubs="yes" old="yes" force="yes">    <class name="org.foo.bar.Wibble"/>    <class name="org.foo.bar.Bobble"/>    <class name="org.foo.bar.Tribble"/>  </javah>

writes the headers for the three classes using the 'old' JNI format, thenwrites the corresponding .c stubs. The verbose option will cause Javah todescribe its progress.

If you want to use a custom JavahAdapter org.example.MyAdapter you can either use the implementation attribute:

<javah destdir="c" class="org.foo.bar.Wibble"       implementation="org.example.MyAdapter"/>

or a define a type and nest this into the task like in:

<componentdef classname="org.example.MyAdapter"              name="myadapter"/><javah destdir="c" class="org.foo.bar.Wibble">  <myadapter/></javah>

in which case your javah adapter can support attributes and nested elements of its own.

    Sebelumnya  (Javadoc/Javadoc2) (JDepend)  Berikutnya    


TV & Radio AsingKedutaan KBRIKab/Kota, Desa, Kec.CPNSNegara seluruh DuniaReferensi ICTS2MasyarakatAgamaDebat PendidikanKhonghucu



Tags: Javah, Apache Ant Tutorial, 2242, Apache Ant Tasks Javah Javah Description Generates JNI headers from a Java class, When this task executes it will generate the C header and source files that are needed to implement native methods, JNI operates differently depending on whether JDK1.2 (or later) or pre JDK1.2 systems are used, It is possible to use different compilers, This can be selected with the implementation attribute or a ne, Javah, Bahasa Indonesia, Contoh Instruksi, Tutorial, Referensi, Buku, Petunjuk m.kelas karyawan sebi, prestasi.web.id
 Berbagai Perdebatan    Program S2 (Pascasarjana)    Download Brosur    Bursa Karir
Penyelenggara
Perkuliahan Pegawai (Hybrid)

TUJUAN
SELAMAT DATANG
PENERIMAAN MHS BARU
BIAYA PENDIDIKAN
JADWAL PELAJARAN & DOSEN
Kumpulan Web Perkuliahan Paralel
Kumpulan Web Gabungan PTS
Kumpulan Web Program Reguler Pagi/Siang
Kumpulan Web Program S2 (Pascasarjana)
Kumpulan Web Kuliah Karyawan

 Qur'an Online    Buku Tutorial    Soal-Jawab Psikotes/TPA    Semua Literatur Bebas    Berbagai Publikasi    Pendaftaran Online    Pengajuan Beasiswa    Kuliah Hybrid di 112 PTS Terbaik    Program Perkuliahan Gratis    Program Kuliah Extension    Program Kuliah Reguler Pagi/Siang    Perkuliahan Paralel    Try Out Online Gratis    Jadwal Sholat
Tautan Khusus
Pendidikan
PTS Teruji & Terkemuka
Perkuliahan Program S1, S2, D3

Permintaan Kirim Brosur
(GRATIS via POS)
Nama Lengkap Penerima

Alamat Penerima Katalog

Kota + Provinsi

Kode Pos

Email (tidak wajib)

✶ harus diisi lengkap & jelas
Atau kirimkan nama dan
alamat lengkap via SMS ke HP:
0811 1990 9026


Brosur Gratis
Brosur Kelas Karyawan
Gabungan Seluruh Wilayah Indonesia

pdf (11,2 MB)ZIP (8,8 MB)
Image/JPG (36,2 MB)
Brosur Kelas Karyawan
JABODETABEK

pdf (5,5 MB)ZIP (4,4 MB)
Image/JPG (13,2 MB)
Brosur Kelas Karyawan
DIY,JATENG,JATIM & BALI

pdf (4,4 MB)ZIP (3,5 MB)
Image/JPG (14,5 MB)
Brosur Kelas Karyawan
JAWA BARAT

pdf (2,8 MB)ZIP (2,2 MB)
Image/JPG (7,1 MB)
Brosur Kelas Karyawan
SULAWESI

pdf (1,9 MB)ZIP (1,5 MB)
Image/JPG (5,6 MB)
Brosur Kelas Karyawan
SUMATERA & BATAM

pdf (2,2 MB)ZIP (1,7 MB)
Image/JPG (6,5 MB)
Brosur Khusus Reguler
pdf (4,1 Mb)ZIP (8,4 Mb)
Untuk Meningkatkan
Pendapatan PTS, Sumber Daya dan Kualitas Pendidikan PTS

pdf(6 Mb)Image/JPG(16 Mb)

CARA Meningkatkan
Pendapatan, Sumber Daya PTS dan Kualitas Pendidikannya
http://kpt.co.id
Terobosan Baru

PT. Gilland Ganesha
Membutuhkan Segera

  • Design Grafis
  • Tenaga Ahli Pemrograman

Seluruh Ringkasan di :
Kesempatan karier

155 Ras Kucing di Dunia

Bola bulu kucing, breed quality kucing, cara memberi makan kucing, dsb.

Twitter Kuliah Karyawan

Web Artikel
Persiapan Tes Psikologi
Ensiklopedia Online

p2k.institutmekongga.ac.id  |  unucirebon.web.id  |  p2k.unucirebon.ac.id  |  p2k.sebi.ac.id  |  unusida.web.id  |  stiepasim.web.id  |  uyi.web.id  |  unmkramat.web.id  |  unmjatiwaringin.web.id  |  unmdepok.web.id