can't install jar in mobile phone (CLDC and MIDP) - java-me

When I export a jar of my j2me code I can install it on an emulator but not on my mobile phone with the error :
Not Supported
But I can install others jar from net on my phone.

There are some phones that will only let you install MIDlets OTA.
OTA = Over The Air
Basically just means that you HAVE to put your JAR and JAD file online, and then install from an URL that points to the JAD file.
When doing this, it is also important that MIME-types for JAD and JAR files are set correctly on the web-server.

Related

Support library missing

I am trying to add an existing project as a module. However, it wont compile as it says this library is missing:
android-support-v4.jar => com.android.support:support-v4:20.+
I have opened the sdk manager and installed the latest version of Android Support Library but the error remains. How can I fix this please?
Make sure that you have the "Android Support Repository" installed under "Extras" in the SDK manager.
The support libraries are managed in a local Maven repository, and that repository is the "Android Support Repository" component.
You can manually search the android support library jar in the android sdk directory and then copy it to a directory included in your projects library path. I believe the jar should be somewhere in the \extras\android\support directory.
Note: I must do that when developing android apps with netbeans + android plugin. Not sure if android studio is supposed to pick the support library automatically from the sdk folder.

cordova hybrid app build fail with vs2013 up2 (chinese traditional)

I build cordova project with vs2013 up2 for windows phone platform and receive some error as follow , but build for ios & android is ok .
(1)Non-whitespace before first tag.
I found the js file "C:\Users\xxx\AppData\Roaming\npm\node_modules\vs-mda\node_modules\cordova\node_modules\plugman\src\util\xml-helpers.js" in line 124 command
var contents = fs.readFileSync(filename, 'utf-8').replace("\ufeff", "");
...is failing in chinese traditional environment, when building for windows phone platform the WMAppManifest.xml file has BOM code , so will be error as 嚙踝蕭??xml version="1.0" encoding="utf-8"?>, it should be <?xml version="1.0" encoding="utf-8"?>
have any idea can fix it ?
Thanks.
The issue you are seeing (issues.apache.org/jira/browse/CB-5477) was fixed in Cordova 3.5
(I'm a new poster and haven't earned the reputation points to include more than 2 links in my response, so I'm saving those for the ones that matter below).
If you update to the latest CTP 2.0 for Multi-Device Hybrid Apps, you will pick up the fix.
Unfortunately, there is an other Cordova issue that still exists in version 3.5 which also impacts WP8 in localized environments (https://issues.apache.org/jira/browse/CB-6932).
It has been fixed in Cordova version 3.6 which hasn't yet been released, but here's how you can pick up the fix.
After installing the new MDD tools, create an MDD project and build for WP8. (It will fail under Chinese as it did before.)
Now go into c:\Users\<username>\cordova\lib\wp\cordova\3.5.0\wp8\bin
Replace the existing create.js with the version from here
(click "Raw" to view just the file contents)
https://github.com/MSOpenTech/cordova-wp8/blob/ac097f2801d4defe5e4d445e10b7102001631a54/wp8/bin/create.js
Create a new project and build again for wp8. It should work now and future projects should work as well.
For me, it worked by removing android and adding again.
remove:
ionic platform rm android
add:
ionic platform add android
You can execute these commands at your project directory.

PhoneGap 3.1 Local Build WP8

I'm trying to play with new phonegap-cli main focus is to setup wp8 platform
and when running command:
phonegap build wp8
It tries to use PhoneGap Build, which I presume happens because it hasn't found
my installed SDK in any path.
I tried to test my thesis and ran this command:
phonegap local build wp8
And it returns this error:
I have .NET Framework v4.0 installed, so this path exists:
C:\Windows\Microsoft.NET\Framework\v4.0.30319
So the only thing I think happens is that phonegap can't find where SDK is installed,
so I have been searching through the documentation and I couldn't find anything regarding which Environment Variable PhoneGap checks.
So I would really appreciate any kind of help here.
Please make sure that you have added the framework path to the system PATH variable.
In my case it was the above reason and also related to Ant installed and configuration.
Alternatively you can use phonegap's online build service:
https://build.phonegap.com/
It works like a charm and is free for 1 private project.

Xcode with phonegap provide build error

I have installed phonegap on MAC and installed Xcode 3.1. then open codex and create new project and built and ruis target might include its own product. build failed. give me a solution to this
Do you have a provisioning profile installed on the iPhone you are trying to run it on? For me it sounds you don't have the signing correctly.

how to run JAR file in emulator in eclipse configured for Samsung SDK

I need to run a jar file which is application for for SAMSUNG mobiles. I have configured my eclipse with Latest samsung SDK for java. I also able to run a sample application on emulator. Now I have to run a JAR file in that emulator. Please advise.
Below are the steps to run JAR file on Samsung emulator.
Prerequisites:
1. You must have both JAR and JAD files.
2. Download Samsung SDK from the link :http://innovator.samsungmobile.com/down/cnts/toolSDK.list.do?platformId=2
Step 1. Place Jad and Jar files at the same folder.
Step 2. Run the below command from bin folder of Samsung SDK.
D:\Samsung_SDK_120_Beta\bin>emulator -Xdescriptor:..\%folder%\LAWBook.jad -Xdevice:GT-S5230N

Resources