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   
  Show Posts
Pages: [1]
1  Java Game APIs & Engines / JInput / Re: Null pointer in Jinput Test program on: 2005-01-26 15:56:48
If don't you see this part on your console

1  
2  
3  
4  
5  
6  
7  
 Examining file : META-INF/
Examining file : META-INF/MANIFEST.MF
Examining file : net/
Examining file : net/java/
Examining file : net/java/games/
Examining file : net/java/games/input/
Examining file : net/java/games/input/DirectInputAxis.class

. . . . . . and some more text

I'm pretty (almost) sure that it doesn't find the plugin.

@Preacher:

hi,
you asked me how I fixed my problems with jinput. . .
The solution was to build the whole thing by myself.

You assumed the problem is in the plugin classloader in utils.jar --> you're right

java.lang.NoClassDefFoundError: IllegalName: net/java/games/input/DirectInputEnvironmentPlugin

The problem is that the plugin loader uses slashes to specify the path/filename (only dots are allowed)

The code, wich you can check out from CVS, is fine. I built it and everything was fine.  I don't know if someone updated the binaries meanwhile.

my file hierarchy looks like this:

./dxinput.dll
./jinput.jar
./utils.jar
./Controller/dxinput.jar
./standard/ /* here are some testfiles*/

./ is the root from where my program is executed

this post might be useful for you too (the plugin problem):
http://www.java-gaming.org/cgi-bin/JGNetForums/YaBB.cgi?board=jinput;action=display;num=1098543727

Quote
im trying my hardest to get JInput working here and its not doing any good for my mental health >:


. . . it wasn't good for mine either
2  Java Game APIs & Engines / JInput / NoClassDefFoundError on: 2005-01-15 18:58:03
Scanning jar: dxinput.jar
Examining file : META-INF/
Examining file : META-INF/MANIFEST.MF
Examining file : net/
Examining file : net/java/
Examining file : net/java/games/
Examining file : net/java/games/input/
Examining file : net/java/games/input/DirectInputAxis.class
Examining file : net/java/games/input/DirectInputDevice.class
Examining file : net/java/games/input/DirectInputEnvironmentPlugin.class
Found candidate class: net/java/games/input/DirectInputEnvironmentPlugin.class
java.lang.NoClassDefFoundError: Illegal name: net/java/games/input/DirectInputEnvironmentPlugin
     at java.lang.ClassLoader.defineClass(ClassLoader.java:538)
     at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
     at java.net.URLClassLoader.defineClass(URLClassLoader.java:251)
     at java.net.URLClassLoader.access$100(URLClassLoader.java:55)
     at java.net.URLClassLoader$1.run(URLClassLoader.java:194)
     at java.security.AccessController.doPrivileged(Native Method)
     at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
     at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
     at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)
     at java.lang.ClassLoader.loadClass(ClassLoader.java:282)
     at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
     at net.java.games.util.plugins.Plugins.processJar(Plugins.java:112)
     at net.java.games.util.plugins.Plugins.scanPlugins(Plugins.java:85)
     at net.java.games.util.plugins.Plugins.<init>(Plugins.java:73)
     at net.java.games.input.DefaultControllerEnvironment.scanControllersAt(DefaultControllerEnvironment.java:174)
     at net.java.games.input.DefaultControllerEnvironment.scanControllers(DefaultControllerEnvironment.java:164)
     at net.java.games.input.DefaultControllerEnvironment.access$000(DefaultControllerEnvironment.java:57)
     at net.java.games.input.DefaultControllerEnvironment$1.run(DefaultControllerEnvironment.java:108)
     at java.security.AccessController.doPrivileged(Native Method)
     at net.java.games.input.DefaultControllerEnvironment.getControllers(DefaultControllerEnvironment.java:106)
     at firstTest.FirstTest.main(FirstTest.java:36)

has anyone seen this before? all the code does is a call DefaultControllerEnvironment.getControllers() . That's the output . . . any ideas?
Pages: [1]
 

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 (29 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 (56 views)
2014-10-14 00:39:48

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

TehJavaDev (46 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!