• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to create jad file

 
jugan soomro
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi

any one tell me how to create jad file in detail
 
Sebastian Green
Ranch Hand
Posts: 136
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Jugan!

I sugest you try to compile a HelloWorld-MIDlet in Wireless Tool Kit, then you will find a jad in the bin directory. Jad is basicly a txt-file with a content thats discribes what kinde of MIDlet it is...
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Also, if you're using Ant to build your project, you could use Antenna's WtkJad task for generating the JAD file.
 
Sebastian Green
Ranch Hand
Posts: 136
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Tip! To get your MIDlet from the server OTA (Over The Air) to your cellphone. Be shure to add the whole URL where the jar is locateded.

MIDlet-Jar-URL: http://www.youserver.com/HelloWorld.jar
 
Roseanne Zhang
Ranch Hand
Posts: 1953
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Lasse Koskela

I'm using WTK, ant, antenna. When I build/package/obfuscate by using wtk IDE, it always works. However, when I use wtkbuild/wtkpackage/wtkpreverify/wtkpreverify, when I wtkrun or download to the cellphone, I always get the error:

[wtkrun] No such method getWidth.()I

It happens even I don't obfuscate!!!

I even decompiled the jar file, don't see that "getWidth.()I" at all.

Since I need to build 20 different jars, not to use IDE is very important to automate the process. I'm stucked.

Can you help, maybe give me your build.xml?

I really don't know why this is happening...

Thanks!
Roseanne
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic