Skip to main content

Patching class file in J2ME jar

I decided to write this as I wasted 3 hrs yesterday night, patching a class file in the J2ME jar file. 

The prime thing I missed is pre-verification and pre-sync which need to be done after you compile any J2ME java files. So please note this point before patching any J2ME jar.

And for those who are curious about what I was patching, I patched a casino app so that it returns at least 1x bet even if you lose.

Comments

Popular posts from this blog

Debugging JSP through eclipse

For many of us, it's really a pain debugging a UI, especially a JSP page without any special add-ons in eclipse. And here is a simple solution for it. Create a class named Test and a public method foo() in that. Now put a breakpoint in the entry of the  foo()  method. Insert  foo()  invocation in the JSP just before the point where you want to start the debugging. For Eg. <% Test.foo()%> Start the debugger in eclipse. Now once you execute your flow, the debugger will suspend the thread at the entry of foo() Press F7 and guess what you will be taken to the JSP page from where you can continue the debugging in the JSP itself