Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#3 program crash

closed
Dan Mihai Ile
None
5
2007-10-28
2007-10-22
oc2pus
No

if the AWT_TOOLKIT environment variable is set to MToolkit the programm crashs with:

Exception in thread "main" org.eclipse.swt.SWTError: Not implemented (java.lang.reflect.InvocationTargetException)
at org.eclipse.swt.SWT.error(Unknown Source)
at org.eclipse.swt.SWT.error(Unknown Source)
at org.eclipse.swt.awt.SWT_AWT.new_Frame(Unknown Source)
at dialogs.FitImage.createCompositeAWT_SWT(FitImage.java:729)
at dialogs.FitImage.createCompositeImageArea(FitImage.java:569)
at dialogs.FitImage.createSShell(FitImage.java:545)
at dialogs.FitImage.<init>(FitImage.java:495)
at core.ProjectWindow.fitImage(ProjectWindow.java:201)
at core.ProjectWindow.readImage(ProjectWindow.java:240)
at core.ProjectWindow.<init>(ProjectWindow.java:181)
at core.MainWindow$4.widgetSelected(MainWindow.java:253)
at org.eclipse.swt.widgets.TypedListener.handleEvent(Unknown Source)
at org.eclipse.swt.widgets.EventTable.sendEvent(Unknown Source)
at org.eclipse.swt.widgets.Widget.sendEvent(Unknown Source)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Unknown Source)
at org.eclipse.swt.widgets.Display.readAndDispatch(Unknown Source)
at core.Loader.main(Loader.java:198)
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
... 15 more
Caused by: java.lang.ClassCastException: sun.awt.motif.MToolkit
at sun.awt.X11.XEmbeddedFrame.<init>(XEmbeddedFrame.java:31)
... 19 more

if the variable is unset the program works

Discussion

  • Dan Mihai Ile
    Dan Mihai Ile
    2007-10-27

    Logged In: YES
    user_id=1885786
    Originator: NO

    I can't verify this, it seems that for me it works, can't make it crash.
    Maybe i'm not testing right, can you provide a more specific test?
    with java version used, the way you set the environment variable, etc...

    And I would like to mention
    thank you for your interest
    in testing this application

     
  • Dan Mihai Ile
    Dan Mihai Ile
    2007-10-27

    • assigned_to: nobody --> mihai007
     
  • Dan Mihai Ile
    Dan Mihai Ile
    2007-10-28

    • status: open --> closed