Can I make a class file self destruct?



I would like to be able to access a class file remotely, and send it a
command to self-destruct if it is unlicensed. (We have thieves
distributing our class files without license.)

Can I put some code in the class file to do this?

Maybe access it remotely with...

<applet codebase="http://www.remotesite.com/"; code="myfile.class"...>
<param name="destroyClassFile" value="DoIt">
....

In the class file's code, something like...

String s=getParameter(destroyClassFile");
if (s == "DoIt") {
...code to destroy it
or
...overwrite itself on the server with junk
or
...turn on a function inside the class file to always display a
"this appears to be unlicensed" message
or
... ???
}

Any ideas? How can I send commands to the class file to permanently
change itself?

Thank you for your ideas!

.



Relevant Pages

  • Re: Runtime Error in Eclipse
    ... I do get the error message that Eclipse gives me when I try to run ... There is no source file attached to this class file SystemTest.class" ... here is the error message when I try to run via the command ... >java SystemTest ...
    (comp.lang.java.programmer)
  • Re: Can I make a class file self destruct?
    ... Maybe it would be better use the law to go after the thefts than trying to take the law in your own hands. ... The file to erase might e.g. be a class file or a jar. ... You have the necessary file access rights to delete the file. ... You either already have malicious code inside which listens for a command or nothing is possible. ...
    (comp.lang.java.programmer)
  • Re: Can I make a class file self destruct?
    ... command to self-destruct if it is unlicensed. ... distributing our class files without license.) ... Can I put some code in the class file to do this? ...
    (comp.lang.java.programmer)
  • Re: package does not exist
    ... >I'm trying to compile a class file to correct an error someone else left ... but have knowledge of the exact command line syntax ... >of javac. ... including the package structure or a jar file. ...
    (comp.lang.java.help)
  • Re: package does not exist
    ... >>I'm trying to compile a class file to correct an error someone else ... but have knowledge of the exact command ... including the package structure or a jar file. ... The root of the package is in the classes folder, ...
    (comp.lang.java.help)