Join Today
+ Reply to Thread
Page 2 of 2 FirstFirst 12
Results 11 to 14 of 14
  1. #11

    Default Re: How to start java midlet from lin script

    yes, they both run the profile script, but only with the ". /home/native/.profile" do the environment variables get set properly.

    to prove this try the following:

    - start any java app from the application manager (normal starting proceedure) and note what the java id number is (if you do a ps uxa you should see something like /tmp/realjava/kvm -launch 519, or whatever the id number is)

    - stop the java app and try starting it by entering the command by hand (i.e. type "/tmp/realjava/kvm -launch 519); you should notice that the app wont start because the environment variables are not set correctly

    - try setting the environment variables with "/home/native/.profile" and again try launching the java app by hand; again you will notice that it will not start

    - set the environment variables correctly by typing ". /home/native/.profile" and start the java app by hand, this time it will work.

    edit: I was responding while the last post was being made, but it looks like you have it figured out.

  2. #12
    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

    Quote Originally Posted by rpconnect
    @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"
    Your probably right, my bash knowledge isnt exactly up-to-par with yours i think
    Yes, but does it run Linux?

  3. #13

    Default Re: How to start java midlet from lin script

    @maxx_730: not a problem at all, prior to getting this phone my bash scripting knowledge was 0, and anything I have learned has been from the knowledgable supporters of this forum. viva mfc!!!!

  4. #14

    Default Re: How to start java midlet from lin script

    ัyeh, me too. after get this phone. i can write bash script.
    Visit my Blog here.http://my.opera.com/eakrin


 
+ Reply to Thread
Page 2 of 2 FirstFirst 12

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