VCC not working on MAC OS X 10.5

Project:Virtual Combat Cards Project
Version:0.90
Component:Miscellaneous
Category:bug report
Priority:normal
Assigned:Nebulorum
Status:closed
Description

You can't start VCC on Mac OS X 10.5.

#1

Status:active» patch (code needs review)

This is caused by incompatible JRE version. Mac default JRE is 1.5 and VCC requires 1.6. Replacing the vcc.sh for the following makes it work:

#!/bin/sh

OS=`uname`
if [ $OS == 'Darwin' ]; then
echo "Running on a MAC"
JAVA="/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home/bin/java"
if [ ! -f $JAVA ]; then
echo "Can't find a suitable JRE, need version 1.6.0"
exit 1
fi
else
echo "Running on other Unix"
JAVA=java
fi
$JAVA -cp "bin/scala-swing.jar:bin/scala-library.jar:bin/miglayout-3.6.2-swing.jar:bin/vcc.jar" vcc.Main

#2

Besides the startup problem there were some visualization. Some of them were fixed by changing the layout manager. However some have to be set at a higher level.

To fix this two external parameter have been added:

vcc.view.lpanel.width
Sets the width of the left panel. Default is 390, but it must be set larger for Mac (460 seems to work)
vcc.view.efp.max
Sets the maximum number of effect panels. This is normally 3, if the UI has enough space (more then 700 pixels in height). It must be limited for the Mac due to it's use of space.

For the Mac you must set these parameter on the java command to:
-Dvcc.view.lpanel.width=460 -Dvcc.view.efp.max=2

#3

Title:VCC fails with "Class not found exception" on MAC OS X 10.5» VCC not working on MAC OS X 10.5
Status:patch (code needs review)» fixed

Fixed in version 0.92.2.

#4

Status:fixed» closed

Automatically closed -- issue fixed for two weeks with no activity.