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

Nikolay Igotti nikolay.igotti at oracle.com
Wed May 11 13:02:10 GMT 2011


 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
> > > > >
> > > >
> >





More information about the vbox-dev mailing list