From: Markus Heller <hellerm2@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: ditaa set-up on windows box
Date: Wed, 29 Sep 2010 11:01:41 -0700 [thread overview]
Message-ID: <0vr5gcfmyi.fsf@gmail.com> (raw)
In-Reply-To: 877hi4cufq.fsf@Rainer.invalid
Achim Gratz <Stromeko@nexgo.de> writes:
> Markus Heller <hellerm2@gmail.com> writes:
>> The root of all evil is *NOT* org-mode, but rather the fact that my OS
>> (windoze XP) insists on finding an outdated Java version (1.4). I have
>> installed the Java 1.6 runtime environment, and as far as I can tell, all
>> my environment variables contain only pointers to this installation, yet
>> java -version shows 1.4.2_03.
>
> That should be fixable by removing the part of the %PATH% environment
> variable that contains the 1.4.2 java executable. Once you know where
> that is, it should suggest itself which software is responsible for this.
>
>> I just figured out that this old installation is connected to another
>> piece of software, which is annoying as hell in itself.
>
> You confirmed this or is this just a guess? I'd run the "Software"
> panel and check if the old JRE is still listed there, if yes that's a
> way to do a clean uninstall. If not you can still use the Java control
> panel from the new JRE and disable the old one (it should find and list
> all JRE on your computer if you let it do a search). I don't think this
> takes care of the %PATH%, which can most likely be (un)set from the
> "System" control panel.
I removed the old Java version from %PATH%, and now java -version gives
the correct version (1.6.0_21).
I can use ditaa on the command line:
H:\org\test>java -jar ditaa.jar ditaa_test.txt
DiTAA version 0.8, Copyright (C) 2004--2009 Efstathios Sideris
Running with options:
Reading file: ditaa_test.txt
Locale: en_US
Dialog.bold
Rendering to file: ditaa_test_4.png
Done in 0sec
But when I try to run the same ditaa code from within org-mode using
babel, I get error messages:
java.lang.UnsupportedClassVersionError: org/stathissideris/ascii2image/core/CommandLineConverter (Unsupported major.minor version 49.0)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$100(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
Exception in thread "main"
Here's my source:
#+begin_src ditaa :file folder_structure.png :cmdline -r -s 0.8
+---$COMPOUND_REGISTRY/
|
|--- 1H/
|
|--- 13C/
|
+--- MS/
#+end_src
#+results:
[[file:folder_structure.png]]
And my babel set up from my .emacs:
(setq org-ditaa-jar-path "~/.emacs.d/org-mode/contrib/scripts/ditaa.jar")
(add-hook 'org-babel-after-execute-hook 'org-display-inline-images)
(org-babel-do-load-languages
'org-babel-load-languages
'((emacs-lisp . t)
(ditaa . t)))
Am I still missing something here?
Thanks and Cheers
Markus
next prev parent reply other threads:[~2010-09-29 18:02 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-09-24 23:41 ditaa set-up on windows box Markus Heller
2010-09-25 3:50 ` John Hendy
2010-09-25 13:54 ` Sebastian Rose
2010-09-27 16:55 ` Markus Heller
2010-09-27 17:08 ` Sebastian Rose
2010-09-27 17:11 ` Sebastian Rose
2010-09-27 17:28 ` Markus Heller
2010-09-27 21:04 ` Sebastian Rose
2010-09-27 22:04 ` John Hendy
2010-09-28 17:00 ` Achim Gratz
2010-09-29 16:04 ` Carsten Dominik
2010-09-29 17:27 ` Markus Heller
2010-09-29 17:48 ` Achim Gratz
2010-09-29 18:01 ` Markus Heller [this message]
2010-09-29 18:17 ` Achim Gratz
2010-09-29 20:15 ` Markus Heller
2010-09-25 13:56 ` AW: " Martin Stemplinger
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=0vr5gcfmyi.fsf@gmail.com \
--to=hellerm2@gmail.com \
--cc=emacs-orgmode@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.