Java-Gaming.org Hi !
Featured games (83)
games approved by the League of Dukes
Games in Showcase (539)
Games in Android Showcase (132)
games submitted by our members
Games in WIP (603)
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: Jinput test wont run on linux 64bit on: 2010-12-27 14:26:08
Look at the list of packages in Synaptic.

I have already checked, It's the first thing I did after I visited the Jinput page! But as I said, there isn't a Jinput build for Karmic, just for Maveric.
2  Java Game APIs & Engines / JInput / Re: Jinput test wont run on linux 64bit on: 2010-12-24 18:51:02
It's something in my environment. I installed sun's jdk and still, doesn't run. It gives me pretty much the same error:

alan@alan-desktop:~/Downloads/Pkg/Jinput/dist$ sudo /usr/lib/jvm/java-6-sun/jre/bin/java -Djava.library.path=. -cp jinput.jar:jinput-test.jar net.java.games.input.test.ControllerTextTest
Controller Env = net.java.games.input.DefaultControllerEnvironment@7ca83b8a
Dec 24, 2010 12:45:23 PM net.java.games.input.DefaultControllerEnvironment getControllers
INFO: Loading: net.java.games.input.LinuxEnvironmentPlugin
java.lang.ClassCastException: net.java.games.input.LinuxMouse cannot be cast to net.java.games.input.LinuxAbstractController
        at net.java.games.input.LinuxEnvironmentPlugin.enumerateControllers(LinuxEnvironmentPlugin.java:256)
        at net.java.games.input.LinuxEnvironmentPlugin.<init>(LinuxEnvironmentPlugin.java:112)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
        at java.lang.Class.newInstance0(Class.java:355)
        at java.lang.Class.newInstance(Class.java:308)
        at net.java.games.input.DefaultControllerEnvironment.getControllers(DefaultControllerEnvironment.java:160)
        at net.java.games.input.test.ControllerTextTest.<init>(ControllerTextTest.java:54)
        at net.java.games.input.test.ControllerTextTest.main(ControllerTextTest.java:86)
alan@alan-desktop:~/Downloads/Pkg/Jinput/dist$ sudo /usr/lib/jvm/java-6-sun/jre/bin/java -Djava.library.path=. -cp jinput.jar:jinput-test.jar net.java.games.input.test.ControllerReadTest
Dec 24, 2010 12:47:35 PM net.java.games.input.DefaultControllerEnvironment getControllers
INFO: Loading: net.java.games.input.LinuxEnvironmentPlugin
java.lang.ClassCastException: net.java.games.input.LinuxMouse cannot be cast to net.java.games.input.LinuxAbstractController
        at net.java.games.input.LinuxEnvironmentPlugin.enumerateControllers(LinuxEnvironmentPlugin.java:256)
        at net.java.games.input.LinuxEnvironmentPlugin.<init>(LinuxEnvironmentPlugin.java:112)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
        at java.lang.Class.newInstance0(Class.java:355)
        at java.lang.Class.newInstance(Class.java:308)
        at net.java.games.input.DefaultControllerEnvironment.getControllers(DefaultControllerEnvironment.java:160)
        at net.java.games.input.test.ControllerReadTest.<init>(ControllerReadTest.java:252)
        at net.java.games.input.test.ControllerReadTest.main(ControllerReadTest.java:301)


I don't have a clue of what it might be though Huh Is there something else I should check? BTW, I looked for jinput and it is in the repositories but only for 10.10, I'm using 10.04
3  Java Game APIs & Engines / JInput / Re: Jinput test wont run on linux 64bit on: 2010-12-14 15:16:02
I downloaded this binaries: http://www.newdawnsoftware.com/resources/jinput/jinput_nightly_20100503.zip

at the document and files page: https://jinput.dev.java.net/servlets/ProjectDocumentList?folderID=0&expandFolder=0&folderID=0

Thanks

EDIT:

I forgot to copy the libraries to the proper folder and set the environment variable. I already downloaded Jutils and placed it both in the dist folder and the libraries folder. However, the tests continue to work improperly. ControllerReadTest Opens a blank window but ControllerTextTest and RumbleTest won't even run. Here's a copy of my command:

Quote
alan@alan-desktop:~/Downloads/Pkg/Jinput/dist$ sudo java -Djava.library.path=. -cp jinput.jar:jinput-test.jar net.java.games.input.test.ControllerTextTest
Controller Env = net.java.games.input.DefaultControllerEnvironment@24a20892
Dec 14, 2010 11:04:33 PM net.java.games.input.DefaultControllerEnvironment getControllers
INFO: Loading: net.java.games.input.LinuxEnvironmentPlugin
java.lang.ClassCastException: net.java.games.input.LinuxMouse cannot be cast to net.java.games.input.LinuxAbstractController
        at net.java.games.input.LinuxEnvironmentPlugin.enumerateControllers(LinuxEnvironmentPlugin.java:256)
        at net.java.games.input.LinuxEnvironmentPlugin.<init>(LinuxEnvironmentPlugin.java:112)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:532)
        at java.lang.Class.newInstance0(Class.java:372)
        at java.lang.Class.newInstance(Class.java:325)
        at net.java.games.input.DefaultControllerEnvironment.getControllers(DefaultControllerEnvironment.java:160)
        at net.java.games.input.test.ControllerTextTest.<init>(ControllerTextTest.java:54)
        at net.java.games.input.test.ControllerTextTest.main(ControllerTextTest.java:86)
alan@alan-desktop:~/Downloads/Pkg/Jinput/dist$ sudo java -Djava.library.path=. -cp jinput.jar:jinput-test.jar net.java.games.input.test.RumbleTest
Dec 14, 2010 11:04:59 PM net.java.games.input.DefaultControllerEnvironment getControllers
INFO: Loading: net.java.games.input.LinuxEnvironmentPlugin
java.lang.ClassCastException: net.java.games.input.LinuxMouse cannot be cast to net.java.games.input.LinuxAbstractController
        at net.java.games.input.LinuxEnvironmentPlugin.enumerateControllers(LinuxEnvironmentPlugin.java:256)
        at net.java.games.input.LinuxEnvironmentPlugin.<init>(LinuxEnvironmentPlugin.java:112)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:532)
        at java.lang.Class.newInstance0(Class.java:372)
        at java.lang.Class.newInstance(Class.java:325)
        at net.java.games.input.DefaultControllerEnvironment.getControllers(DefaultControllerEnvironment.java:160)
        at net.java.games.input.test.RumbleTest.<init>(RumbleTest.java:21)
        at net.java.games.input.test.RumbleTest.main(RumbleTest.java:69)
alan@alan-desktop:~/Downloads/Pkg/Jinput/dist$ ls
jinput-dx8_64.dll  jinput-dx8.dll  jinput.jar  jinput-raw_64.dll  jinput-raw.dll  jinput-test.jar  jinput-wintab.dll  jutils.jar  libjinput-linux64.so  libjinput-linux.so  libjinput-osx.jnilib
alan@alan-desktop:~/Downloads/Pkg/Jinput/dist$ ls $LD_LIBRARY_PATH
jutil.jar  jutils.jar  libjinput-linux64.so  libjinput-linux.so  libjinput-osx.jnilib
alan@alan-desktop:~/Downloads/Pkg/Jinput/dist$

My joypad is already pluggin in, btw Tongue And Linux recognizes it correctly, it works alright.
4  Java Game APIs & Engines / JInput / Jinput test wont run on linux 64bit on: 2010-12-14 03:38:45
Hi everybody Smiley I'm kind of new to Java, and have wrote some basic apps so I was thinking of trying jinput but i cannot even get the test run :S. I'm using kubuntu 64 bit and java version 1.6.0_18. Can you people please help me?

Quote
alan@alan-desktop:~/Downloads/Pkg/dist$ sudo java -Djava.library.path=. -cp jinput.jar:jinput-test.jar net.java.games.input.test.ControllerTextTest
[sudo] password for alan:
Controller Env = net.java.games.input.DefaultControllerEnvironment@55fdc96c
Dec 13, 2010 9:35:52 PM net.java.games.input.DefaultControllerEnvironment getControllers
INFO: Loading: net.java.games.input.LinuxEnvironmentPlugin
java.lang.ClassCastException: net.java.games.input.LinuxMouse cannot be cast to net.java.games.input.LinuxAbstractController
        at net.java.games.input.LinuxEnvironmentPlugin.enumerateControllers(LinuxEnvironmentPlugin.java:256)
        at net.java.games.input.LinuxEnvironmentPlugin.<init>(LinuxEnvironmentPlugin.java:112)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:532)
        at java.lang.Class.newInstance0(Class.java:372)
        at java.lang.Class.newInstance(Class.java:325)
        at net.java.games.input.DefaultControllerEnvironment.getControllers(DefaultControllerEnvironment.java:160)
        at net.java.games.input.test.ControllerTextTest.<init>(ControllerTextTest.java:54)
        at net.java.games.input.test.ControllerTextTest.main(ControllerTextTest.java:86)
alan@alan-desktop:~/Downloads/Pkg/dist$ java -version
java version "1.6.0_18"
OpenJDK Runtime Environment (IcedTea6 1.8.1) (6b18-1.8.1-0ubuntu1)
OpenJDK 64-Bit Server VM (build 16.0-b13, mixed mode)
alan@alan-desktop:~/Downloads/Pkg/dist$ uname -r
2.6.32-24-generic
alan@alan-desktop:~/Downloads/Pkg/dist$
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.

rwatson462 (30 views)
2014-12-15 09:26:44

Mr.CodeIt (23 views)
2014-12-14 19:50:38

BurntPizza (50 views)
2014-12-09 22:41:13

BurntPizza (84 views)
2014-12-08 04:46:31

JscottyBieshaar (45 views)
2014-12-05 12:39:02

SHC (59 views)
2014-12-03 16:27:13

CopyableCougar4 (57 views)
2014-11-29 21:32:03

toopeicgaming1999 (123 views)
2014-11-26 15:22:04

toopeicgaming1999 (114 views)
2014-11-26 15:20:36

toopeicgaming1999 (32 views)
2014-11-26 15:20:08
Resources for WIP games
by kpars
2014-12-18 10:26:14

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
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!