Java MIDP/ CLDC Jad auto updater ("MIDlet-Jar-Size: ")
Updates your Java MIDP - mobile/ wireless jad file everytime you build.
Free software as-is, no warranty GNU licence.
Get the java Jad Updater exe JavaJadUpdtrP.exe
Pass it param to the Java MIDP JAD File, it read it till "MIDlet-Jar-Size: " inserts the matching jar files size and then writes the file to a temp file.
It then renames the new file to the old.
if you choose back-up (by passing paramater 2 as "backup" case insensitive) then
it makes a back up called xyz.jad.backUp
If you want the Java version email me tgkprog at g mail ...
It needs the VB runtime plus the exe JavaJadUpdtrP.exe. Most PCs have the VB runtime.
If not you can get it from the MS site at vb run time at MS, its about 1 MB
Step 1: download JavaJadUpdtrP.exe.
Step 2: Save it to a folder, keeping note of that folder.
Step 3: Run the exe. If runs you are good to go.
Else get the runtime from vb run time at MS it has directions
Step 4: try running the utility again. It should run once you have installed VB (might have to re start you system after installing it.)
Sub main in a module :
On Local Error GoTo errH
Dim sLoc As String
Dim fso As FileSystemObject
Dim txIn As TextStream
Dim txOt As TextStream
Dim args, i, s, f1 As File
args = Split(Command, " ")
Set fso = New FileSystemObject
Set txIn = fso.OpenTextFile(args(0), ForReading)
Set txOt = fso.OpenTextFile(args(0) & "outTmp", ForWriting, True)
Set f1 = fso.GetFile(Left(args(0), Len(args(0)) - 3) & "jar")
Do While Not txIn.AtEndOfStream
s = txIn.ReadLine
i = InStr(1, s, "MIDlet-Jar-Size: ")
If i > 0 Then
s = "MIDlet-Jar-Size: " & f1.Size
If UBound(args) > 0 Then
If LCase(args(1)) = "backup" Then
Call fso.CopyFile(args(0), args(0) & ".backUp", True)
Call fso.CopyFile(args(0) & "outTmp", args(0), True)
fso.DeleteFile args(0) & "outTmp"
If Err.Number <> 0 Then
MsgBox "Err " & Err.Number & " " & Err.Description & vbNewLine & sLoc
There is a form too - just to get the icon no code , never called.
Help with research, genitics, history. Volunteer your computer www.worldcommunitygrid.org today!
Click: www.thehungersite.com ,
and www.bhookh.com , feed a hungry soul, its free.
Please add these to your start-up how to -
123... a game
Cows and bulls game
Kanyakumari and Kovalum
My help pages
Who moved my cheese
My family and me
EDC meet june 7 2000
forwards , puzzles and info in Bangalore
Picnic Dec. 2000
Hognekal & EDC
Neat DHTML Needs IE
Ads by google:
- Tushar G Kapila
Bangalore India 2007 ©