This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Java in General and the fly likes Replace Class Files Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Replace Class Files" Watch "Replace Class Files" New topic

Replace Class Files

nandhini sruthi

Joined: Jan 11, 2008
Posts: 17
I want to replace one Class Files from one location to other location,how can doing this using java.

Thanks in Advance.
nandhini sruthi

Joined: Jan 11, 2008
Posts: 17
When I replace the class and java files using browse button existing screen details should be changed with other details.
I planed to do like the following method,
please reply this method is the correct way or not:
"First I design the Screen with changes details using java then I will get that file using browse button in existing Screen(existing screen contains Browse button),After replace the changes details screen,screen should display the changes."
please any body help me.

Thanks in Advance.
Ulf Dittmer

Joined: Mar 22, 2005
Posts: 41052
I don't understand what "replacing a class file from one location to other location" means. Is this a question about class loading and unloading, or about constructing a GUI of some sort?

Ping & DNS - my free Android networking tools app
nandhini sruthi

Joined: Jan 11, 2008
Posts: 17
I am doing License version functionality
I have trial version that contains two button Buy License and UPgrade and some details about trial version.I have to change from trial version to Licese version ,While click the Buy License button display one window that contains Browse button,I am getting some files from
any location using Browse button and moving that files into trial version files location,after moving some files,trial version should change to license version.

Thanks in Advance.
Prakash Subramanian
Ranch Hand

Joined: Feb 03, 2005
Posts: 32
If I guessed right, you have written a software which wants to change itself from a trial version to a licensed version, by copying the appropriate class files or java files. The concept itself is way out.... and your question does not reflect your need correctly if so. Software license enabling does not work this way.

If you think about it, and read about the concepts of class loading, program execution fundamentals and a few more topics, you would find a better way of approaching your problem.

You should rethink your strategy for this.
I agree. Here's the link:
subject: Replace Class Files
Similar Threads
Why do I get those exceptions? Please HELP....
How Java handles class files?
To run a JSP in a fixed interval
The system can only find one of the two files specified
replace word in file