subbu
subbu

Reputation: 146

Jar creation in j2me

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?

Upvotes: 2

Views: 306

Answers (1)

hasanghaforian
hasanghaforian

Reputation: 14042

You can try this,it works fine:

  1. Create New Project Without any midlet.
  2. Create your classes which you want in library.
  3. Compile all classes.
  4. Right click on Project & Select Properties.
  5. Click on creating Jar & Give name for Jar & Jad
  6. Now Clean & Build Your Project.
  7. Your Library ready to use in jar file.

See Create library in j2me.

Upvotes: 2

Related Questions