[vbox-dev] Java Samples in VirtualBoxSDK-4.0.6-71344

Arindam Choudhury arindam at live.com
Thu May 12 08:20:39 GMT 2011



Hi,

Please help me. I really like to learn programming in VirtualBox Main API.

-Arindam 
From: arindam at live.com
To: nikolay.igotti at oracle.com; vbox-dev at virtualbox.org
Date: Wed, 11 May 2011 19:50:57 +0530
Subject: Re: [vbox-dev] Java Samples in VirtualBoxSDK-4.0.6-71344









Hi,

[arindam at aopcach java]$ java -cp /home/arindam/Downloads/sdk/bindings/webservice/java/jax-ws/vboxjws.jar:. TestVBox
[arindam at aopcach java]$

No output ... nothing. :(

in the [arindam at aopcach ~]$ vboxwebsrv -v terminal, I have:

00:04:10.173 Watchdog Watchdog: sleeping 5 seconds
00:04:15.171 main     Pumping COM event queue
00:04:15.173 Watchdog Watchdog: checking 0 sessions

Thanks,
-Arindam


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

_______________________________________________
vbox-dev mailing list
vbox-dev at virtualbox.org
http://vbox.innotek.de/mailman/listinfo/vbox-dev 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.virtualbox.org/pipermail/vbox-dev/attachments/20110512/bcdc949b/attachment.html>


More information about the vbox-dev mailing list