Java-Gaming.org Hi !
Featured games (81)
games approved by the League of Dukes
Games in Showcase (513)
Games in Android Showcase (119)
games submitted by our members
Games in WIP (576)
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 794 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 HelloXith3D.java

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 java.security.SecureClassLoader.defineClass(Unknown Source)
       at java.net.URLClassLoader.defineClass(Unknown Source)
       at java.net.URLClassLoader.access$100(Unknown Source)
       at java.net.URLClassLoader$1.run(Unknown Source)
       at java.security.AccessController.doPrivileged(Native Method)
       at java.net.URLClassLoader.findClass(Unknown 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 Duke


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 HelloXith3D.java

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:

Quote

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

If you want to compile a test program - try the HelloXith3D example. Copy the HelloXith3D.java 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 HelloXith3D.java!

http://xith.org/tutes/GettingStarted/examples/HelloXith3D/HelloXith3D.java

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

Cheers,

Will.

Offline fook

Junior Newbie




Java games rock!


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

Ahh.

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

Cheers,

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.

Longarmx (38 views)
2014-10-17 03:59:02

Norakomi (28 views)
2014-10-16 15:22:06

Norakomi (24 views)
2014-10-16 15:20:20

lcass (28 views)
2014-10-15 16:18:58

TehJavaDev (53 views)
2014-10-14 00:39:48

TehJavaDev (54 views)
2014-10-14 00:35:47

TehJavaDev (42 views)
2014-10-14 00:32:37

BurntPizza (64 views)
2014-10-11 23:24:42

BurntPizza (36 views)
2014-10-11 23:10:45

BurntPizza (78 views)
2014-10-11 22:30:10
Understanding relations between setOrigin, setScale and setPosition in libGdx
by mbabuskov
2014-10-09 22:35:00

Definite guide to supporting multiple device resolutions on Android (2014)
by mbabuskov
2014-10-02 22:36:02

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