all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: John Burke <jb@jb.local>
To: help-gnu-emacs@gnu.org
Subject: Re: java classpath error in xsl-mode
Date: Mon, 05 Nov 2007 17:03:17 -0800	[thread overview]
Message-ID: <m27ikw9odm.fsf@jb.local.i-did-not-set--mail-host-address--so-tickle-me> (raw)
In-Reply-To: mailman.2342.1192863731.18990.help-gnu-emacs@gnu.org

Kevin Rodgers <kevin.d.rodgers@gmail.com> writes:

> John Burke wrote:
>> For some reason that's beyond me, when I attempt to transform an xml
>> file using an xsl transform (using xslide), I get the following
>> error:
>>
>> Exception in thread "main" java.lang.NoClassDefFoundError:
>> com/jclark/xsl/sax/Driver
>>
>> Now, the odd thing is that if I execute the *same* command from a
>> shell it works fine.  (and FWIW, I use xemacs on linux with a
>> similar config and it also works just fine.)  I have a sinking
>> suspicion that it's related to my platform:  Mac OSX.  -- those
>> forward slashes don't look right, and the command definitely was
>> ...com.jclark.xsl.sax.Driver...)
>
> How are you starting emacs?  Perhaps it doesn't have some necessary
> environment variables set -- you could test that theory by starting
> emacs from the shell where the command works.


Yep.  That was true. Typing “printenv” revealed my CLASSPATH simply
was not set in Emacs...

Tho I heard that applications needed envars set in
~/.MacOS/environment.plist, this also doesn’t work w/ Emacs.

Turns out the fix was quite simple: simply declare the environment
variable in .emacs thusly:

(setenv “CLASSPATH”
“/usr/local/xt/xt.jar:/usr/local/xt/sax.jar:/usr/local/xp.jar”)

Thx,

jb

  parent reply	other threads:[~2007-11-06  1:03 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-10-15 21:43 java classpath error in xsl-mode John Burke
2007-10-20  7:01 ` Kevin Rodgers
     [not found] ` <mailman.2342.1192863731.18990.help-gnu-emacs@gnu.org>
2007-11-06  1:03   ` John Burke [this message]
2007-11-06 10:06     ` Peter Dyballa

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m27ikw9odm.fsf@jb.local.i-did-not-set--mail-host-address--so-tickle-me \
    --to=jb@jb.local \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.