VLMa setup in Ubuntu

All you've ever wanted to know about VLMa.
Forum rules
This forum is not about VLM usage. Please read the rules post for more information.
hadas
New Cone
New Cone
Posts: 7
Joined: 10 Feb 2009 16:40

VLMa setup in Ubuntu

Postby hadas » 10 Feb 2009 16:44

Hallo,
When i tryng to lunch VLM`a , typing ./vlmad start i have error ./vlmad: 3: Syntax error: "(" unexpected
how to fix it , thanks

jpountz
Blank Cone
Blank Cone
Posts: 17
Joined: 22 Apr 2008 23:49

Re: VLMa setup in Ubuntu

Postby jpountz » 11 Feb 2009 16:10

Hello,

This is due to some bashisms in these files. You need to remove the "function" keyword before the functions' definitions. If you're not sure of what you are doing,
sed -i -e "s/^function //" vlmad vlmaw vlma-env.sh
should do the trick (run this command inside the bin folder of VLMa).
jpountz
Adrien Grand

hadas
New Cone
New Cone
Posts: 7
Joined: 10 Feb 2009 16:40

Re: VLMa setup in Ubuntu

Postby hadas » 17 Feb 2009 17:32

thanks jpountz ,
Now have new error :
:~/vlma-0.2.0/bin$ ./vlmad start
[INFO] Starting VLMad.
[ERROR] JAVA_HOME is not defined.
[ERROR] You either need to install a JDK 5.0 or later,
[ERROR] or to set the JAVA_HOME environment variable if a JDK is already installed.
But i have java :
:~/vlma-0.2.0/bin$ java -version
java version "1.6.0_0"
IcedTea6 1.3.1 (6b12-0ubuntu6.1) Runtime Environment (build 1.6.0_0-b12)
OpenJDK Client VM (build 1.6.0_0-b12, mixed mode, sharing)

Where is Java home in ubuntu

jpountz
Blank Cone
Blank Cone
Posts: 17
Joined: 22 Apr 2008 23:49

Re: VLMa setup in Ubuntu

Postby jpountz » 18 Feb 2009 17:09

According to the output of java -version, you have installed a JRE, not a JDK. First you need to install a JDK (DK stands for development kit, whereas RE stands for Runtime Environment).

I think ubuntu installs JVMs in /usr/lib/jvm, so JAVA_HOME should be set to "/usr/lib/jvm/${jvm}" (replace ${jvm} by the name of the JVM you installed).
jpountz
Adrien Grand


Return to “VideoLAN Manager (VLMa)”

Who is online

Users browsing this forum: No registered users and 1 guest