Join Today
+ Reply to Thread
Page 1 of 2 12 LastLast
Results 1 to 10 of 14
  1. #1

    Default How to start java midlet from lin script

    Does anyone known how to start java midlet from script.
    i eas create lin script like this

    export QTDIR=/usr/lib/ezx
    export EZX_RES_FONT_PATH=$QTDIR/lib/fonts

    /usr/SYSjava/kvm -launch /diska/.system/java/DownloadApps/MIDlet00503/Files/Opera

    but it got many error from J2ME_JAID_Utilities and J2ME_JAID_APIs

    and midlet cannot start.

  2. #2
    Join Date
    Feb 2005
    Location
    The Netherlands
    Cell: E680 flashed to E680i
    Posts
    1,368

    Default Re: How to start java midlet from lin script

    Tried running
    . /home/native/.profile
    First?
    It sets all the env variables for native apps, not sure if it does for java apps too though. Otherwise look at leopardus2's scripts, he start Leopopup through a script.
    Yes, but does it run Linux?

  3. #3

    Default Re: How to start java midlet from lin script

    Still got error from J2ME_JAID_Utilities and J2ME_APIs but not the same error as above. but i continue test it.
    Visit my Blog here.http://my.opera.com/eakrin

  4. #4

    Default Re: How to start java midlet from lin script

    Use ./home/native/.profile cannot start java midlet

    But use leopardus2's scripts can start all java midlet

    This combination of linscript and java midlet can be use to create configuration application like package installer, theme installer, or edit *.cfg file

    thank max_730, and leopardus2
    Visit my Blog here.http://my.opera.com/eakrin

  5. #5

    Default Re: How to start java midlet from lin script

    Quote Originally Posted by eakrin
    Use ./home/native/.profile cannot start java midlet

    But use leopardus2's scripts can start all java midlet
    are you using "./home/native/.profile" or ". /home/native/.profile"? (the first one does not have a space between the "." and the "/home", this space is required)

  6. #6

    Default Re: How to start java midlet from lin script

    sorry for miss type.I use "/home/native/.profile"
    coz .profile is a file to set many environment variables before start qt app and java app. and It's in /home/native folder.

    anyway what ". /home/native/.profile" is mean?

    I think /home/native/.profile is the same as leopardus2's script. but leopardus 'script show how to run kvm with java class.
    Visit my Blog here.http://my.opera.com/eakrin

  7. #7
    Join Date
    Feb 2005
    Location
    The Netherlands
    Cell: E680 flashed to E680i
    Posts
    1,368

    Default Re: How to start java midlet from lin script

    . /home/native/.profile executes the script, whereas /home/native/.profile or ./home/native/.profile dont do anything. cd /home/native and then ./.profile will work too though.
    Yes, but does it run Linux?

  8. #8

    Default Re: How to start java midlet from lin script

    @maxx_730: i'm not 100% sure, but i dont think that is correct. if .profile was just a script that you wanted to execute then /home/native/.profile would execute it, but it would not update the environment variables in your current shell. the space between is required to make sure that the "exports" in the .profile script are actually exported to the current shell.

    for example, go to /home/native and first do "./.profile" (this will execute the .profile script) then "echo $JAVA_HOME_FLASH" (JAVA_HOME_FLASH should be exported by the .profile script). without the additional ". " (dot and space) the result of the echo command is blank. but if you do ". ./.profile" (with the space between the first and second ".") the echo command will result in "/diska/.system/java"

  9. #9

    Default Re: How to start java midlet from lin script

    i was test both of them. ". /home/native/.profile" and "/home/native/.profile" can run .profile script.

    does anyone except leopardus2 use script+java to create application with UI?
    Visit my Blog here.http://my.opera.com/eakrin

  10. #10

    Default Re: How to start java midlet from lin script

    i can start java from script with this code

    #!/bin/bash

    /home/native/.profile

    JARFILE=/diska/.system/java/DownloadApps/MIDlet00504/Files/MotoDict.jar

    /usr/SYSjava/kvm -classpath $JARFILE Dict


    line /home/native/.profile can exec .profile script.
    JARFFILE is java midlet to execute in fullpath name.
    And Dict is a main class to start midlet.


 
+ Reply to Thread
Page 1 of 2 12 LastLast

Similar Threads

  1. Start up script
    By rickyvig in forum E6 General Chat
    Replies: 12
    Last Post: 11-11-2010, 05:54 AM
  2. How to run lin script at start-up automatically
    By bonalir in forum E6 General Chat
    Replies: 1
    Last Post: 10-11-2007, 03:34 PM
  3. Can't running Java MIDlet apps on E680i after flashing
    By jsuprianto in forum E680i General Chat
    Replies: 1
    Last Post: 08-24-2006, 06:57 AM
  4. How to Auto Start a Script on phone start
    By mudassar in forum A780 General Chat
    Replies: 8
    Last Post: 12-20-2005, 09:46 PM
  5. a script that activated lin-loader + startup.lin
    By ycyas in forum E680 General Chat
    Replies: 0
    Last Post: 11-04-2005, 06:55 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Single Sign On provided by vBSSO

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1