Re: [Orgmode] Re: ditaa set-up on windows box

2010-09-29 Thread Carsten Dominik

Hi everyone,

once this is resolved, I believe this would be important to be added  
to the FAQ.

Can someone please take care of this?

Thanks!

- Carsten

On Sep 28, 2010, at 7:00 PM, Achim Gratz wrote:


John Hendy  writes:

Can you check your CLASSPATH environment variable? Mine is (not sure
if it's correct, but it works...):

.;C:\Program Files\Java\jre6\lib\ext\QTJava.zip


Unset this variable and try again.  The default CLASSPATH is simply  
".",

but you don't need to set the environment variable then.

http://download.oracle.com/javase/6/docs/technotes/tools/windows/classpath.html

BTW, you can run 'java -verbose' to get more output that may show you
where the problem really is (like looking for files in the wrong place
or something like that).


Achim.
--
+<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+

Waldorf MIDI Implementation & additional documentation:
http://Synth.Stromeko.net/Downloads.html#WaldorfDocs


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode



___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Re: ditaa set-up on windows box

2010-09-27 Thread John Hendy
Markus,


Can you check your CLASSPATH environment variable? Mine is (not sure if it's
correct, but it works...):

.;C:\Program Files\Java\jre6\lib\ext\QTJava.zip

Do you have one set?

Is this any help?
http://download.oracle.com/javase/tutorial/essential/environment/paths.html

This is quite odd and makes me wonder if it's Java related. Like a corrupt
installation somehow.



John

On Mon, Sep 27, 2010 at 12:28 PM, Markus Heller  wrote:

> Sebastian Rose  writes:
>
> > Markus Heller  writes:
> >> C:\Documents and Settings\mheller>java -jar C:\Documents and
> Settings\mheller\.e
> >> macs.d\org-mode\contrib\scripts\ditaa.jar --help
> >> Exception in thread "main" java.util.zip.ZipException: The system cannot
> find th
> >> e file specified
> >> at java.util.zip.ZipFile.open(Native Method)
> >> at java.util.zip.ZipFile.(Unknown Source)
> >> at java.util.jar.JarFile.(Unknown Source)
> >> at java.util.jar.JarFile.(Unknown Source)
> >
> >
> > Oh - or could the spaces in the path trigger that problem?
> >
> > You could try to put ditaa.jar to
> >
> >C:\ditaa.jar
> >
> > and retry.
> >
> > That would move the error to Org-mode.
>
> I did this, and now I get:
>
> C:\>java -jar ditaa.jar --help
> Exception in thread "main" java.lang.UnsupportedClassVersionError:
> org/stathissi
> deris/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)
>
> And neither java.util.zip nor java.util.jar exist on my system, although
> I've just re-installed the Java Runtime Environment jre1.6.0_07.
>
> I wish I was using a Mac or Linux ...
>
>
>
> ___
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Re: ditaa set-up on windows box

2010-09-27 Thread Sebastian Rose
Markus Heller  writes:
> Sebastian Rose  writes:
>
>> Markus Heller  writes:
>>> C:\Documents and Settings\mheller>java -jar C:\Documents and 
>>> Settings\mheller\.e
>>> macs.d\org-mode\contrib\scripts\ditaa.jar --help
>>> Exception in thread "main" java.util.zip.ZipException: The system cannot 
>>> find th
>>> e file specified
>>> at java.util.zip.ZipFile.open(Native Method)
>>> at java.util.zip.ZipFile.(Unknown Source)
>>> at java.util.jar.JarFile.(Unknown Source)
>>> at java.util.jar.JarFile.(Unknown Source)
>>
>>
>> Oh - or could the spaces in the path trigger that problem?
>>
>> You could try to put ditaa.jar to 
>>
>>C:\ditaa.jar
>>
>> and retry.
>>
>> That would move the error to Org-mode.
>
> I did this, and now I get:
>
> C:\>java -jar ditaa.jar --help
> Exception in thread "main" java.lang.UnsupportedClassVersionError: 
> org/stathissi
> deris/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)


I guess you're still using Java 1.4 and some of the current ditaa
components require at least java 5 (v. 1.5).


> And neither java.util.zip nor java.util.jar exist on my system, although

java.util and java.zip live in rt.jar as most important packages do.

> I've just re-installed the Java Runtime Environment jre1.6.0_07.

Which is what I use here (java version "1.6.0_21")

But I guess

   java -version

will show an elder version.



  Sebastian

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Re: ditaa set-up on windows box

2010-09-27 Thread Sebastian Rose
Markus Heller  writes:
> C:\Documents and Settings\mheller>java -jar C:\Documents and 
> Settings\mheller\.e
> macs.d\org-mode\contrib\scripts\ditaa.jar --help
> Exception in thread "main" java.util.zip.ZipException: The system cannot find 
> th
> e file specified
> at java.util.zip.ZipFile.open(Native Method)
> at java.util.zip.ZipFile.(Unknown Source)
> at java.util.jar.JarFile.(Unknown Source)
> at java.util.jar.JarFile.(Unknown Source)


Oh - or could the spaces in the path trigger that problem?

You could try to put ditaa.jar to 

   C:\ditaa.jar

and retry.

That would move the error to Org-mode.



  Sebastian

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Re: ditaa set-up on windows box

2010-09-27 Thread Sebastian Rose
>> does `org-ditaa-jar-path' have the correct value?
>> You can find out this way:
>>
>> M-: org-ditaa-jar-path RET
>
> Yes, it does.
>
>> Can you execute 
>>
>>java -jar c:\path\to\ditaa.jar --help
>>
>> on the command line using the value of that variable? 
>
> Doing this gives the following error:
>
> C:\Documents and Settings\mheller>java -jar C:\Documents and 
> Settings\mheller\.e
> macs.d\org-mode\contrib\scripts\ditaa.jar --help
> Exception in thread "main" java.util.zip.ZipException: The system cannot find 
> th
> e file specified
> at java.util.zip.ZipFile.open(Native Method)
> at java.util.zip.ZipFile.(Unknown Source)
> at java.util.jar.JarFile.(Unknown Source)
> at java.util.jar.JarFile.(Unknown Source)


OK, it's a Java problem.

The packages java.util.zip and java.util.jar come with your Java
installation.  Jave couldn't access *.jar packages ortherwise.

Seems your Java is outdated.  An update/re-install will help.





HTH

  Sebastian

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode