<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=utf-8" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 9.00.8112.16421">
<STYLE>@font-face {
        font-family: 宋体;
}
@font-face {
        font-family: Verdana;
}
@font-face {
        font-family: @宋体;
}
@page Section1 {size: 595.3pt 841.9pt; margin: 72.0pt 90.0pt 72.0pt 90.0pt; layout-grid: 15.6pt; }
P.MsoNormal {
        TEXT-JUSTIFY: inter-ideograph; TEXT-ALIGN: justify; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"; FONT-SIZE: 10.5pt
}
LI.MsoNormal {
        TEXT-JUSTIFY: inter-ideograph; TEXT-ALIGN: justify; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"; FONT-SIZE: 10.5pt
}
DIV.MsoNormal {
        TEXT-JUSTIFY: inter-ideograph; TEXT-ALIGN: justify; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"; FONT-SIZE: 10.5pt
}
A:link {
        COLOR: blue; TEXT-DECORATION: underline
}
SPAN.MsoHyperlink {
        COLOR: blue; TEXT-DECORATION: underline
}
A:visited {
        COLOR: purple; TEXT-DECORATION: underline
}
SPAN.MsoHyperlinkFollowed {
        COLOR: purple; TEXT-DECORATION: underline
}
SPAN.EmailStyle17 {
        FONT-STYLE: normal; FONT-FAMILY: Verdana; COLOR: windowtext; FONT-WEIGHT: normal; TEXT-DECORATION: none; mso-style-type: personal-compose
}
DIV.Section1 {
        page: Section1
}
UNKNOWN {
        FONT-SIZE: 10pt
}
BLOCKQUOTE {
        MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; MARGIN-LEFT: 2em
}
OL {
        MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
UL {
        MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
</STYLE>
</HEAD>
<BODY style="MARGIN: 10px; FONT-FAMILY: verdana; FONT-SIZE: 10pt">
<DIV><FONT color=#000080 size=2 face=Verdana>Yes, I downloaded <A 
href="http://libguestfs.org/download/1.10-stable/libguestfs-1.10.3.tar.gz"><FONT 
color=#0066cc>libguestfs-1.10.3.tar.gz</FONT></A> from <A 
href="http://libguestfs.org/download/1.10-stable/">http://libguestfs.org/download/1.10-stable/</A>, 
but I can't find<FONT color=#000000> libguestfs_jni.so.* </FONT></FONT><FONT 
color=#000080 size=2 face=Verdana>files in the package, do it need to compile 
the c source to manually build a<FONT color=#000000> libguestfs_jni.so.1 or 
the</FONT> jar file ?</FONT></DIV>
<DIV><FONT color=#000080></FONT> </DIV>
<DIV><FONT color=#000080>Thanks!</FONT></DIV>
<DIV><FONT color=#c0c0c0 size=2 face=Verdana>2011-05-23 </FONT></DIV><FONT 
color=#000080 size=2 face=Verdana>
<HR style="WIDTH: 100px" align=left color=#b5c4df SIZE=1>
</FONT>
<DIV><FONT color=#c0c0c0 size=2 face=Verdana><SPAN>
<DIV>
<DIV>毛宏  
<DIV> </DIV></DIV></DIV></SPAN></FONT></DIV>
<HR color=#b5c4df SIZE=1>

<DIV><FONT size=2 face=Verdana><STRONG>发件人:</STRONG> Richard W.M. Jones 
</FONT></DIV>
<DIV><FONT size=2 face=Verdana><STRONG>发送时间:</STRONG> 2011-05-23  17:12:59 
</FONT></DIV>
<DIV><FONT size=2 face=Verdana><STRONG>收件人:</STRONG> 毛宏; libguestfs 
</FONT></DIV>
<DIV><FONT size=2 face=Verdana><STRONG>抄送:</STRONG> </FONT></DIV>
<DIV><FONT size=2 face=Verdana><STRONG>主题:</STRONG> Re: Re: [Libguestfs] How to 
run the java demo code containedinlibguestfs package ??? </FONT></DIV>
<DIV><FONT size=2 face=Verdana></FONT> </DIV>
<DIV><FONT size=2 face=Verdana>
<DIV>[Please keep replies on the list]</DIV>
<DIV></DIV>
<DIV>On Mon, May 23, 2011 at 04:44:48PM +0800, 毛宏 wrote:</DIV>
<DIV>> Thanks, I am using libguestfs-1.10.3, the stable release. But I</DIV>
<DIV>> can't find the libguestfs_jni.so.1 or the jar file from the package,</DIV>
<DIV>> where can I get one ?</DIV>
<DIV></DIV>
<DIV>Are you compiling from source?</DIV>
<DIV></DIV>
<DIV>In the standard build, libtool puts the libguestfs_jni.so* files in</DIV>
<DIV>"java/.libs" so you would use:</DIV>
<DIV></DIV>
<DIV>  java -Djava.library.path=.libs t/GuestFS005Load</DIV>
<DIV></DIV>
<DIV>(See java/run-java/tests)</DIV>
<DIV></DIV>
<DIV>The jar file should be built in the java/ directory.  However you</DIV>
<DIV>don't need it when running the tests because the JVM can find the</DIV>
<DIV>separate *.class files it needs from the current directory.</DIV>
<DIV></DIV>
<DIV>Rich.</DIV>
<DIV></DIV>
<DIV>-- </DIV>
<DIV>Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones</DIV>
<DIV>virt-top is 'top' for virtual machines.  Tiny program with many</DIV>
<DIV>powerful monitoring features, net stats, disk stats, logging, etc.</DIV>
<DIV>http://et.redhat.com/~rjones/virt-top</DIV></FONT></DIV></BODY></HTML>