java.util.jar is not avail in j2me, what if using j2me app wants to create jar file from midlet at run time ?
at once,I put jar file of my j2me application in it's resource and then rebuild it.You can use getClass().getResourceAsStream() to access it,as other resources.
Related
I am implementing the PIM API in my J2ME app when I run it on the KEmulator or on the device (Sony Ericsson k800i) I am getting this exception
java.lang.NoClassDefFoundError: javax/microedition/pim/PIMException
though the jar file has the PIMException.class file inside the javax/microedition/pim package.
Well the problem is solved, all i needed to do is add the JSR api as refrence library.
I developed an application in j2me,created a jar for that application. Now I want this jar to be used in another application. I imported that jar in my first application, but when I try to import that jar in my class (code) (for example:import.org), that jar file is not showing as option. Is there anything to be done when creating a jar which is to be used in another project?
You can try this,it works fine:
Create New Project Without any midlet.
Create your classes which you want in library.
Compile all classes.
Right click on Project & Select Properties.
Click on creating Jar & Give name for Jar & Jad
Now Clean & Build Your Project.
Your Library ready to use in jar file.
See Create library in j2me.
I have a web application that loads other applications from within it, how can I open a java web start application from within my JavaFx 2.0 application. All help is greatly appreciated.
It's long to answer, you need to study how to Deploy Java Web Start application first.
The basic approach is:
Create a JAR file containing your application's class files and resources. including Main-Class attribute in your MANIFEST.MF.
Create JNLP files to describe how your application to run, You can also use JavaFX Packager tool to help.
Then look at source code for The Java FX Ensemble example to figure out JavaFX specific configuration, and full documentation Deploying JavaFX Applications.
I need to update an application JAR file by sending a minimal incremental update of my J2ME code and res/ folder. What is the best way of doing this. This JAR gets installed on a phone. In so doing, I want to minimize the size of the update I send to the phone. I am developing with Eclipse for Nokia N97 SDK.
You can't update individual classes or resources on the fly. You could download new resources, and save them either to RMS or the file system using JSR75.
Beyond that, you'll need to install a new JAR.
I have an app that uses apache-commons-collections v3.2.1. When I deploy the war file using the WAS 6.1 Integrated Solutions Console I get errors because the commons-collections.jar file in isclite.ear gets loaded before the one that I bundle with my .war file. The problem is that my application requires v3.0.0+ of commons collections. The one in isclite.ear is version 2.1.
So, can I deploy into WAS 6.1 without involving isclite? Can I just drop a war file into a directory somewhere? Is there an option I can select in the process of deploying through the admin interface to skip or remove the isclite.ear dependency?
Thanks.
I had a very similar problem with ColdFusion where a jar in the server was a different version than the one that was needed by my application. I had to call a non-delegating loader (one that doesn't ask the parent to first load the class before loading the requested jar). The loader I used is open source. You can find out about it at
http://groups.google.com/group/javaloader-dev