bhassene / simile-butterfly

Automatically exported from code.google.com/p/simile-butterfly
0 stars 0 forks source link

Butterfly and java 7 #9

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Try to install Butterfly using a version of java greater than version 6

What is the expected output? What do you see instead?
Get an error message:
"Butterfly requires Java version 6 or later."
As I was using a later version (7), I would not expect to see this message.

What version of the product are you using? On what operating system?
I was installing Backstage on ubuntu 12.10 using java-1.7.0-openjdk-i386, for 
which Butterfly is a dependency. I pulled Butterfly from trunk following these 
instructions:
https://github.com/zepheira/backstage/wiki/Building-Backstage

Please provide any additional information below.

I altered line 458 of /butterfly/butterfly:

JAVA_VERSION=$JAVA -version 2>&1 | grep version | cut -d ' ' -f 3 | egrep 
^\"1\.6
JAVA_VERSION=$JAVA -version 2>&1 | grep version | cut -d ' ' -f 3 | egrep 
^\"1\.7
and then everything seems fine!

Cheers!

Original issue reported on code.google.com by capren...@gmail.com on 4 Mar 2013 at 9:07