Page 1 of 1

MacOS X - starting error

PostPosted: Sun Feb 24, 2013 1:26 pm
by JML
Launching Wandora from a Terminal window it begins to start up but halt with an exception message. Here's the full output:
Code: Select all
*****************************************************
***  WANDORA - KNOWLEDGE MANAGEMENT ENVIRONMENT   ***
***        Copyright (C) 2013 Wandora Team        ***
***            http://www.wandora.org/            ***
*****************************************************
Xms750m Xmx1000m
Changing consistency check to 'false'.
Using XTM 2.0 parser
Importing XTM (2.0) topic map.
Found 0 topics, 0 associations and 0 occurrences.
Restoring consistency check to 'true'.
Exception in thread "main" java.lang.NoSuchMethodError: org.wandora.application.Wandora.revalidate()V
   at org.wandora.application.Wandora.refresh(Wandora.java:1570)
   at org.wandora.application.Wandora.initializeWandora(Wandora.java:526)
   at org.wandora.application.Wandora.<init>(Wandora.java:269)
   at org.wandora.application.Wandora.main(Wandora.java:2054)


This may have nothing to do with the previous error, but I'm a bit worried to read linux in the JRI_LD_PATH in the SetProcessing.sh file. Be aware that I'm far from being Java or shell savvy.

Just in case, java -version gives:
Code: Select all
java version "1.6.0_41"
Java(TM) SE Runtime Environment (build 1.6.0_41-b02-445-10M4107)
Java HotSpot(TM) 64-Bit Server VM (build 20.14-b01-445, mixed mode)

Re: MacOS X - starting error

PostPosted: Mon Feb 25, 2013 12:09 pm
by akivela
Hello JML

Thank you for your bug report. A similar bug report was posted by user Jugger few days ago.

The problem was that we accidentally used Java 1.7 specific API call (namely revalidate) in Wandora. This method doesn't exist in Java 1.6 and trying to start Wandora with Java 1.6 throws an exception you show in your post.

I have now (2013-02-25) fixed the problem and updated Wandora's distribution packages. Also, I briefly tested the updated version in Mac and it seems to start without problems. Please, drop a line if you face other problems.

Kind Regards,
Aki / Wandora Team

Re: MacOS X - starting error

PostPosted: Mon Feb 25, 2013 2:43 pm
by JML
Hi Aki.

Thanks for a quick reply and, even better, a quick fix. Wandora is starting in a perfectly normal way by now.

What I may suggest, as an end user, is distributing Wandora in a more packaged way as I think quite a few potential users will shy away from using a Terminal… to launch a shell… to have their software started :?

Best regards.

Jean-Marc

Re: MacOS X - starting error

PostPosted: Tue Apr 16, 2013 11:19 am
by akivela
Hi Jean-Marc

I have written a short tutorial about tuning Wandora for Mac OS. Tutorial is available at http://www.wandora.org/wiki/Tuning_Wandora_for_Mac_OS. It includes also instructions to make Wandora mouse-click-runnable.

Kind Regards,
Aki / Wandora Team

Re: MacOS X - starting error

PostPosted: Sun Jul 16, 2017 3:40 pm
by softability
I am trying run Wandora on MacOS Sierra, and with java version "1.8.0_131"; Java(TM) SE Runtime Environment (build 1.8.0_131-b11)
Java HotSpot(TM) 64-Bit Server VM (build 25.131-b11, mixed mode)
but I am having some troubles:

First using the parameters showing in the page: http://wandora.org/wiki/Tuning_Wandora_for_Mac_OS
cd $(dirname “$0”)

I receive the error message:

/Users/cadrianocardoso/Desktop/wandora/bin/Wandora.command: line 10: cd: “/Users/cadrianocardoso/Desktop/wandora/bin: No such file or directory
/Users/cadrianocardoso/Desktop/wandora/bin/Wandora.command: line 15: SetClasspath.sh: No such file or directory
/Users/cadrianocardoso/Desktop/wandora/bin/Wandora.command: line 16: SetR.sh: No such file or directory
/Users/cadrianocardoso/Desktop/wandora/bin/Wandora.command: line 17: SetProcessing.sh: No such file or directory
/Users/cadrianocardoso/Desktop/wandora/bin/Wandora.command: line 18: SetTesseract.sh: No such file or directory
/Users/cadrianocardoso/Desktop/wandora/bin/Wandora.command: line 20: cd: ../build: No such file or directory


I did change the parameter to
cd `dirname $0`

looks like goes through but i receive the error message
Error: Could not find or load main class org.wandora.application.Wandora

Please could someone help-me?

Re: MacOS X - starting error

PostPosted: Mon Jul 17, 2017 4:43 pm
by akivela
Hello Softability

Oh. It looks like the quote characters have been changed to smart-quote characters. Instead of cd $(dirname “$0”) use command line

Code: Select all
cd $(dirname "$0")


Then your Wandora.sh may look like

Code: Select all
#!/bin/bash
echo "*****************************************************"
echo "***   WANDORA - THE KNOWLEDGE MANAGEMENT STUDIO   ***"
echo "***     Copyright (C) 2004-2017 Wandora Team      ***"
echo "***              http://wandora.org               ***"
echo "*****************************************************"
echo "Xms750m Xmx1000m"

WANDORALIB=

cd $(dirname "$0")

source SetClasspath.sh
source SetR.sh
source SetProcessing.sh
source SetTesseract.sh

cd ..
if [ "$(uname)" == "Darwin" ]; then
  java -Xms750m -Xmx1000m -Xdock:icon=resources/gui/appicon/wandora.icns -Djava.library.path=$WANDORALIB -classpath $WANDORACLASSES org.wandora.application.Wandora $1
else
  java -Xms750m -Xmx1000m -Djava.library.path=$WANDORALIB -classpath $WANDORACLASSES org.wandora.application.Wandora $1
fi

Re: MacOS X - starting error

PostPosted: Mon Jul 17, 2017 5:15 pm
by akivela
Yet another note: Mac's TextEdit application changes quote characters to smart-quotes by default. To turn off the default behavior, select menu option Edit > Substitutions > Smart Quotes.

Re: MacOS X - starting error

PostPosted: Thu Dec 14, 2017 4:55 pm
by leona
I am trying to run Wandora on macOS High Sierra (10.13.2). The error message I get is: The file “Wandora.command” could not be executed because you do not have appropriate access privileges. Here is what my Wandora.command looks like:

Code: Select all
#!/bin/bash
echo "*****************************************************"
echo "***   WANDORA - THE KNOWLEDGE MANAGEMENT STUDIO   ***"
echo "***     Copyright (C) 2004-2017 Wandora Team      ***"
echo "***              http://wandora.org               ***"
echo "*****************************************************"
echo "Xms750m Xmx1000m"

WANDORALIB=

cd $(dirname "$0")

source SetClasspath.sh
source SetR.sh
source SetProcessing.sh
source SetTesseract.sh

cd ..
if [ "$(uname)" == "Darwin" ]; then
  java -Xms750m -Xmx1000m -Xdock:icon=resources/gui/appicon/wandora.icns -Djava.library.path=$WANDORALIB -classpath $WANDORACLASSES org.wandora.application.Wandora $1
else
  java -Xms750m -Xmx1000m -Djava.library.path=$WANDORALIB -classpath $WANDORACLASSES org.wandora.application.Wandora $1
fi

Re: MacOS X - starting error

PostPosted: Fri Dec 15, 2017 6:28 pm
by akivela
Hello Leona

Change the execution rights of the file "Wandora.command". Start the Terminal application. Change your current directory to the Wandora's "bin" directory and enter command:

Code: Select all
chmod a+x Wandora.command


You'll find more documentation about running the Wandora application here: http://wandora.org/wiki/Running_Wandora

Kind Regards,
Aki