Welcome, Guest. Please login or register.

Login with username, password and session length

 
Advanced search

11991 Posts in 1587 Topics- by 3508 Members - Latest Member: NevilleKemp

26. May 2012, 05:08:16 pm
Xith3D CommunityGeneral CategoryGeneral Discussion (Moderators: Marvin Fröhlich, 'n ddrylliog)Specifying resource in another EasyEclipse project
Pages: [1]
Print
Author Topic: Specifying resource in another EasyEclipse project  (Read 503 times)
mikelizzi
Just dropped in

Offline Offline

Posts: 8


View Profile Email
« on: 06. April 2011, 04:45:46 pm »

I hope this question is not out of place in this forum.

I am just learning xith3d using EasyEclipse. 
Going through the tutorial “Xith3d in a Nutshell”. 
There is some code for specifying and loading textures.

ResourceLocator resLoc = ResourceLocator.create( "test-resources/" );
resLoc.createAndAddTSL( "testTexture" );

I verified the folder "test-resources/" is in another project that is on the build path for this project.
But, I get the IllegalArgumentException: Resource not found "test-resources/"

Anyone know how to specify a resource that is in another EasyEclipse project?
Logged
Marvin Fröhlich
Xith Lord
Administrator
Guru
*****
Offline Offline

Posts: 4381


May the 4th, be with you...


View Profile
« Reply #1 on: 07. April 2011, 02:11:47 pm »

I really don't know anything about EasyEclipse. But I guess, it is just a compilation of an eclipse install with some plugins. So my assumptions should apply to it as well.

The resource ("test-resources/" in this case) must be available in the class path by the given name with ha forced trailing slash. That's all.

So you would need to set up your eclipse project to include all the necessary classes, jars and folders in the class path when launching the project.
Logged
mikelizzi
Just dropped in

Offline Offline

Posts: 8


View Profile Email
« Reply #2 on: 10. April 2011, 07:27:34 pm »

   Thanks for your reply.  I believe I've cone everything you suggested and the folks at the EasyEclipse forum too.

   Nothing.

   I know I'm doing something wrong but it is not a priority since I can put the resources in the same package as the java file and it always works.

   Meanwhile, I posted andother question about runtime updating of geometry.
Logged
Pages: [1]
Print
Jump to:  

Theme orange-lt created by panic