MacOS X - starting error

Forum is for miscellaneous user help requests.

MacOS X - starting error

Postby JML » Sun Feb 24, 2013 1:26 pm

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)
JML
 
Posts: 2
Joined: Sun Feb 24, 2013 1:07 pm

Re: MacOS X - starting error

Postby akivela » Mon Feb 25, 2013 12:09 pm

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
akivela
Site Admin
 
Posts: 256
Joined: Tue Sep 18, 2007 10:20 am
Location: Helsinki, Finland

Re: MacOS X - starting error

Postby JML » Mon Feb 25, 2013 2:43 pm

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
JML
 
Posts: 2
Joined: Sun Feb 24, 2013 1:07 pm

Re: MacOS X - starting error

Postby akivela » Tue Apr 16, 2013 11:19 am

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
akivela
Site Admin
 
Posts: 256
Joined: Tue Sep 18, 2007 10:20 am
Location: Helsinki, Finland

Re: MacOS X - starting error

Postby softability » Sun Jul 16, 2017 3:40 pm

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?
softability
 
Posts: 1
Joined: Sun Apr 02, 2017 1:46 pm

Re: MacOS X - starting error

Postby akivela » Mon Jul 17, 2017 4:43 pm

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
akivela
Site Admin
 
Posts: 256
Joined: Tue Sep 18, 2007 10:20 am
Location: Helsinki, Finland

Re: MacOS X - starting error

Postby akivela » Mon Jul 17, 2017 5:15 pm

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.
akivela
Site Admin
 
Posts: 256
Joined: Tue Sep 18, 2007 10:20 am
Location: Helsinki, Finland

Re: MacOS X - starting error

Postby leona » Thu Dec 14, 2017 4:55 pm

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
leona
 
Posts: 1
Joined: Thu Dec 14, 2017 4:48 pm

Re: MacOS X - starting error

Postby akivela » Fri Dec 15, 2017 6:28 pm

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
akivela
Site Admin
 
Posts: 256
Joined: Tue Sep 18, 2007 10:20 am
Location: Helsinki, Finland


Return to How to... and problems

Who is online

Users browsing this forum: No registered users and 2 guests