Worked, but now get "The system tray is not supported"

1,022 views
Skip to first unread message

Robert Anderson

unread,
Jan 3, 2014, 12:45:38 PM1/3/14
to tomi...@googlegroups.com

I can't figure this one out.  I'm on RedHat Enterprise linux.

I used the jar successfully to use tomighty a couple of times.  I then went into the settings and changed something about being in the system tray.

Now when I try to start it, I get "Exception in thread "main" java.lang.UnsupportedOperationException: The system tray is not supported on the current platform."

the stack trace starts from:


        at org.tomighty.Tomighty.main(Tomighty.java:58)

So if I remove my settings it should work again, right?  Well, I removed .tomighty from my home dir, and restarted.  Same error!

Are there settings stored somewhere else possibly?  Otherwise I'm confused why it isn't returning the original behavior I saw the first time I started it.

Any help appreciated.

Celio Cidral Jr

unread,
Jan 4, 2014, 4:24:28 AM1/4/14
to tomi...@googlegroups.com
Hi Robert,

The .tomighty directory is the only place where settings are stored.  The strange thing is, since Tomighty used to work in your environment, a change in the settings should never cause that error.

Please send me the following info:

- Which desktop environment you are running (version included).
- Which version of Java is installed in your system.


Regards,
Célio


--
You received this message because you are subscribed to the Google Groups "Tomighty" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tomighty+u...@googlegroups.com.
To post to this group, send email to tomi...@googlegroups.com.
Visit this group at http://groups.google.com/group/tomighty.
For more options, visit https://groups.google.com/groups/opt_out.

Robert Anderson

unread,
Jan 6, 2014, 3:36:31 PM1/6/14
to tomi...@googlegroups.com
On Sat, Jan 4, 2014 at 1:24 AM, Celio Cidral Jr <cci...@gmail.com> wrote:
Hi Robert,

The .tomighty directory is the only place where settings are stored.  The strange thing is, since Tomighty used to work in your environment, a change in the settings should never cause that error.

Please send me the following info:

- Which desktop environment you are running (version included).

Gnome version 2.16.0
 
- Which version of Java is installed in your system.


 java version "1.6.0_45"
Java(TM) SE Runtime Environment (build 1.6.0_45-b06)
Java HotSpot(TM) 64-Bit Server VM (build 20.45-b01, mixed mode)

The stack trace:

Jan 6, 2014 12:35:57 PM org.tomighty.log.Log info
INFO: Loading messages for locale en_US
Jan 6, 2014 12:35:57 PM org.tomighty.log.Log info
INFO: Messages not available for locale en_US.

Exception in thread "main" java.lang.UnsupportedOperationException: The system tray is not supported on the current platform.
        at java.awt.SystemTray.getSystemTray(SystemTray.java:151)
        at org.tomighty.ui.tray.AwtTray.iconSize(AwtTray.java:28)
        at org.tomighty.resources.TrayIcons.tomato(TrayIcons.java:43)
        at org.tomighty.ui.TrayManager.initialize(TrayManager.java:63)
        at org.tomighty.ioc.Factory.create(Factory.java:45)
        at org.tomighty.ioc.Container.create(Container.java:61)
        at org.tomighty.ioc.Container.get(Container.java:50)
        at org.tomighty.ioc.Container.get(Container.java:43)
        at org.tomighty.Tomighty.main(Tomighty.java:58)


Thanks,
Bob

 


Regards,
Célio


Em 03/01/2014, à(s) 15:45, Robert Anderson <rander...@gmail.com> escreveu:


I can't figure this one out.  I'm on RedHat Enterprise linux.

I used the jar successfully to use tomighty a couple of times.  I then went into the settings and changed something about being in the system tray.

Now when I try to start it, I get "Exception in thread "main" java.lang.UnsupportedOperationException: The system tray is not supported on the current platform."

the stack trace starts from:


        at org.tomighty.Tomighty.main(Tomighty.java:58)

So if I remove my settings it should work again, right?  Well, I removed .tomighty from my home dir, and restarted.  Same error!

Are there settings stored somewhere else possibly?  Otherwise I'm confused why it isn't returning the original behavior I saw the first time I started it.

Any help appreciated.


--
You received this message because you are subscribed to the Google Groups "Tomighty" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tomighty+u...@googlegroups.com.

To post to this group, send email to tomi...@googlegroups.com.
Visit this group at http://groups.google.com/group/tomighty.
For more options, visit https://groups.google.com/groups/opt_out.

--
You received this message because you are subscribed to a topic in the Google Groups "Tomighty" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/tomighty/F8ZncP7nutk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tomighty+u...@googlegroups.com.

Célio

unread,
Jan 6, 2014, 6:54:08 PM1/6/14
to tomi...@googlegroups.com
Hi Robert,

I think the problem might be that the JVM is running in server mode in your machine, which means it's running headless (I'm not 100% sure about that though).  Oracle's JVM tries to guess which type of host system it's running on and then sets the run mode accordingly.  In your case the JVM determined that your system is a server machine, which seems to be incorrect, right?

Try running some other Java desktop application, like JDownloader for example.  If my guess is right, then the same problem should happen to any other Java desktop app as well.

Regards,
Célio



2014/1/6 Robert Anderson <r...@alumni.princeton.edu>

Robert Anderson

unread,
Jan 6, 2014, 7:11:42 PM1/6/14
to tomi...@googlegroups.com

Thanks for the help.

My machine is not headless, that's right.

JDownloader started up ok. 

I've been able to run under a VM, so if this issue proves difficult to figure out, I guess that's a workaround for me.

Bob

Reply all
Reply to author
Forward
0 new messages