Heli-X does not start on Ubuntu 8.04

Installation and usage on Linux / Installation unter Linux
Post Reply
TheHibou
Posts: 4
Joined: 04 Aug 2008 08:28

Heli-X does not start on Ubuntu 8.04

Post by TheHibou »

Hello,
Sorry for english, I can't speak/write german.
I am trying to run Heli-X on Ubuntu 8.04, latest Java runtime insalled.
Currently the softwre is in a folfer on my desktop.
When I double-click on the .sh file, all I get is an open window, title is "run HELI-X;sh", content is as follows.
Any help will be great !
Thanks,
TheHibou

#!/bin/bash
SYSTEMNAME=linux-i586
#SYSTEMNAME=linux-amd64
cd $( dirname $0 )

# JAVAPATH=/usr/java/jre1.6.0_03/bin/
JAVAPATH=$(dirname "$(which java)")

LIBPATH=$PWD/libs/

LIBS=$LIBS:$LIBPATH/jogl/$SYSTEMNAME/
LIBS=$LIBS:$LIBPATH/lwjgl/$SYSTEMNAME/
LIBS=$LIBS:$LIBPATH/joal/$SYSTEMNAME/
LIBS=$LIBS:$LIBPATH/gluegen/$SYSTEMNAME/
LIBS=$LIBS:$LIBPATH/jinput/$SYSTEMNAME/

JARPATH=$PWD/libs
CP=$CP:$JARPATH/HeliX/HeliX591.jar
CP=$CP:$JARPATH/gluegen/gluegen-rt.jar
CP=$CP:$JARPATH/jagatoo/jagatoo.jar
CP=$CP:$JARPATH/hial/hial.jar
CP=$CP:$JARPATH/jama/Jama-1.0.2.jar
CP=$CP:$JARPATH/javagamenetworking/javagamenetworking.jar
CP=$CP:$JARPATH/jdom/jdom.jar
CP=$CP:$JARPATH/joal/joal.jar
CP=$CP:$JARPATH/jogl/jogl.jar
CP=$CP:$JARPATH/lwjgl/lwjgl.jar
CP=$CP:$JARPATH/jinput/jinput.jar
CP=$CP:$JARPATH/math/openmali.jar
CP=$CP:$JARPATH/xith/xith3d.jar

$JAVAPATH/java -Xmx256m -Djava.library.path=$LIBS -classpath $CP ch.ntb.HeliX.application.Application > files/log.txt
User avatar
Michael
Posts: 1825
Joined: 25 May 2008 16:11
Location: Germany
Contact:

Re: Heli-X does not start on Ubuntu 8.04

Post by Michael »

Hello,

english is no problem. ;-)

please doe the following:

1. open a console, change the directory to the HELI-X directory and type in
java -version
(I want to see, if the correct java verison is used)
2. What is the contents of the file files/log.txt ?

Michael
TheHibou
Posts: 4
Joined: 04 Aug 2008 08:28

Re: Heli-X does not start on Ubuntu 8.04

Post by TheHibou »

Hello,
This is what I see when checking the java version :
java version "1.6.0"
OpenJDK Runtime Environment (build 1.6.0-b09)
OpenJDK Server VM (build 1.6.0-b09, mixed mode)
herve@Ubuntu-Tower:~/Bureau/HELI-X$
herve@Ubuntu-Tower:~/Bureau/HELI-X$

Additionnally, there is no log.txt file in the files folder.

Regards,
Herve
User avatar
Michael
Posts: 1825
Joined: 25 May 2008 16:11
Location: Germany
Contact:

Re: Heli-X does not start on Ubuntu 8.04

Post by Michael »

Hi,

can it be that you did not execute the file? So please start again the console, cd to the Heli-X directory and then say
./runHELI-X.sh

It might be necessary to give the file execute permissions with
chmod u+x runHELI-X.sh

Michael
TheHibou
Posts: 4
Joined: 04 Aug 2008 08:28

Re: Heli-X does not start on Ubuntu 8.04

Post by TheHibou »

Michael,

Well, many thank's, I have largely progressed : the software is now running.
Unfortunately, now I get a "no controller detected" message, in spite of a controller present and detected by lsusb
Actually, I even tried two controllers I have, same message.
Last, I run a double boot on this machine : Vista and Linux. I tried to boot Vista, run the windows version of HELI-X, and bing, I am in the air, with any of my controllers !
Any idea to have those controllers seen by HELI-X ?

Regards,
Herve

BTW, for any reason, http://www.google.fr simply ignores HELI-X. Are you at odds with those guys ?
User avatar
Michael
Posts: 1825
Joined: 25 May 2008 16:11
Location: Germany
Contact:

Re: Heli-X does not start on Ubuntu 8.04

Post by Michael »

Great, that it woks now.

On Linux, it is sometimes necessary to give the user more rights on the devices. Type in as root: (on Ubunto you perhaps have to say sudo chmod ....)

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

Hope that helps.

Michael
TheHibou
Posts: 4
Joined: 04 Aug 2008 08:28

Re: Heli-X does not start on Ubuntu 8.04

Post by TheHibou »

Progressing, progressing...
The first line reacts properly, however the second line returns :
"cant access `/dev/input/j*' : no file or folder of that type"
Thank's,
Herve

herve@Ubuntu-Tower:~$ sudo chmod o+rw /dev/input/e*
herve@Ubuntu-Tower:~$ sudo chmod o+rw /dev/input/j*
chmod: ne peut accéder `/dev/input/j*': Aucun fichier ou dossier de ce type
User avatar
Michael
Posts: 1825
Joined: 25 May 2008 16:11
Location: Germany
Contact:

Re: Heli-X does not start on Ubuntu 8.04

Post by Michael »

Does it work?
You can obtain a log file from HELI-X. It is in files/log.txt. What does it say? An what do you get from
ls /dev/input

Michael
Post Reply