From mboxrd@z Thu Jan 1 00:00:00 1970 From: Markus Heller Subject: Re: ditaa set-up on windows box Date: Wed, 29 Sep 2010 11:01:41 -0700 Message-ID: <0vr5gcfmyi.fsf@gmail.com> References: <0vhbher9pp.fsf@gmail.com> <87r5gi6i8m.fsf@gmx.de> <0vr5gfceil.fsf@gmail.com> <87eicfdscx.fsf@gmx.de> <0vmxr3cd0b.fsf@gmail.com> <87y6alvm4g.fsf@Rainer.invalid> <0vvd5ofoju.fsf@gmail.com> <877hi4cufq.fsf@Rainer.invalid> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from [140.186.70.92] (port=44127 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P10yf-0002FW-UN for emacs-orgmode@gnu.org; Wed, 29 Sep 2010 14:02:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1P10ye-0001XJ-0Y for emacs-orgmode@gnu.org; Wed, 29 Sep 2010 14:02:01 -0400 Received: from lo.gmane.org ([80.91.229.12]:46793) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1P10yd-0001Wg-1Y for emacs-orgmode@gnu.org; Wed, 29 Sep 2010 14:01:59 -0400 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1P10yW-0002TW-Hm for emacs-orgmode@gnu.org; Wed, 29 Sep 2010 20:01:52 +0200 Received: from 142.103.191.98 ([142.103.191.98]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 29 Sep 2010 20:01:52 +0200 Received: from hellerm2 by 142.103.191.98 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 29 Sep 2010 20:01:52 +0200 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Achim Gratz writes: > Markus Heller 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