ronnie291983
March 12th, 2010, 06:26
Hi,
I am trying to patch an applet code:
Here is the piece of code i am trying to change:
aload_0;
invokevirtual echo.DataApplet:: java.net.URL getCodeBase()
The class extends the JApplet class.
I am changing it to:
new java.net.URL
dup
ldc "http://xxxxxx"
invokespecial java.net.URL::void <init>
astore 1
i am trying to hard code the address with which it connects so that i can run it using applet viewer otherwise it gives a NULL pointer exception since later on the URL object is used to connect to the server.
When i patch the code i get a error:
java.lang.ClassFormatError: Method <init> has illegal signature
Can anybody help me with this?
I am trying to patch an applet code:
Here is the piece of code i am trying to change:
aload_0;
invokevirtual echo.DataApplet:: java.net.URL getCodeBase()
The class extends the JApplet class.
I am changing it to:
new java.net.URL
dup
ldc "http://xxxxxx"
invokespecial java.net.URL::void <init>
astore 1
i am trying to hard code the address with which it connects so that i can run it using applet viewer otherwise it gives a NULL pointer exception since later on the URL object is used to connect to the server.
When i patch the code i get a error:
java.lang.ClassFormatError: Method <init> has illegal signature
Can anybody help me with this?