Welcome, Guest. Please login or register.

Login with username, password and session length

 
Advanced search

11991 Posts in 1587 Topics- by 3508 Members - Latest Member: PienueDut

26. May 2012, 08:33:09 am
Xith3D CommunityGeneral CategorySupport (Moderator: Marvin Fröhlich)trying with Java 1.6
Pages: [1]
Print
Author Topic: trying with Java 1.6  (Read 1399 times)
TT
Just dropped in

Offline Offline

Posts: 3


View Profile
« on: 29. January 2007, 09:24:40 am »

Hi,

I am a first time user, trying to install and run the test.

I am using java 1.6.0-b105 with xith3D "latest cooker 2006-12-12"
while trying to run:
java org.xith3d.test.Xith3DTestLauncher

I got:
Exception in thread "main" java.lang.IllegalArgumentException: defaultCloseOpera
tion must be one of: DO_NOTHING_ON_CLOSE, HIDE_ON_CLOSE, or DISPOSE_ON_CLOSE
        at javax.swing.JDialog.setDefaultCloseOperation(Unknown Source)
        at org.xith3d.utility.canvas.DisplayOptions.<init>(DisplayOptions.java:2
89)
        at org.xith3d.test.Xith3DTestLauncher.<init>(Xith3DTestLauncher.java:420
)
        at org.xith3d.test.Xith3DTestLauncher.main(Xith3DTestLauncher.java:581)

After checking the source in xith-tk-source.jar\org\xith3d\utility\canvas\DisplayOption.java
line 289 -- this.setDefaultCloseOperation( JFrame.EXIT_ON_CLOSE );

It seems that java doesn't support EXIT_ON_CLOSE for JDialog
accorting to http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6403861


Since Java 1.6 has advanced support on JOGL (http://weblogs.java.net/blog/campbell/archive/2006/10/easy_2d3d_mixin.html), I 'd really appreciate if I can download a Java1.6-runnable xith3d.

And because my machine is old, I m not sure if it can run xith3D at all, (though very well with Chris Campbell's demo on his blog ), would anyone try to use java 1.6 and release a latest version of xith3D?

Thanks,
TT 
Logged
Marvin Fröhlich
Xith Lord
Administrator
Guru
*****
Offline Offline

Posts: 4381


May the 4th, be with you...


View Profile
« Reply #1 on: 29. January 2007, 11:32:05 am »

Hi, TT, welcome to Xith3D Smiley.

The latest released beta1 of xith3d is a bit newer than the latest cooker. I don't know, if this bug is already fixed in this version. It is fixed in the current SVN trunk. So please try the beta1 of Xith3D or checkout the current SVN trunk.

I will release the new 0.9.0-beta2 of xith3d the next days (maybe even today). It will also include the fix for the above bug.

Marvin
Logged
TT
Just dropped in

Offline Offline

Posts: 3


View Profile
« Reply #2 on: 30. January 2007, 09:25:00 am »

Thanks, Marvin.

I tried the version 0.9.0-beta1.
Yes, the EXIT_ON_CLOSE part is fixed.

I ran it with
java org.xith3d.test.Xith3DTestLauncher

Then
Exception in thread "main" java.lang.NullPointerException
        at javax.swing.ImageIcon.<init>(Unknown Source)
        at org.xith3d.test.Xith3DTestLauncher.createLogo(Xith3DTestLauncher.java
:621)
        at org.xith3d.utility.canvas.DisplayOptions.<init>(DisplayOptions.java:3
72)

The code for the line 372
JComponent logo = createLogo( 190 );
        if (logo != null)
        {
            west2.add( logo, BorderLayout.SOUTH );
        }

Firstly, I am not sure if it's ok to run "Xith3DTestLauncher", I just guess it's runnable to see some results to show my environment setting is correct.

Secondly, I am not sure the null pointer exception part is because of the stricter policy of java 1.6 or ?

And I suggest to put the releasing date of the beta1(and future for the beta2) on the download page so that we can differentiate which is newer from the latest cooker and the beta.

I don't have SVN client at hand, I think I 'll wait for the beta2 then try it again.
Thanks again. May the 4th be with you 2!

TT
Logged
Marvin Fröhlich
Xith Lord
Administrator
Guru
*****
Offline Offline

Posts: 4381


May the 4th, be with you...


View Profile
« Reply #3 on: 30. January 2007, 09:59:48 am »

I ran it with
java org.xith3d.test.Xith3DTestLauncher

Then
Exception in thread "main" java.lang.NullPointerException
        at javax.swing.ImageIcon.<init>(Unknown Source)
        at org.xith3d.test.Xith3DTestLauncher.createLogo(Xith3DTestLauncher.java
:621)
        at org.xith3d.utility.canvas.DisplayOptions.<init>(DisplayOptions.java:3
72)

The code for the line 372
JComponent logo = createLogo( 190 );
        if (logo != null)
        {
            west2.add( logo, BorderLayout.SOUTH );
        }

Firstly, I am not sure if it's ok to run "Xith3DTestLauncher", I just guess it's runnable to see some results to show my environment setting is correct.

Well, running Xith3DTestLauncher is exactly as it is meant to be. As you may have seen, there are teststarter.bat/teststarter.sh in the beta1 distribution. Please run one of them. I suppose, you just forgot to include the media.jar into your classpath. The classpath of the teststarter scripts is complete and correct.

Secondly, I am not sure the null pointer exception part is because of the stricter policy of java 1.6 or ?

I am using Java 6, too. And the Xith3DTestLauncher is working fine.

And I suggest to put the releasing date of the beta1(and future for the beta2) on the download page so that we can differentiate which is newer from the latest cooker and the beta.

Uoops. Forgot that. I thought they were there. I will change that. Thanks.

Marvin
Logged
TT
Just dropped in

Offline Offline

Posts: 3


View Profile
« Reply #4 on: 31. January 2007, 10:54:48 am »

Hi,

Yes, my fault. I use the "latest cooker" setting to run beta1. The paths are different.
With all this mess I did to myself, I am a little confused.
Now
I put all the jar filenames(except the demo and source) into "set class", and all the dll path into "set path" in a batch file to set the environment. Then run
java org.xith3d.test.Xith3DTestLauncher
and got null pointer exception
D:\xith3d\libs>java org.xith3d.test.Xith3DTestLauncher
Exception in thread "main" java.lang.NullPointerException
        at org.xith3d.test.Xith3DTestLauncher.getClassNamesFromFolder(Xith3DTest
Launcher.java:345)
        at org.xith3d.test.Xith3DTestLauncher.getClassNamesFromFolder(Xith3DTest
Launcher.java:376)
        at org.xith3d.test.Xith3DTestLauncher.getClassNames(Xith3DTestLauncher.j
ava:440)
        at org.xith3d.test.Xith3DTestLauncher.createTestSelector(Xith3DTestLaunc
her.java:555)
        at org.xith3d.test.Xith3DTestLauncher.createEastPanel(Xith3DTestLauncher
.java:589)
        at org.xith3d.utility.canvas.DisplayOptions.<init>(DisplayOptions.java:3
80)
        at org.xith3d.test.Xith3DTestLauncher.<init>(Xith3DTestLauncher.java:642
)
        at org.xith3d.test.Xith3DTestLauncher.main(Xith3DTestLauncher.java:776)


I was only trying the xith-test.jar, then as I was told to check the teststarter.bat in xith-demo.jar, which I had thought it's unrelated. Then I ran it, I happily found a panel shown. When I selected a case in the panel, an exception raised.

javax.media.opengl.GLException: Method "glClientActiveTexture" not available
        at com.sun.opengl.impl.GLImpl.glClientActiveTexture(GLImpl.java:804)
        at org.xith3d.render.jsr231.ShapeAtomPeer.clutchTextureUnit(ShapeAtomPee
r.java:721)
.......


After googling it for a while, I had to admit that my machine may be too OLD for xith3d --

IBM Thinkpad T21 with S3 Savage IX 1014

So, I have to stop digging until I have a new box.
Just hope my experience can help any other newbies,
and hope there will be updated documentation when the newer version comes.

Thanks Marvin for all the replies. Smiley
TT

 
Logged
kukanani
Fierce Warrior
****
Offline Offline

Posts: 504


My game is coming along fairly smoothly...


View Profile WWW
« Reply #5 on: 31. January 2007, 02:42:46 pm »

Mybe you had JOGL installed incorrectly?  Just a thought.
Logged

xith.setCoolnessLevel(10);
jMe.setCoolnessLevel(0);
xith.rock();
'n ddrylliog
Guru
*****
Offline Offline

Posts: 1188



View Profile WWW Email
« Reply #6 on: 31. January 2007, 03:57:02 pm »

Hey TT, why don't you try to use Xith3D with this : http://www.croftsoft.com/library/software/jigl/
 Grin (Not just kidding, I think it's possible..)
Logged
Marvin Fröhlich
Xith Lord
Administrator
Guru
*****
Offline Offline

Posts: 4381


May the 4th, be with you...


View Profile
« Reply #7 on: 31. January 2007, 06:14:41 pm »

The "glClientActiveTexture" not available message normally comes up when your drivers don't support a sufficient OpenGL version. In our case this is 1.1 as I think. It could be fixed by installing the latest drivers of your graphics card's vendor. If there is not newer driver available, then you're right, you won't be able to run Xith3D (nor any other OpenGL app) on your notebook.

But you could also try to use LWJGL (easily switchable by Xith3DTestLauncher), but I expect the same results.

Marvin
Logged
Pages: [1]
Print
Jump to:  

Theme orange-lt created by panic