<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'>
<br>Hi,<br><br>Please help me. I really like to learn programming in VirtualBox Main API.<br><br>-Arindam <br><hr id="stopSpelling">From: arindam@live.com<br>To: nikolay.igotti@oracle.com; vbox-dev@virtualbox.org<br>Date: Wed, 11 May 2011 19:50:57 +0530<br>Subject: Re: [vbox-dev] Java Samples in VirtualBoxSDK-4.0.6-71344<br><br>

<meta http-equiv="Content-Type" content="text/html; charset=unicode">
<meta name="Generator" content="Microsoft SafeHTML">
<style>
.ExternalClass .ecxhmmessage P
{padding:0px;}
.ExternalClass body.ecxhmmessage
{font-size:10pt;font-family:Tahoma;}

</style>


<br>Hi,<br><br>[arindam@aopcach java]$ java -cp /home/arindam/Downloads/sdk/bindings/webservice/java/jax-ws/vboxjws.jar:. TestVBox<br>[arindam@aopcach java]$<br><br>No output ... nothing. :(<br><br>in the [arindam@aopcach ~]$ vboxwebsrv -v terminal, I have:<br><br>00:04:10.173 Watchdog Watchdog: sleeping 5 seconds<br>00:04:15.171 main     Pumping COM event queue<br>00:04:15.173 Watchdog Watchdog: checking 0 sessions<br><br>Thanks,<br>-Arindam<br><br><br>> Date: Wed, 11 May 2011 17:02:10 +0400<br>> From: nikolay.igotti@oracle.com<br>> To: arindam@live.com<br>> CC: vbox-dev@virtualbox.org<br>> Subject: Re: [vbox-dev] Java Samples in VirtualBoxSDK-4.0.6-71344<br>> <br>>  You need to have path where TestVBox.class is located (likely .) in the <br>> classpath, such as<br>> java -cp <br>> /home/arindam/Downloads/sdk/bindings/webservice/java/jax-ws/vboxjws.jar:. <br>> TestVBox<br>> <br>> Arindam Choudhury wrote:<br>> ><br>> > Hi,<br>> ><br>> > I am having this problem:<br>> ><br>> > [arindam@aopcach java]$ javac -cp <br>> > /home/arindam/Downloads/sdk/bindings/webservice/java/jax-ws/vboxjws.jar <br>> > TestVBox.java<br>> > [arindam@aopcach java]$ java -cp <br>> > /home/arindam/Downloads/sdk/bindings/webservice/java/jax-ws/vboxjws.jar <br>> > TestVBox<br>> > Exception in thread "main" java.lang.NoClassDefFoundError: TestVBox<br>> > Caused by: java.lang.ClassNotFoundException: TestVBox<br>> >     at java.net.URLClassLoader$1.run(URLClassLoader.java:202)<br>> >     at java.security.AccessController.doPrivileged(Native Method)<br>> >     at java.net.URLClassLoader.findClass(URLClassLoader.java:190)<br>> >     at java.lang.ClassLoader.loadClass(ClassLoader.java:306)<br>> >     at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)<br>> >     at java.lang.ClassLoader.loadClass(ClassLoader.java:247)<br>> > Could not find the main class: TestVBox.  Program will exit.<br>> ><br>> > Thanks for your reply.<br>> > -Arindam<br>> ><br>> > > Date: Wed, 11 May 2011 16:55:13 +0400<br>> > > From: nikolay.igotti@oracle.com<br>> > > To: arindam@live.com<br>> > > Subject: Re: [vbox-dev] Java Samples in VirtualBoxSDK-4.0.6-71344<br>> > ><br>> > > Nothing tricky - vboxjws.jar have to be on the classpath (see testws<br>> > > Makefile target).<br>> > ><br>> > > Nikolay<br>> > ><br>> > > Arindam Choudhury wrote:<br>> > > > Hi,<br>> > > ><br>> > > > Thank you Nikolay for your reply.<br>> > > ><br>> > > > I found the file and compiled it with some modification(import<br>> > > > org.virtualbox_4_0.*;).<br>> > > ><br>> > > > but I am having problem running it. Can you please help? the<br>> > > > $CLASSPATH is really confusing.<br>> > > ><br>> > > > -Arindam<br>> > > ><br>> > > > > Date: Wed, 11 May 2011 16:29:26 +0400<br>> > > > > From: nikolay.igotti@oracle.com<br>> > > > > To: arindam@live.com<br>> > > > > CC: vbox-dev@virtualbox.org<br>> > > > > Subject: Re: [vbox-dev] Java Samples in VirtualBoxSDK-4.0.6-71344<br>> > > > ><br>> > > > > Hi Arindam,<br>> > > > ><br>> > > > > Seems manual contains outdated information, as actual location <br>> > of the<br>> > > > > sample code (which is the same for JAX and XPCOM)<br>> > > > > is bindings/glue/java, also consult Makefile.kmk in the same <br>> > folder for<br>> > > > > command line used to compile and run samples.<br>> > > > ><br>> > > > > Thanks,<br>> > > > > Nikolay<br>> > > > ><br>> > > > ><br>> > > > > Arindam Choudhury wrote:<br>> > > > > > Hi,<br>> > > > > ><br>> > > > > > I have downloaded the VirtualBoxSDK-4.0.6-71344 and reading the<br>> > > > > > provided Reference.<br>> > > > > ><br>> > > > > > But in section 2.1.1.2 it said that the<br>> > > > > > sdk/bindings/webservice/java/jax-ws/samples/ contains the java <br>> > sample<br>> > > > > > file.<br>> > > > > > But in the downloaded archive, I can not find the folder.<br>> > > > > > The sdk/bindings/webservice/java/jax-ws only contains COPYING.LIB<br>> > > > > > vboxjws.jar.<br>> > > > > ><br>> > > > > > Where to find the samples file?<br>> > > > > ><br>> > > > > > -Arindam<br>> > > > > ><br>> > > > <br>> > ------------------------------------------------------------------------<br>> > > > > ><br>> > > > > > _______________________________________________<br>> > > > > > vbox-dev mailing list<br>> > > > > > vbox-dev@virtualbox.org<br>> > > > > > http://vbox.innotek.de/mailman/listinfo/vbox-dev<br>> > > > > ><br>> > > > ><br>> > ><br>> <br>                                           
<br>_______________________________________________
vbox-dev mailing list
vbox-dev@virtualbox.org
http://vbox.innotek.de/mailman/listinfo/vbox-dev                                          </body>
</html>