Post Reply 
MinimWatch menu
23-03-2013, 14:11
Post: #1
MinimWatch menu
Hi Simon, I installed MinimWatch on a new Linux (Ubuntu 12.04) and now I don't get the 'button' in the toolbar any more and can only use the functionality through the terminal. I'd prefer the visual presentation. What is required to make sure the 'button' re-appears? The server has not changed, only the installation of Watch on this laptop. Cheers, Rene
Find all posts by this user
Quote this message in a reply
23-03-2013, 14:17
Post: #2
RE: MinimWatch menu
(23-03-2013 14:11)ReneZ Wrote:  Hi Simon, I installed MinimWatch on a new Linux (Ubuntu 12.04) and now I don't get the 'button' in the toolbar any more and can only use the functionality through the terminal. I'd prefer the visual presentation. What is required to make sure the 'button' re-appears? The server has not changed, only the installation of Watch on this laptop. Cheers, Rene

There is probably something wrong with your Java installation. Perhaps you have the "headless" version of Java installed. Did you install Java yourself, or was it preinstalled with Ubuntu?
Find all posts by this user
Quote this message in a reply
23-03-2013, 14:33
Post: #3
RE: MinimWatch menu
It was preinstalled. If you can direct me to the right version I'd be happy to install it, thanks!
Find all posts by this user
Quote this message in a reply
23-03-2013, 16:02
Post: #4
RE: MinimWatch menu
(23-03-2013 14:33)ReneZ Wrote:  It was preinstalled. If you can direct me to the right version I'd be happy to install it, thanks!

The preinstalled Java should be OK. I have the MinimWatch GUI running successfully on Ubuntu 12.04, and I don't think I reinstalled Java.

Please try the following:

1) Open a Terminal window

2) Change directory to the /data subdirectory of your MinimWatch installation

3) Type the command
java -jar ../lib/minimwatch.jar --debug

You'll see a lot of debug messages. Somewhere in there, you should see the following:

TrayView: creating tray icon
TrayView: classloader is org.jminim.core.ComponentClassLoader@xxxxxxx
TrayView: created tray icon

Do you see this output, or is there an error message instead of "TrayView: created tray icon"?
Find all posts by this user
Quote this message in a reply
23-03-2013, 17:50
Post: #5
RE: MinimWatch menu
(23-03-2013 16:02)simoncn Wrote:  
(23-03-2013 14:33)ReneZ Wrote:  It was preinstalled. If you can direct me to the right version I'd be happy to install it, thanks!

The preinstalled Java should be OK. I have the MinimWatch GUI running successfully on Ubuntu 12.04, and I don't think I reinstalled Java.

Please try the following:

1) Open a Terminal window

2) Change directory to the /data subdirectory of your MinimWatch installation

3) Type the command
java -jar ../lib/minimwatch.jar --debug

You'll see a lot of debug messages. Somewhere in there, you should see the following:

TrayView: creating tray icon
TrayView: classloader is org.jminim.core.ComponentClassLoader@xxxxxxx
TrayView: created tray icon

Do you see this output, or is there an error message instead of "TrayView: created tray icon"?

rene@Compaq-6910p:~$ cd /home/rene/Software/MinimWatch/minimwatch-0.63/data
rene@Compaq-6910p:~/Software/MinimWatch/minimwatch-0.63/data$ java -jar ../lib/minimwatch.jar --debugadded path location: .
added path location: file:/home/rene/Software/MinimWatch/minimwatch-0.63/lib/
added path location: /home/rene/Software/MinimWatch/minimwatch-0.63/lib/minimwatch.jar
added path location: /home/rene/Software/MinimWatch/minimwatch-0.63/lib/ohnet.jar
component classloader URL: file:/home/rene/Software/MinimWatch/minimwatch-0.63/data/./
component classloader URL: file:/home/rene/Software/MinimWatch/minimwatch-0.63/lib/
component classloader URL: file:/home/rene/Software/MinimWatch/minimwatch-0.63/lib/minimwatch.jar
component classloader URL: file:/home/rene/Software/MinimWatch/minimwatch-0.63/lib/ohnet.jar
Config file is /home/rene/Software/MinimWatch/minimwatch-0.63/data/./minimwatch.config
Properties file is null
Options from config file:
Options from properties file:
Options from command line:
WatchLauncher.endOptions: Adding default watch options
setProperty: compName=null propName=logLevel propValue=debug
setProperty: compName=null propName=logFile propValue=minimwatch.log
MinimWatch 0.63, Copyright © 2012 Simon Nash. All rights reserved.
creating component: --context
Context: setting property context0.type to value org.jminim.core.ContextImpl
creating component: --start type=com.minimserver.watch.RemoteWatch name=minimwatch
Context: setting property minimwatch.type to value com.minimserver.watch.RemoteWatch
Context: setting property minimwatch.name to value minimwatch
Context: setting property consoleContext.type to value org.jminim.core.ContextImpl
Context: setting property consoleContext.name to value consoleContext
Context: setting property console.name to value console
starting context consoleContext
>>> EVENT >>> contextStarting: consoleContext
starting component console in context consoleContext
>>> EVENT >>> componentStarting: console
started component console in context consoleContext
>>> EVENT >>> componentRunning: console
started context consoleContext
>>> EVENT >>> contextRunning: consoleContext
Context: setting property runtimeContext.type to value org.jminim.core.ContextImpl
Context: setting property runtimeContext.name to value runtimeContext
Context: setting property runtime.name to value runtime
starting context runtimeContext
>>> EVENT >>> contextStarting: runtimeContext
starting component runtime in context runtimeContext
>>> EVENT >>> componentStarting: runtime
started component runtime in context runtimeContext
>>> EVENT >>> componentRunning: runtime
started context runtimeContext
>>> EVENT >>> contextRunning: runtimeContext
ConsoleService: listenerAdded event
starting context rootContext
starting context context0
>>> EVENT >>> contextStarting: context0
ConsoleService: contextStarting event for context0
starting component minimwatch in context context0
>>> EVENT >>> componentStarting: minimwatch
starting RemoteWatch
Context: setting property observerContext.type to value org.jminim.core.ContextImpl
Context: setting property observerContext.name to value observerContext
Context: setting property observer.name to value observer
starting context observerContext
>>> EVENT >>> contextStarting: observerContext
ConsoleService: contextStarting event for observerContext
starting component observer in context observerContext
>>> EVENT >>> componentStarting: observer
starting ObserverService
Context: setting property ohnetContext.type to value org.jminim.core.ContextImpl
Context: setting property ohnetContext.name to value ohnetContext
Context: setting property ohnet.name to value ohnet
starting context ohnetContext
>>> EVENT >>> contextStarting: ohnetContext
ConsoleService: contextStarting event for ohnetContext
starting component ohnet in context ohnetContext
>>> EVENT >>> componentStarting: ohnet
started component ohnet in context ohnetContext
>>> EVENT >>> componentRunning: ohnet
started context ohnetContext
>>> EVENT >>> contextRunning: ohnetContext
ConsoleService: contextRunning event for ohnetContext
OhNetService: creating device list factory
OhNetService: creating library
classloader is org.jminim.core.ComponentClassLoader@90be01
InitParams classloader is org.jminim.core.ComponentClassLoader@90be01
OhNetService: InitParams created
OhNetService: library created
OhNetService: library initialized
OhNetService: creating ControlPointStack
OhNetService: device list factory created
OhNetService: creating device type device list
OhNetService: adding device list and listener to HashMap
OhNetService: disposing device list factory
OhNetService: device list factory disposed
started component observer in context observerContext
>>> EVENT >>> componentRunning: observer
started context observerContext
>>> EVENT >>> contextRunning: observerContext
ConsoleService: contextRunning event for observerContext
ConsoleService: listenerRemoved event
ServerConsole: init call
started component minimwatch in context context0
>>> EVENT >>> componentRunning: minimwatch
started context context0
>>> EVENT >>> contextRunning: context0
context already started: consoleContext
context already started: runtimeContext
context already started: observerContext
context already started: ohnetContext
started context rootContext
>>> EVENT >>> startupComplete
Enter command (? for help), or null to exit:
>DeviceListListener: deviceAdded with udn ddf77312-29aa-42d8-aa9e-29e01ad3adc4
Upnp.Location: http://192.168.11.2:9797/ddf77312-29aa-4...device.xml
Upnp.DeviceXml: <?xml version="1.0" encoding="utf-8"?><root xmlns="urn:schemas-upnp-org:device-1-0"><specVersion><major>1</major><minor>1</minor></specVersion><device><deviceType>urn:jminim-org:device:Monitor:1</deviceType><friendlyName>Monitor Service</friendlyName><manufacturer>jMinim</manufacturer><modelName>MonitorService</modelName><UDN>uuid:ddf77312-29aa-42d8-aa9e-29e01ad3adc4</UDN><serviceList><service><serviceType>urn:jminim-org:service:Monitor:1</serviceType><serviceId>urn:jminim-org:serviceId:Monitor</serviceId><SCPDURL>/ddf77312-29aa-42d8-aa9e-29e01ad3adc4/Upnp/jminim.org-Monitor-1/service.xml</SCPDURL><controlURL>/ddf77312-29aa-42d8-aa9e-29e01ad3adc4/jminim.org-Monitor-1/control</controlURL><eventSubURL>/ddf77312-29aa-42d8-aa9e-29e01ad3adc4/jminim.org-Monitor-1/event</eventSubURL></service></serviceList></device></root>
Upnp.FriendlyName: Monitor Service
Upnp.PresentationUrl: null
DeviceListListener.addDevice: addRef for udn ddf77312-29aa-42d8-aa9e-29e01ad3adc4
DeviceAddedAction starting
initializing DeviceMonitor
checking remote runtime version
remote runtime version is 0.41
ServerConsoleCallback: discovered remote device
starting DeviceMonitor
DeviceAddedAction ended
AllComponentStatusChanged: notifyChange time=1364056685121
AllContextStatusChanged: notifyChange time=1364056685122
AllComponentStatusChangedAction starting
AllComponentStatusChangedAction ended
AllContextStatusChangedAction starting
AllContextStatusChangedAction ended
InitialEvent: notifyChange time=1364056685125
InitialEventAction starting
initial value of LogDataLength=11729359
initial value of AllContextStatus=consoleContext,Running,context0,Running,watchContext,Running,ru​ntimeContext,Running,monitorContext,Running,ohnetContext,Running,httpContext,Run​ning
initial value of AllComponentStatus=console,org.jminim.lib.ConsoleService,consoleContext,Running,​minimserver,com.minimserver.Server,context0,Running,watch,com.minimserver.WatchS​ervice,watchContext,Running,runtime,org.jminim.lib.RuntimeService,runtimeContext​,Running,monitor,org.jminim.lib.MonitorService,monitorContext,Running,ohnet,org.​jminim.lib.OhNetService,ohnetContext,Running,http,org.jminim.lib.HTTPService,htt​pContext,Running
DeviceMonitor notifyComponent: name=console, type=org.jminim.lib.ConsoleService, context=consoleContext, status=Running
DeviceMonitor notifyContext: name=consoleContext, status=Running
DeviceMonitor notifyComponent: name=minimserver, type=com.minimserver.Server, context=context0, status=Running
ServerControl: monitoring component minimserver, context context0
ServerControl: componentRunning event for minimserver
DeviceMonitor notifyContext: name=context0, status=Running
ServerControl: contextRunning event for context0
Selected media server: MinimServer[raspberrypi]
MinimServer[raspberrypi] is running
>DeviceMonitor notifyComponent: name=watch, type=com.minimserver.WatchService, context=watchContext, status=Running
DeviceMonitor notifyContext: name=watchContext, status=Running
DeviceMonitor notifyComponent: name=runtime, type=org.jminim.lib.RuntimeService, context=runtimeContext, status=Running
DeviceMonitor notifyContext: name=runtimeContext, status=Running
DeviceMonitor notifyComponent: name=monitor, type=org.jminim.lib.MonitorService, context=monitorContext, status=Running
DeviceMonitor notifyContext: name=monitorContext, status=Running
DeviceMonitor notifyComponent: name=ohnet, type=org.jminim.lib.OhNetService, context=ohnetContext, status=Running
DeviceMonitor notifyContext: name=ohnetContext, status=Running
DeviceMonitor notifyComponent: name=http, type=org.jminim.lib.HTTPService, context=httpContext, status=Running
DeviceMonitor notifyContext: name=httpContext, status=Running
InitialEventAction ended

Sorry for the large amount of info, but there doesn't seem to be a 'Tray
view' message (or an error). It does seem as if the program 'hangs' (doesn't return to prompt) although I have waited for some time.
Cheers, Rene
Find all posts by this user
Quote this message in a reply
23-03-2013, 18:20
Post: #6
RE: MinimWatch menu
From this debug output, it seems that Java isn't being allowed to put an icon in the system tray.

See this article for a possible explanation. As suggested in the article, I tried typing:

gsettings get com.canonical.Unity.Panel systray-whitelist

and the result was:

['JavaEmbeddedFrame', 'Wine', 'Update-notifier']


What do you see on your system?
Find all posts by this user
Quote this message in a reply
23-03-2013, 18:32
Post: #7
RE: MinimWatch menu
Simon, thanks for your help! Meantime was looking and there are a few articles that Ubuntu 12.04 doesn't come with (a proper) Java, so I have now installed the latest version of the official Java as per "http://maketecheasier.com/install-java-runtime-in-ubuntu/2012/05/14" 7-17 and it is working great now. Good to go! Cheers, Rene
Find all posts by this user
Quote this message in a reply
23-03-2013, 18:33 (This post was last modified: 23-03-2013 18:41 by simoncn.)
Post: #8
RE: MinimWatch menu
Please also try typing:

java -version

What output do you get?

Edit: it looks you and I discovered this Java problem about the same time. For me, it was a case of rediscovering it again after first discovering it when I installed Ubuntu many months ago.

Thanks for the pointer to these installation instructions. I'll update the MinimServer Linux installation page to mention this problem.

Edit 2: The maketecheasier instructions look a bit complicated. I have OpenJDK IcedTea 1.6.0_24 installed and it is working well for me.
Find all posts by this user
Quote this message in a reply
23-03-2013, 18:41
Post: #9
RE: MinimWatch menu
I did the version thing and do now get a reference to the newly installed 7-17 version. I had the openjdk (?) version installed earlier, but that didn't work. If it was the program (not fully compatible?) or a faulty installation I don't know, but with the 'official' version everything is working OK now. Cheers, Rene
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)