FS#31410 - [tuxguitar] [swt] exception at start

Attached to Project: Community Packages
Opened by Thar (Thar) - Tuesday, 04 September 2012, 17:50 GMT
Last edited by Guillaume ALAUX (galaux) - Saturday, 08 September 2012, 11:27 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Sergej Pupykin (sergej)
Guillaume ALAUX (galaux)
Architecture x86_64
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Attempting to lanuch executable ends with following exception:

har@myhost ~> tuxguitar
Exception in thread "main" java.lang.UnsupportedClassVersionError: org/eclipse/swt/widgets/Control : Unsupported major.minor version 51.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:634)
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:321)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
at org.herac.tuxguitar.gui.TGMain.main(Unknown Source)

Additional info:
* tuxguitar 1.2-5
* openjdk6 6.b24_1.11.4-1
* config and/or log files etc.

Steps to reproduce:
Execute /usr/bin/tuxguitar
This task depends upon

Closed by  Guillaume ALAUX (galaux)
Saturday, 08 September 2012, 11:27 GMT
Reason for closing:  Fixed
Additional comments about closing:  Added compile flag "target=1.6". Fixed in 4.2-1
Comment by Sergej Pupykin (sergej) - Wednesday, 05 September 2012, 09:44 GMT
It is 3rd bug about swt ( FS#31335 ,  FS#30295 )

Guillaume, please consider changing swt dependencies to java7 only.
Comment by Guillaume ALAUX (galaux) - Wednesday, 05 September 2012, 17:47 GMT
Hi Sergej, sounds good. I will do that in a "-2" version.
Comment by Guillaume ALAUX (galaux) - Saturday, 08 September 2012, 11:27 GMT
Correction. As suggested in  FS#31460 , setting compile flag "target" to 1.6 solves your issue. Tested with openjdk6 and jre7-openjdk so setting back dependency on java>=6 for swt-4.2.

Loading...