Menu

Main Menu
Talk Get Daily Search

Member's Online

    User Name
    Password

    [Announce] - mmjre - Java for N900

    Reply
    Page 5 of 9 | Prev |   3     4   5   6     7   | Next | Last
    Chrome | # 41 | 2010-05-22, 08:43 | Report

    I tried it on a j2me game called d.jar

    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

    Edit | Forward | Quote | Quick Reply | Thanks

     
    beli | # 42 | 2010-05-22, 09:13 | Report

    Java SE =/= Java ME

    You'll need a ME emulator if you want to run ME jars

    Edit | Forward | Quote | Quick Reply | Thanks

     
    HtheB | # 43 | 2010-05-22, 11:50 | Report

    What are the differences between icetea6 and this?
    Any "changes" using MicroEmulator with this one compared to the other one?
    (Like handling classes etc?)

    Edit | Forward | Quote | Quick Reply | Thanks

     
    oxford | # 44 | 2010-05-22, 12:20 | Report

    Kudos to Dak, I installed this and was able to run a Java IMAP client (http://www.suberic.net/pooka/) without any changes, this gave me easy message preview and much faster email checking than the built in email client.

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following 2 Users Say Thank You to oxford For This Useful Post:
    Dak, maguitodelrock

     
    owerlord | # 45 | 2010-05-22, 14:36 | Report

    anyone have tried runescape?

    Edit | Forward | Quote | Quick Reply | Thanks

     
    Chrome | # 46 | 2010-05-22, 14:47 | Report

    Originally Posted by owerlord View Post
    anyone have tried runescape?
    Yes, It didn't work. Only a white screen comes after clicking play now.

    Edit | Forward | Quote | Quick Reply | Thanks

     
    Dak | # 47 | 2010-05-22, 17:12 | Report

    Originally Posted by qwerty12 View Post
    *Cries* - Vala converts to C before building
    LOL Sorry dude, never even heard of Vala before Its syntax was familiar enough that it was trivial to convert it. Your Vala code was very helpful.

    Originally Posted by qwerty12 View Post
    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.
    Thanks for confirming this. I was wondering about it myself, but there was so much conflicting text in various docs (I saw both "com.nokia" and "org.maemo" out there) that I mentally flipped a coin to decide.

    Originally Posted by qwerty12 View Post
    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.
    OK smartypants, ya got me....I shoulda known to try that....sometimes my brain don't werk 2 gud neither

    Originally Posted by qwerty12 View Post
    However,
    PHP Code:
    dbus_connection_flush((DBusConnection*)osso_get_dbus_connection(ctx));
    dbus_connection_read_write((DBusConnection*)osso_get_dbus_connection(ctx), 0); 
    didn't work for me; mime_cb was never called. Maybe I'm doing it on the wrong DBusConnection, but I dunno.
    I'm not surprised. I was desperately trying to find some way to force/ensure DBus messages got flushed to the mime_cb callback in that tight loop.

    Originally Posted by qwerty12 View Post
    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
    That makes good sense to me.

    Originally Posted by qwerty12 View Post
    When doing this, it all worked
    [code snip]
    Awesome. I'll get all this info neatly filed away in my head, built into a .deb, and the whole shebang put up on garage.maemo.org as soon as possible


    HUGE thanks for giving me an express-route education in these technicalities, qwerty12 The documentation out there is far from textbook quality - I've had to dig through headers so much!

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following 2 Users Say Thank You to Dak For This Useful Post:
    maguitodelrock, qwerty12

     
    Wonko | # 48 | 2010-05-22, 21:28 | Report

    @Dak
    We should probably start thinking about providing a virtual package for JRE/JDK.

    In the scope of "Instant Coffee" I had started to package Java applications for Maemo and upload these to the extras repository.
    http://talk.maemo.org/showthread.php?t=51871
    https://garage.maemo.org/projects/instant-coffee

    I packaged versions of the OpenJDK build via IcedTea6 (the package is called "icedtea6") which can also be found in extras.

    Currently I am referring to "icedtea6" as a dependency for all Java packages.
    The benefit of providing a virtual package would be that Java applications can depend on the virtual package rather than the "real" packages like your "mmjre" or "icedtea6".
    This would give the users the freedom to choose which Java implementation they want to use and makes it easier for people creating packages for Java applications.

    As far as I know this is done by adding some "Provides" entry to the control file of the "real" packages.
    Though, I am really no expert when it comes to packaging applications for Maemo and don't know if or how this will work using the autobuilder.
    Generally, I'd suggest that we try to do something similar to the way Java is packaged for Debian

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following 2 Users Say Thank You to Wonko For This Useful Post:
    Dak, zappa

     
    Dak | # 49 | 2010-05-22, 22:02 | Report

    Sounds like a good idea, Wonko.

    Forgive me if I don't get into it right now, as I'm trying to iron out a few final wrinkles with mmjre - the JRE installs fine, and the jarexec/javalauncher mechanism works OK....but I'm unhappy with the way that (a) I can't assign a nice icon to .jar files in the FileManager, and (b) it still pops up a list of choices to launch the jarfile (you select "Jarfile" and it launches fine) - when I want it to be an instant launch, like when you select a .pdf

    I'd like to sort those two irritating glitches out, then work with you to figure out how best to do this 'virtual' package business.

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following User Says Thank You to Dak For This Useful Post:
    Wonko

     
    Dak | # 50 | 2010-05-22, 22:36 | Report

    New version available from the first page.

    Apologies for the hassle, but it's probably wisest to uninstall/reinstall.

    There are a couple of final wrinkles to iron out with this beta before it can be confidently put into extras - at which point the usual update mechanism will be used.

    You can now run a jarfile from the FileManager by clicking on it....it still pops up a list of choices - select "Jarfile" - which kinda sucks....I want it to be automatic. I also can't seem to get a simple icon registered for use with jarfiles, so it still displays the stupid default question mark.

    PS. all sources and notes/credits are uploaded to the garage project, also linked at the top of the first page.

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following User Says Thank You to Dak For This Useful Post:
    qwerty12

     
    Page 5 of 9 | Prev |   3     4   5   6     7   | Next | Last
vBulletin® Version 3.8.8
Normal Logout