W3C home > Mailing lists > Public > xproc-dev@w3.org > October 2015

Re: java exception running calabash

From: Nic Gibson <nicg@corbas.co.uk>
Date: Wed, 7 Oct 2015 16:44:30 +0100
Cc: "xproc-dev@w3.org" <xproc-dev@w3.org>
Message-Id: <F6AC662C-0551-4CCA-8703-796C633C6556@corbas.co.uk>
To: Norman Walsh <ndw@nwalsh.com>

> On 7 Oct 2015, at 16:18, Norman Walsh <ndw@nwalsh.com> wrote:
> 
> Nic Gibson <nicg@corbas.co.uk> writes:
>> I’ve just set up a new mac, installed java, installed saxon,
>> calabash, etc. And I’m now getting a java exception on running
>> calabash. I’m by no means a java expert so I thought I would ask for
>> your wisdom. I’ve got a stock install of xmlcalabash. I’ve moved the
>> saxon EE jars out of the way so that they can’t be the issue.
>> Calabash is the most recent version (1.1.9-96).
>> 
>> I’ve got two java versions installed:
>> 
>> ➜  java git:(master) /usr/libexec/java_home -V
>> Matching Java Virtual Machines (2):
>>    1.8.0_45, x86_64:	"Java SE 8"	/Library/Java/JavaVirtualMachines/jdk1.8.0_45.jdk/Contents/Home
>>    1.7.0_79, x86_64:	"Java SE 7"	/Library/Java/JavaVirtualMachines/jdk1.7.0_79.jdk/Contents/Home
>> 
>> /Library/Java/JavaVirtualMachines/jdk1.8.0_45.jdk/Contents/Home
>> 
>> I’ve tried both but whichever I run I get this exception:
> 
> How are you running XML Calabash? What's on your class path?
> 
>> ➜  java git:(master) java  com.xmlcalabash.drivers.Main
>> Error: A JNI error has occurred, please check your installation and try again
>> Exception in thread "main" java.lang.NoClassDefFoundError: net/sf/saxon/s9api/SaxonApiException
>> 	at java.lang.Class.getDeclaredMethods0(Native Method)
>> 	at java.lang.Class.privateGetDeclaredMethods(Class.java:2701)
>> 	at java.lang.Class.privateGetMethodRecursive(Class.java:3048)
>> 	at java.lang.Class.getMethod0(Class.java:3018)
>> 	at java.lang.Class.getMethod(Class.java:1784)
>> 	at sun.launcher.LauncherHelper.validateMainClass(LauncherHelper.java:544)
>> 	at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:526)
>> Caused by: java.lang.ClassNotFoundException: net.sf.saxon.s9api.SaxonApiException
>> 	at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
>> 	at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
>> 	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
>> 	at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
>> 	... 7 more
>> 
>> Saxon itself runs just fine. 
>> 
>> Can anyone suggest if this might be a java issue or a calabash issue? I’m running OS X 10.11 (El Capitan). Anyone have it running on that?
> 
>                                        Be seeing you,
>                                          norm
> 
> -- 
> Norman Walsh
> Lead Engineer
> MarkLogic Corporation
> Phone: +1 512 761 6676
> www.marklogic.com

Right now, nothing but:

➜  java git:(master) echo $CLASSPATH
/usr/local/share/java/xmlcalabash-1.1.9-96.jar

nic
Received on Wednesday, 7 October 2015 15:45:00 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 October 2015 15:45:00 UTC