|
2010-05-22
, 09:13
|
Posts: 80 |
Thanked: 114 times |
Joined on Dec 2009
@ Belgium
|
#42
|
|
2010-05-22
, 11:50
|
|
Moderator |
Posts: 3,718 |
Thanked: 7,419 times |
Joined on Dec 2009
@ Bize Her Yer Trabzon
|
#43
|
|
2010-05-22
, 12:20
|
Posts: 13 |
Thanked: 25 times |
Joined on May 2010
|
#44
|
The Following 2 Users Say Thank You to oxford For This Useful Post: | ||
|
2010-05-22
, 14:36
|
Posts: 110 |
Thanked: 3 times |
Joined on Jan 2010
|
#45
|
|
2010-05-22
, 14:47
|
|
Posts: 349 |
Thanked: 309 times |
Joined on Feb 2010
@ PS/IL
|
#46
|
|
2010-05-22
, 17:12
|
Posts: 124 |
Thanked: 213 times |
Joined on Dec 2009
|
#47
|
In your service file, you call the service "org.maemo.javalauncher", which is fine but you've still left it as "javalauncher" in the desktop file. When a name is not given a prefix, it automatically assumes "com.nokia.javalauncher". So you've got a desktop file looking for com.nokia.javalauncher but a service file only defining org.maemo.javalauncher.
This is also true for osso_initialize(), so the call to that must also be amended.
I verified your program actually starts by doing a - wait for it - "while true; do ps | grep java | grep -v grep; done" from the terminal.
However,
didn't work for me; mime_cb was never called. Maybe I'm doing it on the wrong DBusConnection, but I dunno.PHP Code:
dbus_connection_flush((DBusConnection*)osso_get_dbus_connection(ctx));
dbus_connection_read_write((DBusConnection*)osso_get_dbus_connection(ctx), 0);
So I went back to what works for me: A GMainLoop. libosso will automatically call dbus_connection_setup_with_g_main () on both its connections for you, and mime_cb was actually getting called this time. And, according to ltrace, it's sure not waking up as much
The Following 2 Users Say Thank You to Dak For This Useful Post: | ||
|
2010-05-22
, 21:28
|
Posts: 456 |
Thanked: 1,580 times |
Joined on Dec 2009
|
#48
|
|
2010-05-22
, 22:02
|
Posts: 124 |
Thanked: 213 times |
Joined on Dec 2009
|
#49
|
The Following User Says Thank You to Dak For This Useful Post: | ||
|
2010-05-22
, 22:36
|
Posts: 124 |
Thanked: 213 times |
Joined on Dec 2009
|
#50
|
The Following User Says Thank You to Dak For This Useful Post: | ||
cd Mydocs
jarexec d.jar
output:
Java SE Embedded 90 Evaluation version
Use the command: "java -version" to view days remaining in evaluation period
Failed to load Main-Class manifest attribute from d.jar