* java classpath error in xsl-mode
@ 2007-10-15 21:43 John Burke
2007-10-20 7:01 ` Kevin Rodgers
[not found] ` <mailman.2342.1192863731.18990.help-gnu-emacs@gnu.org>
0 siblings, 2 replies; 4+ messages in thread
From: John Burke @ 2007-10-15 21:43 UTC (permalink / raw)
To: help-gnu-emacs
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...)
jb
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: java classpath error in xsl-mode
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>
1 sibling, 0 replies; 4+ messages in thread
From: Kevin Rodgers @ 2007-10-20 7:01 UTC (permalink / raw)
To: help-gnu-emacs
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.
--
Kevin Rodgers
Denver, Colorado, USA
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: java classpath error in xsl-mode
[not found] ` <mailman.2342.1192863731.18990.help-gnu-emacs@gnu.org>
@ 2007-11-06 1:03 ` John Burke
2007-11-06 10:06 ` Peter Dyballa
0 siblings, 1 reply; 4+ messages in thread
From: John Burke @ 2007-11-06 1:03 UTC (permalink / raw)
To: help-gnu-emacs
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: java classpath error in xsl-mode
2007-11-06 1:03 ` John Burke
@ 2007-11-06 10:06 ` Peter Dyballa
0 siblings, 0 replies; 4+ messages in thread
From: Peter Dyballa @ 2007-11-06 10:06 UTC (permalink / raw)
To: John Burke; +Cc: help-gnu-emacs
Am 06.11.2007 um 02:03 schrieb John Burke:
> Tho I heard that applications needed envars set in
> ~/.MacOS/environment.plist, this also doesn’t work w/ Emacs.
This mechanism works very well on Mac OS X. The problem is that you
need to log off and in again to make it work. (Make a test with
another account and fast user switching enabled as in Tiger!)
This file is read at login time and its settings are put into the
process' environment. Each other process created from this one
inherits these variables. And they do go down to GNU Emacs (the X
client), as they also reach Carbon Emacs or Emacs.app, and exist in
Terminal.
--
Greetings
~ O
Pete ~~_\\_/%
~ O o
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2007-11-06 10:06 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2007-11-06 10:06 ` Peter Dyballa
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.