Java-Gaming.org Hi !
Featured games (83)
games approved by the League of Dukes
Games in Showcase (524)
Games in Android Showcase (127)
games submitted by our members
Games in WIP (592)
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: UnsatisfiedLinkError with Linux on: 2009-04-15 17:17:46
Well. I put user permissions on files "event*" and the Keyboard works perfectly, haleluya Cheesy
But i have still some problems with gamepads. I would create a new topic.
Thank you very much for your advices  Smiley
2  Java Game APIs & Engines / JInput / Re: UnsatisfiedLinkError with Linux on: 2009-04-15 16:40:18
Thanks for your answer.

Quote
Are you on a 64 bit ubuntu?
No !

I have put "libjinput-linux.so" at the root of my project, and found a solution with a VM argument :
Quote
-Djava.library.path="./"
It works fine  Smiley

But the keyboard is not found  Sad just my gamepad. I have the message :
Quote
Loading: net.java.games.input.LinuxEnvironmentPlugin
Failed to open device (/dev/input/event3): Failed to open device /dev/input/event3 (13)
Failed to open device (/dev/input/event6): Failed to open device /dev/input/event6 (13)
Failed to open device (/dev/input/event5): Failed to open device /dev/input/event5 (13)
Failed to open device (/dev/input/event4): Failed to open device /dev/input/event4 (13)
Failed to open device (/dev/input/event2): Failed to open device /dev/input/event2 (13)
Failed to open device (/dev/input/event1): Failed to open device /dev/input/event1 (13)
Failed to open device (/dev/input/event0): Failed to open device /dev/input/event0 (13)
Linux plugin claims to have found 1 controllers
-> Stick
   Saitek P990 Dual Analog Pad

And the buttons and paddle are without effects !  Sad (with ubuntu, not with Windows)

I am going to try the latest nightly...
3  Java Game APIs & Engines / JInput / UnsatisfiedLinkError with Linux on: 2009-04-15 15:34:27
Hi,

I downloaded JInput from https://jinput.dev.java.net/
I created a test class :
1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
import net.java.games.input.Controller;
import net.java.games.input.ControllerEnvironment;

public class TestControllers {
   public static void main(String[] args) {
      ControllerEnvironment ce = ControllerEnvironment.getDefaultEnvironment();
      Controller[] controllers = ce.getControllers();
      for (Controller controller : controllers) {
         System.out.println("-> " + controller.getType());
         System.out.println("\t" + controller);
      }
   }
}


It works well with Windows XP, but not with Linux Ubuntu 8.10 (kernel 2.6.27-11-generic) !
I have an exception with Eclipse :
Quote
Loading: net.java.games.input.LinuxEnvironmentPlugin
Failed to load 64 bit library: no jinput-linux64 in java.library.path
java.lang.UnsatisfiedLinkError: no jinput-linux in java.library.path
   at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1709)
   at java.lang.Runtime.loadLibrary0(Runtime.java:823)
   at java.lang.System.loadLibrary(System.java:1030)
   at net.java.games.input.LinuxEnvironmentPlugin$1.run(LinuxEnvironmentPlugin.java:65)
   at java.security.AccessController.doPrivileged(Native Method)
   at net.java.games.input.LinuxEnvironmentPlugin.loadLibrary(LinuxEnvironmentPlugin.java:58)
   at net.java.games.input.LinuxEnvironmentPlugin.<clinit>(LinuxEnvironmentPlugin.java:92)
   at java.lang.Class.forName0(Native Method)
   at java.lang.Class.forName(Class.java:169)
   at net.java.games.input.DefaultControllerEnvironment.getControllers(DefaultControllerEnvironment.java:156)
   at TestControllers.main(TestControllers.java:10)
net.java.games.input.LinuxEnvironmentPlugin is not supported

Can you help me, please ?
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.

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

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

toopeicgaming1999 (8 views)
2014-11-26 15:20:08

SHC (24 views)
2014-11-25 12:00:59

SHC (24 views)
2014-11-25 11:53:45

Norakomi (26 views)
2014-11-25 11:26:43

Gibbo3771 (23 views)
2014-11-24 19:59:16

trollwarrior1 (36 views)
2014-11-22 12:13:56

xFryIx (75 views)
2014-11-13 12:34:49

digdugdiggy (52 views)
2014-11-12 21:11:50
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!