I'm using eclipse, i put the WTKX file under the "bin" directory and it works!
Thank João Neves very much! 2010/12/22 João Neves <[email protected]> > Hi Le, > > Make sure you have your WTKX file on the application's classpath and > reference it only by the file name (hello.wtkx). > > If you're using an IDE like Eclipse, all you have to do is put the > WTKX file on the same package as your .java source files and it will > work. > > Cheers! > > -- > João Neves > > > > On Wed, Dec 22, 2010 at 06:35, Le Zhou(周乐) <[email protected]> wrote: > > Hi everyone, > > I'm a newbie of pivot, when i tried the "Hello, WTKX!" problem in > tutorial, > > I run into "Could not find resource" problem. > > I just replacd the "hello.wtkx" in source code of the "Hello, WTKX!" > program > > in tutorial with "/home/lezhou/hello.wtkx", which is the absolute path of > > the WTKX source file on my computer and the the problem occured. I'm so > > confused.... > > Detailed error message are shown below: > > java.lang.IllegalArgumentException: Could not find resource > > "/home/lezhou/hello.wtkx" for class "hellowtkx.HelloWTKX". > > Anyone can help me? Thanks a lot! > > > > > > >
