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.
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.
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?
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
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
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)Originally Posted by eakrin
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
. /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?
@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"
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
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.