Jump to content

Java Jblend shortcut links in WM6 on BJ2


Recommended Posts

Guest mattbuff5
Posted

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?

  • 2 months later...
Guest arsyan
Posted

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 ...

  • 1 month later...
Guest Michael H
Posted

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.

Guest Michael H
Posted

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!

Guest JeepinCalifornia
Posted (edited)
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.

Edited by JeepinCalifornia
Guest Michael H
Posted (edited)

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.

Edited by Michael H
Guest JeepinCalifornia
Posted (edited)

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.

Edited by JeepinCalifornia
Guest Michael H
Posted

Ah ha! The extension is all lower case.... LNK, not INK. It's short for "link"

Guest JeepinCalifornia
Posted (edited)
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?

Edited by JeepinCalifornia
Guest Michael H
Posted
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.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.