Java-Gaming.org
Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars!
Featured games (78)
games approved by the League of Dukes
Games in Showcase (406)
games submitted by our members
Games in WIP (292)
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  
  Getting the test suite to run  (Read 1056 times)
0 Members and 1 Guest are viewing this topic.
Offline mrdale

Junior Newbie




Java games rock!


« Posted 2004-07-26 02:45:46 »

I think I've done all the acrobatics to get things compiled and placed where they belong yet still I get

    [java] Controller Env = net.java.games.input.DefaultControllerEnvironment@1004901
    [java] Scanning jar: dxinput.jar
    [java] Examining file : META-INF/
    [java] Examining file : META-INF/MANIFEST.MF
    [java] Examining file : net/
    [java] Examining file : net/java/
    [java] Examining file : net/java/games/
    [java] Examining file : net/java/games/input/
    [java] Examining file : net/java/games/input/DirectInputAxis.class
    [java] Examining file : net/java/games/input/DirectInputDevice.class
    [java] Examining file : net/java/games/input/DirectInputEnvironmentPlugin.class
    [java] Found candidate class: net/java/games/input/DirectInputEnvironmentPlugin.class
    [java] Adding class to plugins:net.java.games.input.DirectInputEnvironmentPlugin
    [java] Examining file : net/java/games/input/DirectInputKeyboard.class
    [java] Examining file : net/java/games/input/DirectInputMouse$BallAxis.class
    [java] Examining file : net/java/games/input/DirectInputMouse$BallImpl.class
    [java] Examining file : net/java/games/input/DirectInputMouse$ButtonImpl.class
    [java] Examining file : net/java/games/input/DirectInputMouse$ButtonsImpl.class
    [java] Examining file : net/java/games/input/DirectInputMouse.class
    [java] Examining file : net/java/games/input/DirectInputRumbler.class
    [java] java.lang.UnsatisfiedLinkError: getNumButtons
    [java]     at net.java.games.input.DirectInputMouse.getNumButtons(Native Method)
    [java]     at net.java.games.input.DirectInputMouse.access$200(DirectInputMouse.java:50)
    [java]     at net.java.games.input.DirectInputMouse$ButtonsImpl.<init>(DirectInputMouse.java:183)
    [java]     at net.java.games.input.DirectInputMouse.<init>(DirectInputMouse.java:88)
    [java]     at net.java.games.input.DirectInputMouse.createMouse(DirectInputMouse.java:146)
    [java]     at net.java.games.input.DirectInputEnvironmentPlugin.addDevice(DirectInputEnvironmentPlugin.java:159)
    [java]     at net.java.games.input.DirectInputEnvironmentPlugin.enumDevices(Native Method)
    [java]     at net.java.games.input.DirectInputEnvironmentPlugin.enumControllers(DirectInputEnvironmentPlugin.java:1
33)
    [java]     at net.java.games.input.DirectInputEnvironmentPlugin.<init>(DirectInputEnvironmentPlugin.java:113)
    [java]     at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    [java]     at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
    [java]     at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
    [java]     at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
    [java]     at java.lang.Class.newInstance0(Class.java:306)
    [java]     at java.lang.Class.newInstance(Class.java:259)
    [java]     at net.java.games.input.DefaultControllerEnvironment.scanControllersAt(DefaultControllerEnvironment.java
:208)
    [java]     at net.java.games.input.DefaultControllerEnvironment.scanControllers(DefaultControllerEnvironment.java:1
89)
    [java]     at net.java.games.input.DefaultControllerEnvironment.access$000(DefaultControllerEnvironment.java:58)
    [java]     at net.java.games.input.DefaultControllerEnvironment$1.run(DefaultControllerEnvironment.java:109)
    [java]     at java.security.AccessController.doPrivileged(Native Method)
    [java]     at net.java.games.input.DefaultControllerEnvironment.getControllers(DefaultControllerEnvironment.java:10
7)
    [java]     at net.java.games.input.test.ControllerTextTest.<init>(ControllerTextTest.java:54)
    [java]     at net.java.games.input.test.ControllerTextTest.main(ControllerTextTest.java:86)
    [java] Exception in thread "main"
when I try to use ant to run any of the tests.  Any clue which wrong turn I made?

Thanks,
Dale.
Offline TheBohemian

Junior Member




Java will rule them all!


« Reply #1 - Posted 2004-07-26 11:53:49 »

Quote

java.lang.UnsatisfiedLinkError: getNumButtons

This looks like an error on the JInput side of things ...
endolf?

cya

TheBohemian

---------------------------------------
my favorite OS: http://jnode.sf.net
Java 1.5 -> 1.4 converter: http://retroweaver.sf.net
Offline endolf
« League of Dukes »

JGO Coder


Medals: 4
Projects: 1


Current project release date: sometime in 3003


« Reply #2 - Posted 2004-07-27 08:40:07 »

Hi
 Unsatisfied link errors should happen before that point if the dxjinput dll is missing, which makes me think the dll you have compiled is broken some how (the getNumButtons method is not there). The CVS version of the C code has it (just checked), so I can't see why it's not finding it.
 The only thing I can think of is that you have a really old version of the dll somewhere else on your system that java is finding, either in your jdk, your windows folders (I think it checks windows windows/system and windows/system32) so  search your whole machine for the dll. If there are no others then somehow you must have really old source for the c code, but newer java.

Hope that helps

Endolf

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

Junior Newbie




Java games rock!


« Reply #3 - Posted 2004-07-29 03:38:21 »

I am using the precompiled dll as I've been unable to untangle the #include spaghetti using either dx8 or 9.

All (and I've tried a bunch) of the -I's I've tried to get dinput.h to lead to a valid bunch of includes has failed.

Any clues on that front?

Thanks,
Dale.
Offline endolf
« League of Dukes »

JGO Coder


Medals: 4
Projects: 1


Current project release date: sometime in 3003


« Reply #4 - Posted 2004-07-29 05:51:53 »

Hi
 The first time I built Jinput I just followed this instructions, got mingw, the dx bindings etc, and it worked. Are you using VC, or trying to use some other compiler?

It sounds like the binary dll you have is really old, i'd get a new one from https://games-binaries.dev.java.net/build/index.html and try again if I were you.

Cheers

Endolf

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

Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars!
 
Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars and Titan!

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

The invasion has landed! On Mars! And you're there to beat 'em!
cubemaster21 (67 views)
2013-05-17 21:29:12

alaslipknot (76 views)
2013-05-16 21:24:48

gouessej (108 views)
2013-05-16 00:53:38

gouessej (104 views)
2013-05-16 00:17:58

theagentd (115 views)
2013-05-15 15:01:13

theagentd (104 views)
2013-05-15 15:00:54

StreetDoggy (149 views)
2013-05-14 15:56:26

kutucuk (172 views)
2013-05-12 17:10:36

kutucuk (170 views)
2013-05-12 15:36:09

UnluckyDevil (179 views)
2013-05-12 05:09:57
Complex number cookbook
by Roquen
2013-04-24 12:47:31

2D Dynamic Lighting
by Oskuro
2013-04-17 16:46:12

2D Dynamic Lighting
by Oskuro
2013-04-17 16:45:57

2D Dynamic Lighting
by Oskuro
2013-04-17 16:23:20

Noise (bandpassed white)
by Roquen
2013-04-05 17:36:01

Noise (bandpassed white)
by Roquen
2013-04-03 16:17:38

Java Data structures
by Roquen
2013-03-29 13:21:12

Topic Request
by kutucuk
2013-03-22 21:42:01
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!
Page created in 0.113 seconds with 21 queries.