Running Wandora

Forum is for miscellaneous user help requests.

Running Wandora

Postby vishyswap » Wed Jun 15, 2016 7:15 pm

Hi Wandora Team
I am new to Wandora and having difficulty running Wandora shell scripts in Linux. My current directory is bin and executing the following lines results in could not find or load main class. For you convenience I pasting linux execution and error below.

[bigdata@AZULVTBDSLAVE01 bin]$ ./Wnadora.sh
-bash: ./Wnadora.sh: No such file or directory
[bigdata@AZULVTBDSLAVE01 bin]$ ./Wandora.sh
*****************************************************
*** WANDORA - THE KNOWLEDGE MANAGEMENT STUDIO ***
*** Copyright (C) 2004-2016 Wandora Team ***
*** http://wandora.org ***
*****************************************************
Xms750m Xmx1000m
Error: Could not find or load main class org.wandora.application.Wandora

Can someone please help.
vishyswap
 
Posts: 3
Joined: Tue Jun 07, 2016 7:32 pm

Re: Running Wandora

Postby akivela » Thu Jun 16, 2016 10:31 pm

Hello Vishyswap

Did you a fresh install or did you install over an old Wandora installation?

Wandora version 2016-05-10 contains wandora.jar inside lib folder instead of separate java class files. Please check that your Wandora application contains wandora.jar inside the lib folder. Please check also that file bin/SetClasspath.sh contains line

Code: Select all
WANDORACLASSES=lib/wandora.jar


If you can't locate the wandora.jar or you can't find the line in file bin/SetClasspath.sh, please download fresh Wandora distribution package and unpack the package into an empty directory. If both checks were positive, check your Java version. Wandora requires Java version 8.

Hoping these tips solve your problems.

Kind Regards,
Aki / Wandora Team
akivela
Site Admin
 
Posts: 260
Joined: Tue Sep 18, 2007 10:20 am
Location: Helsinki, Finland

Re: Running Wandora

Postby vishyswap » Tue Jun 28, 2016 11:53 pm

Hello akivela

I have the Wandora.jar in the lib folder and the SetClasspath.sh has the line WANDORACLASSES=lib/wandora.jar. I tried executing again I get the following errors.

[bigdata@AZULVTBDSLAVE01 wandora]$ cd bin
[bigdata@AZULVTBDSLAVE01 bin]$ dir
SetClasspath.bat SetProcessing.bat SetR.bat SetTesseract.bat Wandora-16g.bat Wandora-4g.bat Wandora-8g.bat Wandora.bat
SetClasspath.sh SetProcessing.sh SetR.sh SetTesseract.sh Wandora-16g.sh Wandora-4g.sh Wandora-8g.sh Wandora.sh
[bigdata@AZULVTBDSLAVE01 bin]$ chmod a+x Wandora.sh
[bigdata@AZULVTBDSLAVE01 bin]$ ./Wandora.sh
*****************************************************
*** WANDORA - THE KNOWLEDGE MANAGEMENT STUDIO ***
*** Copyright (C) 2004-2016 Wandora Team ***
*** http://wandora.org ***
*****************************************************
Xms750m Xmx1000m
java.awt.HeadlessException:
No X11 DISPLAY variable was set, but this program performed an operation which requires it.
at sun.awt.HeadlessToolkit.getMenuShortcutKeyMask(HeadlessToolkit.java:236)
at org.wandora.application.gui.UIConstants.initializeGUI(UIConstants.java:181)
at org.wandora.application.Wandora.main(Wandora.java:2276)
Exception in thread "main" java.awt.HeadlessException:
No X11 DISPLAY variable was set, but this program performed an operation which requires it.
at java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment.java:207)
at java.awt.Window.<init>(Window.java:536)
at java.awt.Frame.<init>(Frame.java:420)
at java.awt.Frame.<init>(Frame.java:385)
at javax.swing.SwingUtilities$SharedOwnerFrame.<init>(SwingUtilities.java:1758)
at javax.swing.SwingUtilities.getSharedOwnerFrame(SwingUtilities.java:1833)
at javax.swing.JWindow.<init>(JWindow.java:187)
at javax.swing.JWindow.<init>(JWindow.java:139)
at org.wandora.application.gui.SplashWindow.<init>(SplashWindow.java:45)
at org.wandora.application.Wandora.main(Wandora.java:2277)
[bigdata@AZULVTBDSLAVE01 bin]$
vishyswap
 
Posts: 3
Joined: Tue Jun 07, 2016 7:32 pm

Re: Running Wandora

Postby akivela » Wed Jun 29, 2016 9:23 pm

Hello

It looks like you have a Linux without the X server or you have somehow disabled the X server or your Java version doesn't recognize the X server. Wandora has a graphical user interface and requires the X server in Linux to work properly. Either you can

  • Install the X server into your Linux (or fix the X server in your Linux).
  • Install and use Wandora on another computer that has the requisites for the graphical user interface.
  • Try Java's headless mode by adding a command line parameter -Djava.awt.headless=true just after the java command in the Wandora.sh. Java's headless mode is described in detail here: http://www.oracle.com/technetwork/articles/javase/headless-136834.html . Google also finds many useful resources with search words java headless linux. However, I have a gut feeling that the headless mode is not enough for Wandora.

Kind Regards,
Aki
akivela
Site Admin
 
Posts: 260
Joined: Tue Sep 18, 2007 10:20 am
Location: Helsinki, Finland

Re: Running Wandora

Postby vishyswap » Thu Jun 30, 2016 12:53 am

Thanks Akivela
vishyswap
 
Posts: 3
Joined: Tue Jun 07, 2016 7:32 pm

Re: Running Wandora

Postby akivela » Thu Jun 30, 2016 8:12 pm

Just one more note. I wasn't 100% right saying Wandora requires and has graphical user interface. It is possible to install Wandora as a servlet in the Tomcat server. This servlet Wandora doesn't require X server and has no graphical user interface. It just serves WWW pages (and other documents). Naturally all Wandora application features are not available in the servlet Wandora. In fact, the servlet Wandora can be used to view and browse topic maps but nothing much more.

Kind Regards,
Aki
akivela
Site Admin
 
Posts: 260
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 48 guests

cron