Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (480)
Games in Android Showcase (110)
games submitted by our members
Games in WIP (546)
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  
  Can't load Xith3D - Help!!  (Read 1911 times)
0 Members and 1 Guest are viewing this topic.
Offline arkdm

Junior Member




Go Pooh on yourself


« Posted 2006-05-18 17:04:28 »

I'm new to Xith3D (and java for that matter), and I'm having some trouble getting the HelloXith3D.java file to compile. I followed all the instructions in the Getting started guide, here's the error I get:

1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
16  
C:\xith3d\xith3d-0.7.1\xith3d>javac -classpath C:\xith3d\xith3d-0.7.1\xith3d\lib
s\xith3d.jar;C:\xith3d\third-party\third-party\vecmath\vecmath.jar;C:\Program%20
Files\Java\jre1.5.0_06\bin\.;C:\Program%20Files\Java\jre1.5.0_06\lib\ext\. Hello
Xith3D.java
HelloXith3D.java:11: package com.xith3d.render.jogl does not exist
import com.xith3d.render.jogl.*;
^
HelloXith3D.java:36: cannot access com.xith3d.scenegraph.VirtualUniverse
bad class file: C:\xith3d\xith3d-0.7.1\xith3d\libs\xith3d.jar(com/xith3d/scenegr
aph/VirtualUniverse.class)
class file has wrong version 49.0, should be 48.0
Please remove or make sure it appears in the correct subdirectory of the classpa
th.
                VirtualUniverse universe = new VirtualUniverse();
                ^
2 errors


Any ideas? Thanks!
Offline arne

Senior Member




money is the worst drug- we should not let it rule


« Reply #1 - Posted 2006-05-18 18:06:57 »

ohh good that you've pointed that out, we changed the demo testcases, but we seem to have forgotten to also update the getting started guide.
If you want to use jogl to render your scene, you'll now have to write
1  
import com.xith3d.render.jsr231

instead of
1  
import com.xith3d.render.jogl


So.. anybody going to change the getting started guide?

:: JOODE :: Xith3d :: OdeJava ::
Offline arkdm

Junior Member




Go Pooh on yourself


« Reply #2 - Posted 2006-05-19 02:59:02 »

Thanks for your help arne, but I'm still having the problem. I changed the line to com.xith3d.render.jsr231, it still unfortunately doesn't work. I'm getting the same error. Any ideas?
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline c_lilian

Senior Member


Projects: 1


Java games will probably rock someday...


« Reply #3 - Posted 2006-05-19 06:48:25 »

new xith jar files are compiled with java 1.5 (class version 49)

and you're trying to run it with java 1.4 (class version 48)

You have to update your sdk...

Lilian Smiley

Offline Amos Wenger

Senior Member




Everything's possible, but not everything's fun...


« Reply #4 - Posted 2006-05-19 14:17:03 »

ohh good that you've pointed that out, we changed the demo testcases, but we seem to have forgotten to also update the getting started guide.
If you want to use jogl to render your scene, you'll now have to write
1  
import com.xith3d.render.jsr231

instead of
1  
import com.xith3d.render.jogl


So.. anybody going to change the getting started guide?
That's not a small work. In fact, the GSG is full of errors (many things have changed since it was first written) and maybe some chapters may require a rewrite. I'm actually a bit busy with my project (as always.. ^^) but If there's a real interest I could take a look.

"Once you start working on something, don't be afraid of failure and don't abandon it. People who work sincerely are the happiest"
Offline arkdm

Junior Member




Go Pooh on yourself


« Reply #5 - Posted 2006-05-19 15:17:29 »

Ok - I updated my SDK, now I'm getting that dandy NoClassDefFound error when I try to run it. I tried doing everything the GSG said ot fix it, no luck Sad.

Here's what I'm using:

1  
2  
3  
4  
5  
6  
C:\xith3d\xith3d-0.7.1\xith3d>javac -classpath libs/xith3d.jar;C:\xith3d\third-p
arty\third-party\vecmath\vecmath.jar HelloXith3D.java

C:\xith3d\xith3d-0.7.1\xith3d>java -cp libs/xith3d.jar;C:\xith3d\third-party\thi
rd-party\vecmath\vecmath.jar HelloXith3D
Exception in thread "main" java.lang.NoClassDefFoundError: HelloXith3D

Offline kevglass

JGO Kernel


Medals: 152
Projects: 23
Exp: 18 years


Coder, Trainee Pixel Artist, Game Reviewer


« Reply #6 - Posted 2006-05-19 22:57:35 »

Might want to try putting a "." in your classpath:

1  
2  
3  
C:\xith3d\xith3d-0.7.1\xith3d>java -cp .;libs/xith3d.jar;C:\xith3d\third-party\thi
rd-party\vecmath\vecmath.jar HelloXith3D
Exception in thread "main" java.lang.NoClassDefFoundError: HelloXith3D


Kev

Offline arkdm

Junior Member




Go Pooh on yourself


« Reply #7 - Posted 2006-05-21 19:34:42 »

Ok - added the period. Still having issues. I even switched my version of xith to the 8/31/2005 version that I was ableto get working before. Here's what I'm getting:

C:\xith3d\xith3d>java -cp libs/xith3d.jar;.;C:\xith3d\third-party\third-party\ve
cmath\vecmath.jar;C:\xith3d\third-party\third-party\jogl\jogl.jar com.xith3d.tes
t.CubeTest
Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/opengl/util/B
ufferUtil
        at com.xith3d.render.jsr231.ShapeAtomPeer.<init>(ShapeAtomPeer.java:660)

        at com.xith3d.render.jsr231.RenderPeerImpl.<init>(RenderPeerImpl.java:64
)
        at com.xith3d.test.CubeTest.<init>(CubeTest.java:139)
        at com.xith3d.test.CubeTest.main(CubeTest.java:212)

Thanks so much for all your help! I hope I'll be able to get this working...
Offline arne

Senior Member




money is the worst drug- we should not let it rule


« Reply #8 - Posted 2006-05-21 20:10:15 »

you using the latest jogl version? - I don't know if the one in the xith3d thirdparty package has been updated. You'll better get your jogl from jogl.dev.java.net. And don't try to run it with the old Xith version - the jsr renderer is new, so there might be other problems occuring there.

:: JOODE :: Xith3d :: OdeJava ::
Offline arkdm

Junior Member




Go Pooh on yourself


« Reply #9 - Posted 2006-05-22 01:40:48 »

Fixed! You're a genius Arne! I can't thank you all enough!
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Amos Wenger

Senior Member




Everything's possible, but not everything's fun...


« Reply #10 - Posted 2006-05-22 16:34:18 »

I don't know if the one in the xith3d thirdparty package has been updated.
I know : I updated it. From Xith3D 0.7.1 (which was one of the reason why it has been released).

"Once you start working on something, don't be afraid of failure and don't abandon it. People who work sincerely are the happiest"
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.

atombrot (20 views)
2014-08-19 09:29:53

Tekkerue (21 views)
2014-08-16 06:45:27

Tekkerue (21 views)
2014-08-16 06:22:17

Tekkerue (12 views)
2014-08-16 06:20:21

Tekkerue (19 views)
2014-08-16 06:12:11

Rayexar (55 views)
2014-08-11 02:49:23

BurntPizza (37 views)
2014-08-09 21:09:32

BurntPizza (28 views)
2014-08-08 02:01:56

Norakomi (35 views)
2014-08-06 19:49:38

BurntPizza (65 views)
2014-08-03 02:57:17
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!