Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (499)
Games in Android Showcase (118)
games submitted by our members
Games in WIP (568)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  texture demo running problem  (Read 1870 times)
0 Members and 1 Guest are viewing this topic.
Offline dot

Senior Newbie




Java games rock!


« Posted 2003-11-12 19:25:23 »

I follow the Xith3D tuturial to install Xith3D and Jogl.   When I run the TextureDemo, I got the following error:

java.lang.NoClassDefFoundError: com/xith/utility/logs/Log

     at com.xith3d.loaders.texture.TextureLoader.findImageFile(TextureLoader.java)

     at com.xith3d.loaders.texture.TextureLoader.resolvePath(TextureLoader.java)

     at com.xith3d.loaders.texture.TextureLoader.loadImageFast(TextureLoader.java)

     at com.xith3d.loaders.texture.TextureLoader.loadTexture(TextureLoader.java)

     at com.xith3d.loaders.texture.TextureLoader.loadTexture(TextureLoader.java)

     at com.xith3d.loaders.texture.TextureLoader.getMinMapTexture(TextureLoader.java)

     at org.xith3d.gsg.TextureDemo.<init>(TextureDemo.java:46)

     at org.xith3d.gsg.TextureDemo.main(TextureDemo.java:28)

Exception in thread "main"


May I set up some libraries wrong?  Any suggestions?

Thanks.

--Dot
Offline William Denniss

JGO Coder


Projects: 2


Fire at will


« Reply #1 - Posted 2003-11-12 22:13:55 »

"com/xith/utility/logs/Log "

The com.xith.utility package was removed (and integrated with the main library) a while back.

Are you sure you are running the latest (ie. November) version?
http://www.xith.org/download/builds/2003-11-13_cvs/

Or download this and put it in your class path - https://xith3d.dev.java.net/source/browse/xith3d/third-party/xith/

But I suggest you get the new version.

Will.

Offline dot

Senior Newbie




Java games rock!


« Reply #2 - Posted 2003-11-13 11:44:56 »

Will,

Thanks for your suggestions.    I download the lateset version.   Unfortunately, I got a new error with the TextureDemo.



java.lang.Error: Cannot load image glass.png

     at com.xith3d.loaders.texture.TextureLoader.loadImageFast(TextureLoader.java:293)

     at com.xith3d.loaders.texture.TextureLoader.loadTexture(TextureLoader.java:313)

     at com.xith3d.loaders.texture.TextureLoader.loadTexture(TextureLoader.java:348)

     at com.xith3d.loaders.texture.TextureLoader.getMinMapTexture(TextureLoader.java:636)

     at org.xith3d.gsg.TextureDemo.<init>(TextureDemo.java:46)

     at org.xith3d.gsg.TextureDemo.main(TextureDemo.java:28)

Exception in thread "main"

What's the hack?

--Dot
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Jens

Senior Member




Java for games!


« Reply #3 - Posted 2003-11-13 12:03:37 »

How do you run the TextureDemo? You have to make sure the images are in your current path.

Xith3D Getting Started Guide (PDF,HTML,Source)
Offline dot

Senior Newbie




Java games rock!


« Reply #4 - Posted 2003-11-13 12:54:17 »


100% sure for this.      I doubt there might be other reason to make it wrong.
Offline Jens

Senior Member




Java for games!


« Reply #5 - Posted 2003-11-13 17:14:50 »

Assuming you have glass.png, xith3d.jar and TextureDemo.jar in your current directory and use Linux, you can run:
1  
java -cp .:xith3d.jar:TextureDemo.jar org.xith3d.gsg.TextureDemo


If you have xith3d.jar in /jre/lib/ext (this causes problems with webstart apps):
1  
java -jar TextureDemo.jar

Xith3D Getting Started Guide (PDF,HTML,Source)
Offline William Denniss

JGO Coder


Projects: 2


Fire at will


« Reply #6 - Posted 2003-11-13 23:22:11 »

In the /gsg/examples/Textures/ directory, I run:

java -cp /path.to/xith3d/xith3d.jar:TextureDemo.jar org.xith3d.gsg.TextureDemo

Previously we assumed xith3d.jar in the lib/ext but now we must assume the reverse.

A Class-Path attribute in the manifest would be good but it's hard since we arn't distributing xith3d.jar ourselves (that would become a pain updating wise).

Will.

Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

Pippogeek (40 views)
2014-09-24 16:13:29

Pippogeek (31 views)
2014-09-24 16:12:22

Pippogeek (21 views)
2014-09-24 16:12:06

Grunnt (47 views)
2014-09-23 14:38:19

radar3301 (29 views)
2014-09-21 23:33:17

BurntPizza (65 views)
2014-09-21 02:42:18

BurntPizza (37 views)
2014-09-21 01:30:30

moogie (43 views)
2014-09-21 00:26:15

UprightPath (53 views)
2014-09-20 20:14:06

BurntPizza (55 views)
2014-09-19 03:14:18
List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06

List of Learning Resources
by SilverTiger
2014-07-31 11:54:12

HotSpot Options
by dleskov
2014-07-08 01:59:08
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!