Installation unter Ubuntu 8.10 bleibt hängen - Java?

Installation and usage on Linux / Installation unter Linux
Blaubaer
Posts: 9
Joined: 03 Oct 2008 23:01

Installation unter Ubuntu 8.10 bleibt hängen - Java?

Post by Blaubaer »

Hallo Leute,

bei der Installation bleibt Heli-X leider hängen - anscheinend ein java-Fehler:

thomas@notebook:~/Software/HELI-X$ ./runHELI-X.sh
java.lang.UnsatisfiedLinkError: net.java.games.input.LinuxJoystickDevice.nGetAxisMap(J)[B
at net.java.games.input.LinuxJoystickDevice.nGetAxisMap(Native Method)
at net.java.games.input.LinuxJoystickDevice.getDeviceAxisMap(LinuxJoystickDevice.java:200)
at net.java.games.input.LinuxJoystickDevice.<init>(LinuxJoystickDevice.java:70)
at net.java.games.input.LinuxEnvironmentPlugin.enumerateJoystickControllers(LinuxEnvironmentPlugin.java:406)
at net.java.games.input.LinuxEnvironmentPlugin.enumerateControllers(LinuxEnvironmentPlugin.java:233)
at net.java.games.input.LinuxEnvironmentPlugin.<init>(LinuxEnvironmentPlugin.java:113)
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:157)
at ch.ntb.HeliX.controller.FlightController.<init>(FlightController.java:86)
at ch.ntb.HeliX.simulation.Simulation.initController(Simulation.java:164)
at ch.ntb.HeliX.application.Application.<init>(Application.java:153)
at ch.ntb.HeliX.application.Application$1.run(Application.java:757)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:226)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:602)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:275)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:200)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:185)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:177)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:138)

Kann jemand helfen?

Danke,

Thomas
User avatar
Michael
Posts: 1825
Joined: 25 May 2008 16:11
Location: Germany
Contact:

Re: Installation unter Ubuntu 8.10 bleibt hängen - Java?

Post by Michael »

Hallo Thomas,

hast Du ein 32- oder ein 64-Bit-System?

Es scheint etwas mit dem USB-Controller zu tun zu haben. Schau doch mal hier und teste das zuerst:

viewtopic.php?f=5&t=48

Gruss

Michael
Blaubaer
Posts: 9
Joined: 03 Oct 2008 23:01

Re: Installation unter Ubuntu 8.10 bleibt hängen - Java?

Post by Blaubaer »

Hallo Michael,

Danke für die schnelle Antwort!

Ich habe ein 32bit-System auf einem Lenovo Thinkpad z60m.

Hier die Ausgabe des Joysticktests:

thomas@notebook:~/Software/HELI-X/JoystickAnalyzer$ ls
libs runAnalyzer64.sh runAnalyzer.bat runAnalyzer.command runAnalyzer.sh
thomas@notebook:~/Software/HELI-X/JoystickAnalyzer$ chmod u+x runAnalyzer.sh
thomas@notebook:~/Software/HELI-X/JoystickAnalyzer$ runAnalyzer.sh
bash: runAnalyzer.sh: command not found
thomas@notebook:~/Software/HELI-X/JoystickAnalyzer$ ./runAnalyzer.sh
Joystick-Analyzer (by Michael Schreiner)
Failed to open device (/dev/input/event12): Failed to open device /dev/input/event12 (13)

Failed to open device (/dev/input/event11): Failed to open device /dev/input/event11 (13)

Failed to open device (/dev/input/event10): Failed to open device /dev/input/event10 (13)

Failed to open device (/dev/input/event9): Failed to open device /dev/input/event9 (13)

Failed to open device (/dev/input/event8): Failed to open device /dev/input/event8 (13)

Failed to open device (/dev/input/event7): Failed to open device /dev/input/event7 (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/event3): Failed to open device /dev/input/event3 (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

Controller: THRUSTMASTER FireStorm Dual Analog 2
Type: Stick
Digital component found:0
Digital component found:1
Digital component found:2
Digital component found:3
Digital component found:4
Digital component found:5
Digital component found:6
Digital component found:7
Digital component found:8
Digital component found:9
Digital component found:10
Digital component found:11
Analog component found:x
Analog component found:y
Analog component found:x
Analog component found:y
Analog component found:x
Analog component found:y

Hatte vorher auch schon das Programm "joystick calibration" gestartet und das Programm hat auf alle Hardwareeingaben reagiert.

Gruß,

Thomas
Schraubnix
Posts: 81
Joined: 25 May 2008 18:49

Re: Installation unter Ubuntu 8.10 bleibt hängen - Java?

Post by Schraubnix »

Hallo Thomas

Das Problem hatte ich auch mal , fehlende Rechte betr.

Failed to open device (/dev/input/event12): Failed to open device /dev/input/event12 (13)

Failed to open device (/dev/input/event11): Failed to open device /dev/input/event11 (13)

Failed to open device (/dev/input/event10): Failed to open device /dev/input/event10 (13)

Failed to open device (/dev/input/event9): Failed to open device /dev/input/event9 (13)

Failed to open device (/dev/input/event8): Failed to open device /dev/input/event8 (13)

Failed to open device (/dev/input/event7): Failed to open device /dev/input/event7 (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/event3): Failed to open device /dev/input/event3 (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)


Ich hab meine runHELI-X.sh abgeändert

sudo chmod o+rw /dev/input/event0
sudo chmod o+rw /dev/input/event1
sudo chmod o+rw /dev/input/event2
sudo chmod o+rw /dev/input/event3
sudo chmod o+rw /dev/input/event4
sudo chmod o+rw /dev/input/event5
sudo chmod o+rw /dev/input/event6
sudo chmod o+rw /dev/input/js0


Nun brauche ich beim Start von HELI-X nur noch einmal mein root-Passwort eingeben und dann funktionierts einwandfrei .

Manchmal kommt die Meldung noch zwischendurch , dass liegt dann aber daran das ich das Interface vergessen habe anzuschliessen :D
Gruss

Uli
Blaubaer
Posts: 9
Joined: 03 Oct 2008 23:01

Re: Installation unter Ubuntu 8.10 bleibt hängen - Java?

Post by Blaubaer »

Hallo,

habe noch mal folgendes Kommando ausgeführt:
thomas@notebook:~/Software/HELI-X$ ./runHELI-X.command
./runHELI-X.command: line 33: /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Commands/java: No such file or directory

Das sieht wohl mehr nach Pfadproblemen aus? Ich habe allerdings dermaßen viele java-Varianten auf meinem System, dass ich nicht wüsste mit welchem java ich das verlinken solte...

Gruß,

Thomas
Blaubaer
Posts: 9
Joined: 03 Oct 2008 23:01

Re: Installation unter Ubuntu 8.10 bleibt hängen - Java?

Post by Blaubaer »

Hallo Uli,
Ich hab meine runHELI-X.sh abgeändert
wie geht das?

Ich nehme an, dass ich dann bei mir bei allen 13 events die Rechte ändern muß?

Gruß,

Thomas
Schraubnix
Posts: 81
Joined: 25 May 2008 18:49

Re: Installation unter Ubuntu 8.10 bleibt hängen - Java?

Post by Schraubnix »

Du änderst das einfach mit einem Editor , mehr nicht .

Deinen Bedürfnissen entsprechend , also alle events incl. js0
Gruss

Uli
Blaubaer
Posts: 9
Joined: 03 Oct 2008 23:01

Re: Installation unter Ubuntu 8.10 bleibt hängen - Java?

Post by Blaubaer »

Es könnt alles so einfach sein - isses aaber nich!

Bin aber schon einen Schritt weiter :)

Habe jetzt das Helix-Fenster mit Menüleiste und oben zählt er mir die FPS (300+).

Wo ich noch Optimierungspotential sehe ist, dass sich bei den Menüs keine Untermenüs öffnen und das der Bildschirm schwarz ist.

Weitere Vorschläge?

Gruß,

Thomas
User avatar
Michael
Posts: 1825
Joined: 25 May 2008 16:11
Location: Germany
Contact:

Re: Installation unter Ubuntu 8.10 bleibt hängen - Java?

Post by Michael »

Hallo Thomas,

zuerst zu den Rechten. Das geht z.B. auch so:

sudo chmod o+rw /dev/input/e*

Dass das Fenster schwarz ist, könnte daran liegen, dass noch kein Airport ausgewählt ist..... Geht mit dem Menü links.

Was meinst Du mit den Menüs? Die reagieren nicht?

Michael
Schraubnix
Posts: 81
Joined: 25 May 2008 18:49

Re: Installation unter Ubuntu 8.10 bleibt hängen - Java?

Post by Schraubnix »

Mal die Farbtiefe auf 16Bit herunter setzen vom Desktop ?
Gruss

Uli
Post Reply