Java Midlet Question - 8125, K-JAM, P4300, MDA Vario General

I really want to use a name picker (randomly picks a name from a pre-defined list)
Google reveals this java version is exactly what I need for a desktop
Is there any way I can use it on the pocket pc (does not work in midlet manager)
http://www.davebsoft.com/jaws/apps/namepicker.jnlp

You normally need a jar version of the program to work with midlet manager - best you do a search for a jar version.

The author kindly sent me his JAR file for this app. I have placed it onto my device but cannot open it
Is it incompatable or am I making a silly mistake
Thanks
Hays

Is that the zip he sent you or did you send you a jar file? Even when i rename it namepicker.jar it wont install, i am sure there is something wrong with the file.

Is that the zip he sent you or did he send you a jar file? Even when i rename it namepicker.jar it wont install, i am sure there is something wrong with the file.

he sent this text in his email
The jar file is here, but it probably isn't set up the way you need it:
http://davebsoft.com/jaws/apps/lib/namepicker.jar
I downloaded it but can't get it working

yep - still says invalid - contact the author again he must have a valid jar that works

will do
thanks for your help

the author replied
"invalid" in what context? It's valid in the context in which you've been
running it on your PC or whatever. Maybe it lacks a manifest file or
something. There are free tool to extract and rebuild jar files.

The message it gives is that it has an 'invalid java application desciptor' i.e. the jad part of the jar is wrong.

just a guess, but its probably made for jave for desktops, not j2me.

OMG. The Java that is written is for PC (or eqv) Java not for Java for phone (eg. midlet). That's why it doesn't run. Midlet is a very small subset of the real Java, the code is different, and there isn't much function in midlet version of java, and it is a pain to program in midlet-java (whatever you call it). Hence the JAR is not working. Try running it on your PC, it will work.
No, you can't extract it and run it on your midlet-enabled phone. No, even if you have the source, you can't do that either, unless you translate the code manually. I don't think there is a converter for that matter, especially it involved GUI.

That explains it
Anyone up for the challenge of writing a good pocket pc version ??
Hays

Try this one...
This is an OSS JVM that's meant to be J2SE compliant so it might just run. Try your luck.

Related

Genius 0.19

Dear All,
I have developed my first PocketPC game (see attached). It is similar to Master Mind but using numbers. This is the way we play it in Iraq
I would like some help in making an installation that automatically create a shortcut in Windows\Start Menu\Programs\Games. I am planning to publish the game as a freeware.
I am using VB .NET 2005 (.NET FX 2.0) so if I can include the re-distribution libraries that would make it easier for users, else I may need to point them at a link.
I used 2 different installtion builders but both only copy the CAB file to the Program Files but not make a shortcut for it. I have an *.inf file and haven't used the command line setup builder yet unless I have to.
Any easier way please?
ThanQ.

Question - Handling software install exe file on ppc

Hey guys,
If there's already a way to do this, please tell me; otherwise, this could be a suggestion for some genius to try his skills at.
A lot of developers don't provide .cab files to install their software directly to pocket pc. So when you're browsing the internet on your device and you find a program you want to try out, you have to download the .exe file to your pc and install it from there.
Now those .exe files usually do nothing more than putting some help files on your pc and copying the .cab to your pda. So the .cab file is contained somewhere within the .exe installer, possibly in some encoded form I guess, but it should be possible to extract it, right? That way you could install software on the go, regardless wether or not the developer offers a cab file to download.
I can only make this suggestion... actually programming it is not my cup of tea. The last time I did any programming I was 13 or something. It was the early nineties and I was trying to make my own OPL version of Mortal Kombat on a Psion Organiser II 64. Killer graphics, man. Unfortunately it never got beyond beta.
Good luck...
well most of the exe files you install to your pc using activesync are just selfextracting zip files and if you rename them to zip you can often open them and copy out the cab file you want
i dont think the market for an install script / program generator for pocketpc is big enough for people to spend too much time developing it
and they can be pretty complex if you look at wiseInstall master on pc which have a world of option and it's own programming langauge of sorts
Thanks, I'll try that out.
It's more or less as I thought: since every install program is its own decoder/unpacker/etc., the form in which they're encoded can be different for every type of installer, and it would be very hard to cater for all the types out there. Oh well... pity...
A lot of people use the Open Source installer:
ezsetup.exe
You will see this almost everywhere. Even MS use it, despite their scourge of Open Source. It takes a CAB file, adds an End User Licence, a ReadMe, and bundles together into a program which dumps it's output as a cab on the device, then installs the cab.
Since this is open source, you can see exactly how it works here:
http://www.spbsoftwarehouse.com/products/ezsetup/?en
I am sure it would be simple to write a version which just extracted the CAB file from an existing archive.
Ben

T-Mobile US MDA - Java?

Anyone know what files/have the files necessary to put the Java Virtual Machine back on the T-Mobile (US) MDA Load?
Its on the SDA but not the MDA - and this sucks!
Genesis3 said:
Anyone know what files/have the files necessary to put the Java Virtual Machine back on the T-Mobile (US) MDA Load?
Its on the SDA but not the MDA - and this sucks!
Click to expand...
Click to collapse
Just a simple .lnk file to \Windows\Jmm.exe. AFAIK, the intent Midlet manager comes with all HTC Wizards pre-installed; it's only the link file that is missing.
You can also download this link file from http://www.winmobiletech.com/sekalaiset/MIDlet Manager.lnk
Nope - the FILE is missing! And copying it over from a SDA (which has it) doesn't help - it won't run (may be different link options or somesuch)
It appears that T-Mobile whacked it out of their ROMs! Anyone got a copy of that I can try dropping in there?
Genesis3 said:
Nope - the FILE is missing! And copying it over from a SDA (which has it) doesn't help - it won't run (may be different link options or somesuch)
It appears that T-Mobile whacked it out of their ROMs! Anyone got a copy of that I can try dropping in there?
Click to expand...
Click to collapse
http://www.winmobiletech.com/sekalaiset/jmm.zip - give this a try. Unpack it to \Windows. Let me know if it works/doesn't work.
WORKS, kinda.
It comes up but won't load the GLM software. Not quite sure why.... looking at that now.
Update - says it failed to run image \windows\target.img
Looks like there's one file missing in that archive.
Genesis3 said:
WORKS, kinda.
It comes up but won't load the GLM software. Not quite sure why.... looking at that now.
Update - says it failed to run image \windows\target.img
Looks like there's one file missing in that archive.
Click to expand...
Click to collapse
Give it a try: http://www.winmobiletech.com/sekalaiset/target.img.zip
Put the ZIP file itself (don't decompress it) into \Windows.
Well it comes up now - GLM fails to load claiming the JAR file is invalid, but the Java Virtual Machine starts without error.
Genesis3 said:
Well it comes up now - GLM fails to load claiming the JAR file is invalid, but the Java Virtual Machine starts without error.
Click to expand...
Click to collapse
What JAR file is that? Midlet manager is only able to run non-device-specific midlets - that is, NOT Nokia/Sony-Ericsson etc. specific ones. With other stuff, it'll report about invalid JAR files.
Menneisyys said:
Genesis3 said:
Well it comes up now - GLM fails to load claiming the JAR file is invalid, but the Java Virtual Machine starts without error.
Click to expand...
Click to collapse
What JAR file is that? Midlet manager is only able to run non-device-specific midlets - that is, NOT Nokia/Sony-Ericsson etc. specific ones. With other stuff, it'll report about invalid JAR files.
Click to expand...
Click to collapse
Its the Google Local Generic MIDP 2.0 version off www.google.com/glm.
Runs on the SDA, but refuses to load on the MDA. The VM IS running now though.... thanks.
Genesis3 said:
Menneisyys said:
Genesis3 said:
Well it comes up now - GLM fails to load claiming the JAR file is invalid, but the Java Virtual Machine starts without error.
Click to expand...
Click to collapse
What JAR file is that? Midlet manager is only able to run non-device-specific midlets - that is, NOT Nokia/Sony-Ericsson etc. specific ones. With other stuff, it'll report about invalid JAR files.
Click to expand...
Click to collapse
Its the Google Local Generic MIDP 2.0 version off www.google.com/glm.
Runs on the SDA, but refuses to load on the MDA. The VM IS running now though.... thanks.
Click to expand...
Click to collapse
OIC... the generic MIDP2 version works great on my Qtek 1.6.7.1 ROM.
Leave it to T-Mobile to cripple the damn thing....
I've also been playing around with getting java on the T-Mob US MDA. I didn't have the benefit of an SDA, but on the ftp site I found various extended roms for the Wizard. Specifically on the 'O2 Mini Asia Exteded Rom...' I found a .cab that installs the jvm/midlet manager.
The program itself runs just fine, and installs and downloads the .jar specified in any jad file I execute. The problem comes when I try to run a program from within the Midlet Manager. What I get is:
Error
Failed to run the MIDlet
This happens with google, Opera and another program I want to run. Is this the same error you are getting?
The O2 Mini is a Wizard - correct? Could there be something else in the ROM that needs to be installed?
Anyone have any ideas?
No, I'm getting an error trying to LOAD the GLM site from www.google.com/glm.
It appears to load, goes through all the motions, and then complains about an invalid JAR file.
I don't have any JARs handy I can load off a local SD card to see if it will work with those. I'll look around for some....
So you are getting an error already when trying to download the app from Google? I don't know how familiar you are with J2ME apps, but they typically consists of 2 components. A .jad file which is a simple text file that describes some properties of the app and a link to the actual app.
The point I am at I can successfully go to the Google/glm site and select the Generic Advanced app, agree to terms and then I click to download. Once I do that PocketIE asks if I want to save or run the .jad file. I then select to run it, and it kicks off the midlet manager. Then the midlet manager will download the .jar file and it is available in the manager with icon and everything. Once I click on the Google or Opera icon to launch the J2ME app I get the error I described.
If I understood correctly it seems you haven't gotten this far yet?
Correct. I cannot load the application - it is transferred but the JMM application refuses to install it.
I suspect a registry difference here - and if we find it, we may have a working solution.
Well, I would have thought that the .cab I got from the other extended rom would create all the appropriate registry keys to run the program. At least jmm works and downloads the jar.
I have no idea why it won't run them though. I also used LokiWiz to unlock the device, and after that I had to reinstall the jmm cab because the device complained that jmm.exe was not signed/authorized.
I see that some keys have been created in HKLM\Software\Tao\. I have attached them here.
It may be a file association for the .JAR type....
After looking around a little in the registry, I can see that there are a lot of keys created. I think it will be difficult for you to manually copy everything from the SDA. There are entries for the right extensions, but there is one more interesting one that I'd like to see what is in the SDA (or any Wizard with Java capabilities) \HKCR\CEJavaVM. On my device it is empty.
ecf said:
After looking around a little in the registry, I can see that there are a lot of keys created. I think it will be difficult for you to manually copy everything from the SDA. There are entries for the right extensions, but there is one more interesting one that I'd like to see what is in the SDA (or any Wizard with Java capabilities) \HKCR\CEJavaVM. On my device it is empty.
Click to expand...
Click to collapse
That key is not there at all on the SDA nor on my MDA.
There are several file associations ("Jarfile" and "Jadfile") all of which look ok......
Works on a Cingular 8125
Do it works on a Cingular 8125, however, how do you get to Midlets after you install them?
EDIT: I just need a .lnk file to the JMM.
Danny

dummy.exe needed

Hello,
could I ask any of the developers here to create very simple exe file for me that would actually do nothing.
Just two features needed:
1. system will recognize it as executable
2. will terminate itself immediately.
I just need to replace real application with it on some occasions by script.
I tried all other options to conditionally block the autorun but this seems to be my last option and I was not able to find one on the internet.
Many Thanks
hmmm, Im not a expert in EXE files, but wont a empty text file renamed to .exe do the trick?
This seems like it will do what you want. VS2005 project attached. It includes a compiled file for WM2003, which seems to run on WM6Pro fine. So, this ought to work on anything from WM2003 to WM6.1Pro.
…fantastic. This is exactly what I need.
Many Thanks!
not the right place to post.
READ THE RULES
thank you

[HELP] How to register a dll?

I try to create a program which consists of
.asx files (to show online tv channels),
.lnk files (shorcuts to the .asx files) and
a .dll file which contains only some .ico files (icons of the tv channels).
I added all these files to a cab using WinCE Cab Manager and tried to install it on my ppc. So far so good. The problem occurred when the message “The program can not be installed. Choose another location” appeared during installation, just after the process bar was filled.
Although I have no idea about computer programming, I have created many cab’s with WinCE Cab Manager for skins I have created for several programs. Anyway, I realized that the problem occurred due to the .dll file, since this is the first time I add such a file in a .cab.
I created my .dll file using a .dll from another program which had only icons in it, as well. I deleted them using Restorator 2007 and I had an “empty” .dll sized 4KB. Then I added my icon files using XN Resource Editor.
I searched the Internet to see what might be the problem with the .dll and I found out that I have to “register” my .dll file. I really have no idea what this means but it needs to be done. I also found an option in WinCE Cab Manager for “self-registering” file, but it didn’t work either.
So, the question to you dev guys is how can I register my .dll file, or should I create it from the beginning with another way?
Please help! Thanks in advance!
sorry to repost but it seems that posts keep coming in this forum and this thread is already in the second page and I'm afraid that noone will see it and reply to it. By the way, is there any special sub-forum for such questions?
This may help. I use his instructions to edit existing DLL's
http://www.modaco.com/content/i9x0-...88904/lisbian-taskbars-for-i910/#entry1023568
It will unsign the dll which will probably fail on your custom dll but it should sign it when you are done editing.
NilsP
Many thanks for your suggestion but unfortunately it didn't work for me.
As you said, this is mainly for resigning already signed .dll files.
Any other help will be appreciated. I can attach it here if anypne is willing to help. Or just tell me the way. Thanks!
I deploy a few dll's with my app, without any problem. If the installer complains about the location, what did you specify where it should go?
There are 2 approaches to solve this problem:
1.) If you have a private key to match a certificate in the device's certificate store, sign the .dll and .cab with this private key and it will be installed with elevated privledges, and be successful. To facilitate this you can install the "SDK Certificates" - and sign with the matching private key (you should be able to find these on a search, term "SDKCerts" or similar)
2.) Look for an "Application Unlocker" or other security reduction tool, run it, and you should be able to install the cab. On this note, if you check here, it will give you a more technical overview of the security policies. You want to change 4101 / 0x1005 to "SECROLE_MANAGER" (8) - which tells the system to install it with elevated privledges. Also make sure 4102 / 0x1006 is set to 1 to allow unsigned applications.
6Fg8
I don't believe that is the location I specified that causes the problem because when I deleted the .dll file from the .cab, it was installed properly. How do you create your dll files? With programming or you just edit existing files? If I send you my .ico files, will you be able to create the .dll file for me?
Da_G
Thanks but both approaches seem very complicated for me!
So, will I need Visual Basic in order to do this or is there any easier way? Can anyone sign the dll for me?
angelos_cy said:
6Fg8
How do you create your dll files? With programming or you just edit existing files? If I send you my .ico files, will you be able to create the .dll file for me?
Click to expand...
Click to collapse
Yes with programming, C++ or .net. Never had any issue with signing. I can try to make a dll if you send me the icons (or post them here if they aren't too secret ).
6Fg8 said:
I can try to make a dll if you send me the icons (or post them here if they aren't too secret ).
Click to expand...
Click to collapse
I have sent them to you by pm. They are not secret at all but I will create a "program" (wannabe ) with that dll and I want that program to be a surprise for users of the forum where I'll post it. I may post it on xda too, but it's nothing important.
Many thanks!
angelos_cy said:
The problem occurred when the message “The program can not be installed. Choose another location” appeared during installation, just after the process bar was filled.
Click to expand...
Click to collapse
This happens because you've changed resources in signed file, which changed file checksum and invalidated it's signature, and Windows installer refuses to install file with invalid signature. But it won't refuse to install this file WITHOUT signature at all - so use unsigner (search for it on XDA) to remove signature completely; if you encounter error, try to remove signature from original (unmodified) file, and then change resources in it...
6Fg8
the_ozyrys
Thanks to both of you!
6Fg8 has created and signed the dll for me and it finally worked, but I also tried the_ozyrys' method and it also worked.
So thanks to baniaczek too, since he created the unsigner.exe.
Everything worked fine with the dll. Now the cab is installed properly.
However, I have another problem. Just after the installation of the cab on my ppc, it seems that the device freezes for about a minute. This is propably because my cab contains a lot of shortcuts (.lnk files) that go under Programs folder.
So, I would like to ask for another favour, if it's possible. As I said I intend to give this cab to others too. Since this delay can make them believe that my program has freezed their device, I would like to make the cab restart the device just after installation and after uninstallation as well. I think this is made with the "Setup.dll" which I don't know how to create.
If anyone knows how to do this and has the time for it, could you please create this setup.dll for me. If the cab is needed to do this, just tell me to send it to you.
Thanks in advance!
Anyone? Plzzzzzzz!
If you want to sign .dll or .exe u can use the apps posted in the two posts below
http://forum.xda-developers.com/showthread.php?t=432041
or
http://forum.xda-developers.com/showpost.php?p=3530246&postcount=18
raykisi
Thanks for your answer but 6Fg8 and the_ozyrys already helped me on that.
My question now is how to create a setup.dll in order to make my .cab to prompt the user to restart the device after installation and uninstallation. If anyone can do it for me, I can send you the .cab which I alreday created and you can add the setup.dll with those functions.

Categories

Resources