Re: [libreoffice-users] Java Error while updating Language Tool

2013-12-08 Thread Stephan Bergmann

On 12/08/2013 04:22 AM, Gabriel Risterucci wrote:

2013/12/8 CVAlkan fobe...@enteract.com


Hi:

I'm using LibreOffice Writer Version: 4.1.3.2 Build ID:
70feb7d99726f064edab4605a8ab840c50ec57a under 64 bit Ubuntu 12.04 LTS.

I received a notification that an update was available for the Language
Tool, so I clicked and, for the first time ever, it actually downloaded
something, but the installation failed with the following message:

==


[snip]​​


java.lang.UnsupportedClassVersionError: org/languagetool/openoffice/Main :
Unsupported major.minor version 51.0


[snap]​​



The extension will not be installed.
==

In Options: LibreOffice: Advanced, I show two Java Runtime Environments
installed:
(selected): Sun Microsystems 1.6.0_27
(not selected): Oracle Corporation 1.7.0_25

What do I do? I don't want to break anything else that uses Java and
everything else seems to work.



​Here's your problem. It seems like the languagetool extension is built
against Java7 (which is the currently recommended version anyway), and your
installation of Libreoffice use Java6.
(for more informations, ​see
http://en.wikipedia.org/wiki/Java_class_file#General_layout, which gives a
helpful list of major version for java class files amongst other things).


And http://extensions.libreoffice.org/extension-center/languagetool 
states that version 2.3 of LanguageTool requires Java 7 now.  So it is 
likely that the code actually makes use of features only available in 
Java 7, and was not only by accident compiled without a --target=6 switch.


Though, of course, the rather cryptic error message when trying to 
install it is not optimal...


Stephan

--
To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org
Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://listarchives.libreoffice.org/global/users/
All messages sent to this list will be publicly archived and cannot be deleted


[libreoffice-users] Java Error while updating Language Tool

2013-12-07 Thread CVAlkan
Hi:

I'm using LibreOffice Writer Version: 4.1.3.2 Build ID:
70feb7d99726f064edab4605a8ab840c50ec57a under 64 bit Ubuntu 12.04 LTS.

I received a notification that an update was available for the Language
Tool, so I clicked and, for the first time ever, it actually downloaded
something, but the installation failed with the following message:

==
Error while installing extension LanguageTool. Open source language checker.
The error message is: [jni_uno bridge error] UNO calling Java method
writeRegistryInfo: non-UNO exception occurred:
java.lang.UnsupportedClassVersionError: org/languagetool/openoffice/Main :
Unsupported major.minor version 51.0
java stack trace:
java.lang.UnsupportedClassVersionError: org/languagetool/openoffice/Main :
Unsupported major.minor version 51.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:643)
at 
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:277)
at java.net.URLClassLoader.access$000(URLClassLoader.java:73)
at java.net.URLClassLoader$1.run(URLClassLoader.java:212)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
at java.lang.ClassLoader.loadClass(ClassLoader.java:323)
at java.lang.ClassLoader.loadClass(ClassLoader.java:316)
at java.net.FactoryURLClassLoader.loadClass(URLClassLoader.java:615)
at java.lang.ClassLoader.loadClass(ClassLoader.java:268)
at
com.sun.star.comp.loader.RegistrationClassFinder.find(RegistrationClassFinder.java:55)
at
com.sun.star.comp.loader.JavaLoader.writeRegistryInfo(JavaLoader.java:399)

The extension will not be installed.
==

In Options: LibreOffice: Advanced, I show two Java Runtime Environments
installed:
(selected): Sun Microsystems 1.6.0_27
(not selected): Oracle Corporation 1.7.0_25

What do I do? I don't want to break anything else that uses Java and
everything else seems to work.

Thanks for any thoughts.




--
View this message in context: 
http://nabble.documentfoundation.org/Java-Error-while-updating-Language-Tool-tp4087156.html
Sent from the Users mailing list archive at Nabble.com.

-- 
To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org
Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://listarchives.libreoffice.org/global/users/
All messages sent to this list will be publicly archived and cannot be deleted



Re: [libreoffice-users] Java Error while updating Language Tool

2013-12-07 Thread Gabriel Risterucci
2013/12/8 CVAlkan fobe...@enteract.com

 Hi:

 I'm using LibreOffice Writer Version: 4.1.3.2 Build ID:
 70feb7d99726f064edab4605a8ab840c50ec57a under 64 bit Ubuntu 12.04 LTS.

 I received a notification that an update was available for the Language
 Tool, so I clicked and, for the first time ever, it actually downloaded
 something, but the installation failed with the following message:

 ==

[snip]​​

 java.lang.UnsupportedClassVersionError: org/languagetool/openoffice/Main :
 Unsupported major.minor version 51.0

[snap]​​


 The extension will not be installed.
 ==

 In Options: LibreOffice: Advanced, I show two Java Runtime Environments
 installed:
 (selected): Sun Microsystems 1.6.0_27
 (not selected): Oracle Corporation 1.7.0_25

 What do I do? I don't want to break anything else that uses Java and
 everything else seems to work.


​Here's your problem. It seems like the languagetool extension is built
against Java7 (which is the currently recommended version anyway), and your
installation of Libreoffice use Java6.
(for more informations, ​see
http://en.wikipedia.org/wiki/Java_class_file#General_layout, which gives a
helpful list of major version for java class files amongst other things).

As for your issue, switching to Java7 is likely to fix it, and unlikely to
break anything. Although mishap can happen, Java is usually quite nice with
retrocompatibility (in case you have anything in LibreOffice that actually
use Java beside languagetool...).

-- 
To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org
Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://listarchives.libreoffice.org/global/users/
All messages sent to this list will be publicly archived and cannot be deleted