Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (495)
Games in Android Showcase (114)
games submitted by our members
Games in WIP (563)
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  
  trouble running the demos  (Read 1894 times)
0 Members and 1 Guest are viewing this topic.
Offline silverklyph

Senior Newbie




Java games rock!


« Posted 2003-11-06 17:14:05 »

When I try to run the demos for Xith3D I get this error:

Exception in thread "main" java.lang.NoClassDefFoundError: net/java/games/jogl/GLEventListener
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)
at com.xith3d.render.jogl.RenderPeerImpl.makeCanvas(RenderPeerImpl.java)

at com.xith3d.test.Xith3DTerrainTest.init(Xith3DTerrainTest.java)
at com.xith3d.test.Xith3DTerrainTest.main(Xith3DTerrainTest.java)


I'm using the Sun compiler(SDK v1.4.2) on a Windows ME compooter. If I do get the programs to run, (usually by using the cmdline c:\j2sdk1.4.2\bin\java com.xith3d...etc...
a box pops up (with the title bar saying "Xith3D"), but doesn't display anything. I'm guessing that it's because I need to do something else with the JOGL libraries and such, but can anyone confirm this? I didn't make any additions to 1.4.2 until now, and I only followed the instructions in the Xith3D installation tute.
Offline Jens

Senior Member




Java for games!


« Reply #1 - Posted 2003-11-06 17:50:57 »

Are you sure you placed all the necessary libraries in the appropriate directories? It looks like Jogl can't be found.

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

JGO Coder


Projects: 2


Fire at will


« Reply #2 - Posted 2003-11-06 20:24:32 »

Can you run any of the JWS demo's?

That will give you a good indication of whether your OpenGL is setup to handle Xith3D. (make sure xith3d.jar isn't in your jre/lib/ext).

I assume you have installed using the http://xith.org/installing.php guide?

I agree it sounds like your JOGL native library (jogl.jar) isn't in your classpath.

Will.

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

Senior Newbie




Java games rock!


« Reply #3 - Posted 2003-11-07 09:24:25 »

Ok, I was an idiot and didn't fix the runtest.bat file to comply with the locations of the files after i downloaded them.  Now I get this error:

Exception in thread "main" java.lang.NoClassDefFoundError: com/xith3d/scenegraph/Node

 Err... I sorta had a clue as to what was wrong w/ the last message, what the heck's up with this one?
Offline iiyama

Junior Newbie





« Reply #4 - Posted 2003-11-07 09:39:52 »

Did you set the classpath to the appropriate folder?
Offline silverklyph

Senior Newbie




Java games rock!


« Reply #5 - Posted 2003-11-07 10:52:46 »

Wow, that was dumb.  It a wonder what fixing your classpath variable will do.

 Aight, so now I get the box to pop up, but nothing's displayed... aren't I a pain in the ass?  Anytime I run a file, the window opens and has the title "Xith3D" but only is filled with a dark gray background...  I think this is more than a classpath variable... any ideas?
Offline William Denniss

JGO Coder


Projects: 2


Fire at will


« Reply #6 - Posted 2003-11-07 11:07:47 »

update your graphics card drivers (you need OpenGL1.2+)

Post all output in these forums so that we can help.

Will.

Offline silverklyph

Senior Newbie




Java games rock!


« Reply #7 - Posted 2003-11-10 20:30:50 »

How would I got about checking my graphics card?  I'm a software guy, not a hardware guy.
Offline William Denniss

JGO Coder


Projects: 2


Fire at will


« Reply #8 - Posted 2003-11-10 21:17:11 »

When I run any Xith3D program I get this output:

1  
2  
3  
4  
5  
6  
[divzero@localhost xith3d]$ java -cp libs/xith3d.jar com.xith3d.test.CubeTest
starting frame speed test
Init GL is net.java.games.jogl.impl.x11.X11GLImpl
OpenGL Renderer = Mesa X11
OpenGL Version = 1.4 Mesa 5.0.1
OpenGL Vendor = Brian Paul


That tells me I am running OpenGL 1.4.  OpenGL 1.2 is the minimum for Xith3D.

Will.

Offline William Denniss

JGO Coder


Projects: 2


Fire at will


« Reply #9 - Posted 2003-11-10 21:19:04 »

What brand video card are you using?

Go to their web site and download the latest software windows drivers for your card

Will.

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

Senior Newbie




Java games rock!


« Reply #10 - Posted 2003-11-21 22:30:37 »

Sorry about the delay, it took a while to figure out what was going wrong here and why and then I had a history essay, so I didn't get on much.  Here is the output!

C:\Xith3D>java -cp libs/xith3d.jar com.xith3d.test.CubeTest
starting frame speed test
Init GL is net.java.games.jogl.impl.windows.WindowsGLImpl
OpenGL Renderer = GeForce2 MX/AGP/SSE2
OpenGL Version = 1.2.2
OpenGL Vendor = NVIDIA Corporation
OpenGL Extensions = GL_ARB_imaging GL_ARB_multitexture GL_ARB_texture_compressio
n GL_ARB_texture_cube_map GL_ARB_texture_env_add GL_ARB_texture_env_combine GL_A
RB_texture_env_dot3 GL_ARB_transpose_matrix GL_S3_s3tc GL_EXT_abgr GL_EXT_bgra G
L_EXT_blend_color GL_EXT_blend_minmax GL_EXT_blend_subtract GL_EXT_compiled_vert
ex_array GL_EXT_draw_range_elements GL_EXT_fog_coord GL_EXT_packed_pixels GL_EXT
_paletted_texture GL_EXT_point_parameters GL_EXT_rescale_normal GL_EXT_secondary
_color GL_EXT_separate_specular_color GL_EXT_shared_texture_palette GL_EXT_stenc
il_wrap GL_EXT_texture_compression_s3tc GL_EXT_texture_edge_clamp GL_EXT_texture
_env_add GL_EXT_texture_env_combine GL_EXT_texture_env_dot3 GL_EXT_texture_cube_
map GL_EXT_texture_filter_anisotropic GL_EXT_texture_lod GL_EXT_texture_lod_bias
GL_EXT_texture_object GL_EXT_vertex_array GL_EXT_vertex_weighting GL_IBM_textur
e_mirrored_repeat GL_KTX_buffer_region GL_NV_blend_square GL_NV_evaluators GL_NV
_fence GL_NV_fog_distance GL_NV_light_max_exponent GL_NV_packed_depth_stencil GL
_NV_register_combiners GL_NV_texgen_emboss GL_NV_texgen_reflection GL_NV_texture
_env_combine4 GL_NV_texture_rectangle GL_NV_vertex_array_range GL_NV_vertex_arra
y_range2 GL_NV_vertex_program GL_SGIS_generate_mipmap GL_SGIS_multitexture GL_SG
IS_texture_lod GL_WIN_swap_hint WGL_EXT_swap_control


All I get is a blank window grrr...
Offline Jens

Senior Member




Java for games!


« Reply #11 - Posted 2003-11-22 06:47:47 »

Please download and install the current NVidia drivers.

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

Senior Newbie




Java games rock!


« Reply #12 - Posted 2003-11-22 09:07:44 »

Thanks, that fixed it.  The demos look really nice now!
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.

Dwinin (28 views)
2014-09-12 09:08:26

Norakomi (57 views)
2014-09-10 13:57:51

TehJavaDev (73 views)
2014-09-10 06:39:09

Tekkerue (37 views)
2014-09-09 02:24:56

mitcheeb (57 views)
2014-09-08 06:06:29

BurntPizza (43 views)
2014-09-07 01:13:42

Longarmx (27 views)
2014-09-07 01:12:14

Longarmx (34 views)
2014-09-07 01:11:22

Longarmx (34 views)
2014-09-07 01:10:19

mitcheeb (40 views)
2014-09-04 23:08:59
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!