Hi !
Featured games (84)
games approved by the League of Dukes
Games in Showcase (601)
Games in Android Showcase (171)
games submitted by our members
Games in WIP (649)
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  
  beginner woes  (Read 954 times)
0 Members and 1 Guest are viewing this topic.
Offline fook

Junior Newbie

Java games rock!

« Posted 2004-05-25 04:19:24 »

Hi there,

I'm having trouble running the HelloXith3D example.

The example compiled fine with:

D:\xith>javac -classpath libs/xith3d.jar

but I get this error when I try to run it:

D:\xith>java HelloXith3D
Exception in thread "main" java.lang.NoClassDefFoundError: HelloXith3D (wrong name: org/xith3d/gsg/HelloXith3D)
       at java.lang.ClassLoader.defineClass0(Native Method)
       at java.lang.ClassLoader.defineClass(Unknown Source)
       at Source)
       at Source)
       at$100(Unknown Source)
       at$ Source)
       at Method)
       at Source)
       at java.lang.ClassLoader.loadClass(Unknown Source)
       at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
       at java.lang.ClassLoader.loadClass(Unknown Source)
       at java.lang.ClassLoader.loadClassInternal(Unknown Source)

Having put the .jar's and the .dll's in the folders specified in the installation guide, for both of the java environments on this pc, I'm at a loss as to what I can do to fix it.

Any ideas?

Thanks in advance Smiley

ps. Sorry if this question has been asked before.

pps. I've ran a few of the bundled test demos (CubeTest, Xith3DSphereMotionLightingTest) with no problems. Although I got null pointer exceptions for Xith3DAseTransformGroupTreeTest and Xith3DAseGroupTest - I don't know if these errors are related to my main problem.
Offline SpuTTer

Senior Devvie

Medals: 1
Exp: 14 years

Lazy Middle Class Intellectual

« Reply #1 - Posted 2004-05-25 04:44:43 »

This is probably good question for the newless clubies category..

you need to run

java org.xith3d.gsg.HelloXith3D

HelloXith3D is in the org.xith3d.gsg package, so you must specify the package name, that's why it's saying you have the wrong name.

Sacramento Volleyball
"Whitty phrase goes here."
Offline fook

Junior Newbie

Java games rock!

« Reply #2 - Posted 2004-05-25 21:42:54 »

I probably should of mentioned that I've tried that already.

Anyways I was just following the instructions on the installation guide which stated that you should compile with: javac -classpath libs/xith3d.jar

and run with: java HelloXith3D

so... yeah thx but thats not the solution Smiley
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline William Denniss

JGO Coder

Projects: 2

Fire at will

« Reply #3 - Posted 2004-05-25 22:34:19 »

[edit: corrected]

The tutorial reads:


You can test your install by running this command in your Xith Directory: java -cp libs/xith3d.jar com.xith3d.test.CubeTest

Does that work?

It also talks about HelloXith3D when explaining how to compile your first program:

If you want to compile a test program - try the HelloXith3D example. Copy the file into your Xith Directory. Then - since all of the required libraries are installed you can simply run javac -classpath libs/xith3d.jar HelloXith3D?.java to compile it and then java HelloXith3D to run it.

You need to download!

Now the second part is slightly incorrect - as "HelloXith3D" is in the org.xith3d.gsg package.  I'll fix it soon.



Offline fook

Junior Newbie

Java games rock!

« Reply #4 - Posted 2004-05-25 22:38:18 »


Great Smiley

Thanks Will.
Offline William Denniss

JGO Coder

Projects: 2

Fire at will

« Reply #5 - Posted 2004-05-25 23:05:35 »

I've fixed up and organised the tute.

The dead link was fixed - and now the correct commands and examples are given.

Please tell me if there are still problems.

Note: be sure to refresh the page Smiley



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

Jesse (11 views)
2015-07-29 04:35:27

Riven (33 views)
2015-07-27 16:38:00

Riven (17 views)
2015-07-27 15:35:20

Riven (20 views)
2015-07-27 12:26:13

Riven (10 views)
2015-07-27 12:23:39

BurntPizza (29 views)
2015-07-25 00:14:37

BurntPizza (40 views)
2015-07-24 22:06:39

BurntPizza (24 views)
2015-07-24 06:06:53

NoxInc (27 views)
2015-07-22 22:16:53

NoxInc (18 views)
2015-07-22 22:13:39
List of Learning Resources
by gouessej
2015-07-09 11:29:36

How Do I Expand My Game?
by bashfrog
2015-06-14 11:34:43

List of Learning Resources
by PocketCrafter7
2015-05-31 05:37:30

Intersection Methods
by Roquen
2015-05-29 08:19:33

List of Learning Resources
by SilverTiger
2015-05-05 10:20:32

How to: JGO Wiki
by Mac70
2015-02-17 20:56:16

2D Dynamic Lighting
by ThePixelPony
2015-01-01 20:25:42

How do I start Java Game Development?
by gouessej
2014-12-27 19:41:21 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‑
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!