Available for a limited time only - £10 off a £20 spend at eXpansys! For more details visit this topic!

Please Log In or Register - it's FREE!

 
Reply to this topicStart new topic
 Java Jblend shortcut links in WM6 on BJ2, How to?
mattbuff5
post Feb 8 2008, 15:38
Post #1


Newbie
Group Icon

Group: Posters
Posts: 1
Joined: 8th February 2008
Member No.: 354,142

Device(s): Samsung BlackJack 2



Can someone direct me how to create a Start Menu -> program shortcut link for java jblend on my phone, specifically Gmail. This is very useful for mapping a shortcut key to directly open up gmail via keypad. For example, on my old Moto Q with IBM J9 Java I was able to do this:

Create a text file for a direct shortcut to the Gmail java app:

Use the following line for the shortcut (keep it a single line):
197#"\J9\MIDP20\bin\j9midp20.exe" -classpath "\J9\MIDP20\apps\gmail-g.jar" "-Xbootclasspath:\J9\MIDP20\lib\jclMidp20\jclMidp20. jxe" javax.microedition.lcdui.AppManager "\J9\MIDP20\apps\gmail.jad"

Save the text file as Gmail.lnk

Copy Gmail.lnk to \Windows\Start Menu

Any ideas?
Go to the top of the page
 
+Quote Post
arsyan
post May 5 2008, 12:04
Post #2


Newbie
Group Icon

Group: Posters
Posts: 2
Joined: 22nd April 2008
Member No.: 381,352

Device(s): i780



ya im trying to find a way to make shortcut for this as well
i use dopod838pro before with intent midlet manager
and able to do shortcut for it ...

but with jblend i have no idea how to and theres no guide so far.
i even want to disable the ASK FOR CONNECTION (cancel or allow) thingy that asking everytime.
can someone help us please thanks ...
Go to the top of the page
 
+Quote Post
Michael H
post Jun 11 2008, 20:29
Post #3


Newbie
Group Icon

Group: Posters
Posts: 8
Joined: 8th April 2008
Member No.: 376,405

Device(s): Samsung BlackJack II



There's already a tip on the forum for opening up full permissions for the built-in Java VM:

http://www.modaco.com/content/samsung-i617...ps/#entry869400

I could swear that I had a working shortcut which would directly launch a Java app on my BJII, but it is most likely that I accomplished this by installing a different Java engine. I cannot find how to launch a java app using JBlend from the commandline. Interestingly I was able to launch JBlend and automatically install from a Jad file like this: ""\Windows\JBlend_VM.exe" -I {path to the jad file}" so I know it is processing command line parameters.

Existing code examples for jbed and jeodek show the commandline parameter to run an app as: "-run s#_" which is appears to correspond to the first 3 characters of the file where the app is stored. However, if you look in \Windows\Java on the BJII you'll see that the files are not named this way. However, I've tried a lot of different things (specifying the entire file name, the application name on the screen "-run "Opera Mini"") and have had no success. Now if we could only find a reference to the valid commandline parameters to jblend_vm.exe...

Maybe the best bet is a MortScript script that launches Java and then sends keys to launch the desired app on your device. There appear to be many sample scripts available on the Internet.
Go to the top of the page
 
+Quote Post
Michael H
post Jun 11 2008, 20:41
Post #4


Newbie
Group Icon

Group: Posters
Posts: 8
Joined: 8th April 2008
Member No.: 376,405

Device(s): Samsung BlackJack II



Okay you guys do not have any idea how much time I wasted trying to figure this out ...

Anyway, it looks like you can launch the installed jar files, using the BJII stock JBlend, using this syntax:

\Windows\JBlend_AMS.exe -R 4.jar

So if you want to create a shortcut in your start menu:

1. Create a text file containing this single line:

32#\Windows\JBlend_AMS.exe -R 4.jar

2. Save the file to your BJII in the \Windows\Start Menu directory.
3. Name the file "Opera Mini.lnk" (or something like that)

Now, you'll see "Opera Mini" in your start menu!
Go to the top of the page
 
+Quote Post
JeepinCalifornia
post Jun 11 2008, 21:14
Post #5


Regular
Group Icon

Group: Posters
Posts: 110
Joined: 18th March 2008
From: California
Member No.: 368,693

Device(s): i1617 (BJII)



QUOTE(Michael H @ Jun 11 2008, 13:41) *
Okay you guys do not have any idea how much time I wasted trying to figure this out ...

Anyway, it looks like you can launch the installed jar files, using the BJII stock JBlend, using this syntax:

\Windows\JBlend_AMS.exe -R 4.jar

So if you want to create a shortcut in your start menu:

1. Create a text file containing this single line:

32#\Windows\JBlend_AMS.exe -R 4.jar

2. Save the file to your BJII in the \Windows\Start Menu directory.
3. Name the file "Opera Mini.lnk" (or something like that)

Now, you'll see "Opera Mini" in your start menu!


Dang, this isn't working for me.
I made and relocated the "shortcut" as suggested above, but [still] get: "There is no application associated with "Opera Mini". Run the application first and then open this file inside the application."
I also tried a few other .JAR executables, which gave me the same message.


This post has been edited by JeepinCalifornia: Jun 11 2008, 21:17
Go to the top of the page
 
+Quote Post
Michael H
post Jun 11 2008, 21:25
Post #6


Newbie
Group Icon

Group: Posters
Posts: 8
Joined: 8th April 2008
Member No.: 376,405

Device(s): Samsung BlackJack II



Make sure that the file has the .lnk extension. When you view the contents of \Windows\Start Menu in Explorer, you should see that "Opera Mini" is showing as "Shortcut" ... you should not see ".lnk" in the file name there. If not ... copy the file back to your local machine, maybe to the root of your C: drive or some directory that is easy to get to ... then open a command prompt:

(I apologize if I am oversimplifying here, don't type the quotes here!)

type: "c:\" then enter
type: "cd \" then enter
type: "dir opera*" then enter

and see what you get ... you should rename that file to "Opera Mini.lnk" like this (type the following line with the quotes, followed by enter):

rename "{type the original file name here}" "Opera Mini.lnk"

then copy the file back to your BJII and see if that works.


This post has been edited by Michael H: Jun 11 2008, 21:29
Go to the top of the page
 
+Quote Post
JeepinCalifornia
post Jun 12 2008, 00:15
Post #7


Regular
Group Icon

Group: Posters
Posts: 110
Joined: 18th March 2008
From: California
Member No.: 368,693

Device(s): i1617 (BJII)



Thanks again for the suggestion, but that didn't work either...

The .Ink file is definitely an .Ink file, but it is not showing as a Shortcut, it is showing as .Ink; the only way I can see a "Short cut to" is if I right-click and create a short cut.

I even renamed the file at the ol' DOS prompt but that still shows as .Ink while Exploring, and prompts the same error message.


This post has been edited by JeepinCalifornia: Jun 12 2008, 00:27
Go to the top of the page
 
+Quote Post
Michael H
post Jun 12 2008, 01:18
Post #8


Newbie
Group Icon

Group: Posters
Posts: 8
Joined: 8th April 2008
Member No.: 376,405

Device(s): Samsung BlackJack II



Ah ha! The extension is all lower case.... LNK, not INK. It's short for "link"
Go to the top of the page
 
+Quote Post
JeepinCalifornia
post Jun 12 2008, 02:58
Post #9


Regular
Group Icon

Group: Posters
Posts: 110
Joined: 18th March 2008
From: California
Member No.: 368,693

Device(s): i1617 (BJII)



QUOTE(Michael H @ Jun 11 2008, 18:18) *
Ah ha! The extension is all lower case.... LNK, not INK. It's short for "link"


Huzah! Well said, good sir. (And we do learn new things every day.)

Thanks for the help.





Thinking about short-cuts: if we can run an .EXE then have it run another file, can we build a short-cut to run a pocket nester rom? or does it complicate things when keystrokes are involved?


This post has been edited by JeepinCalifornia: Jun 12 2008, 03:00
Go to the top of the page
 
+Quote Post
Michael H
post Jun 12 2008, 03:21
Post #10


Newbie
Group Icon

Group: Posters
Posts: 8
Joined: 8th April 2008
Member No.: 376,405

Device(s): Samsung BlackJack II



QUOTE(JeepinCalifornia @ Jun 11 2008, 22:58) *
Thinking about short-cuts: if we can run an .EXE then have it run another file, can we build a short-cut to run a pocket nester rom? or does it complicate things when keystrokes are involved?


Well the application has to support the command line parameters that you send to it. The shortcut just launches the program and sends those commands to it. If you want to send keys you should probably look at building a MortScript. More information is available here and around the forum. Also search for JK SmartMort (in the forum as well) which provides some scripts for launching and controlling Opera Mini.
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic

Collapse

Similar Topics

  Topic Replies Topic Starter Views Last Action
No new Topic has attachmentsKaiser on 3 Network
Need help with Skype
21 therafiman 2,590 Today, 19:24
Last post by: therafiman
No new Topic has attachmentsPaul's complete guide to installing OSX Leopard on your MSI Wind / Advent 4211
Video uploading now...
545 Paul (MVP) 203,899 Today, 19:50
Last post by: zac.sonoio
No New Posts Problem for flash XHHH4 in AEHH2
5 Billou 354 Today, 20:46
Last post by: Billou
No new Speed cameras on IGO8
17 Fizz_daz 773 Today, 19:26
Last post by: Dobbs
No new Topic has attachmentsPatched SECDialer.dll - no more keypad lock in calls!
57 Paul (MVP) 3,111 Today, 18:27
Last post by: dubs59
No New Posts running java games on omnia?
0 ronzo77 42 Today, 18:15
Last post by: ronzo77

2 User(s) are reading this topic (2 Guests and 0 Anonymous Users)
0 Members:

 


RSS hit counter Lo-Fi Version Time is now: 10th October 2008 - 22:53


Please visit our 'Plus Partners' - these companies support MoDaCo through 'MoDaCo Plus' - Click Here for more details!

VITO Technology | Slipstream Solutions | Aiko Solutions | PDAMill | Inesoft | SBSH | LingvoSoft | Ruttensoft | Astraware | MadBeetle | Sprite Software

Opera | Westtek | TetraEdge | Z4Soft | KBM Systems | Conduits | Mini Lyrics Magic | Proporta | Semsons | SyncData | Active Kitten | Binaryfish | Textr

SPB Software House | Omega One | OmniSoft | Resco | eSoft Interactive | TenGo | ATEKsoft | imei-check | GpsGate | SplashData | DeveloperOne | monocube

WebIS, home of Pocket Informant, FlexMail and Note2Self

Would your company like to become a 'Plus Partner'? Click Here to contact us!