Page 1 of 1

SWT sample - cilck on "Basic feature" generates er

Posted: Mon May 11, 2009 9:25 am
by 8440512
When I run TeeChartSWT.java as java application from eclipse and click "Basic feature" option from tree view (left), I get below given error. Kindly advice me.
-------------
Exception in thread "main" java.lang.UnsupportedClassVersionError: Bad version number in .class file
at java.lang.ClassLoader.defineClass1(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)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at TeeChartSWT.showSamplePane(TeeChartSWT.java:516)
at TeeChartSWT.access$4(TeeChartSWT.java:506)
at TeeChartSWT$2.widgetSelected(TeeChartSWT.java:375)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:228)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3823)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3422)
at TeeChartSWT.run(TeeChartSWT.java:72)
at TeeChartSWT.main(TeeChartSWT.java:553)

Posted: Tue May 12, 2009 9:16 am
by Marc
Hello,

I have been unable to reproduce the error taking the following steps:

- Open Eclipse
- Select 'New Java Project'
- 'Create project from existing source'
- selecting the folder: 'Examples\SWT\Features'
- Build and run of project.
- Clicking on 'Basic features' shows page with Chart and executable code.

Please confirm the version of TeeChart that you are using (release.txt file in the TeeChart installation folder). Is this the registered or eval version?

With thanks.
Regards,
Marc Meumann

Posted: Wed May 13, 2009 9:15 am
by 8440512
I followed your instruction. Created new project and run as "Java application". Again when I select the "Welcome"->"Basic feature", application is vanishing and throwing same error.

Below is the version info.
------------------------------------------
Release.txt
==========================================================
TeeChart for Java version 2

Copyright (c) 2006-2008
by Steema Software SL
All Rights Reserved.

http://support.steema.com
http://www.steema.com
email: general: info@steema.com
support forum: http://www.teechart.net/support/index.php

==========================================================
Release Notes Notes 22nd January 2008
First Release version 2
Build 2.0.0.771

Posted: Wed May 13, 2009 9:21 am
by narcis
Hi D486909,

There's a new build from 27th April 2009. Can you please check if it solves the problem at your end?

Thanks in advance.