Click here to Skip to main content
15,922,427 members
Home / Discussions / Java
   

Java

 
GeneralRe: How to clone(Deep clone) instance variables in a class and it to the clone object of that class? Pin
PJanaki6-Jun-10 23:11
PJanaki6-Jun-10 23:11 
GeneralRe: How to clone(Deep clone) instance variables in a class and it to the clone object of that class? Pin
David Skelly7-Jun-10 2:41
David Skelly7-Jun-10 2:41 
GeneralRe: How to clone(Deep clone) instance variables in a class and it to the clone object of that class? Pin
PJanaki8-Jun-10 3:48
PJanaki8-Jun-10 3:48 
GeneralRe: How to clone(Deep clone) instance variables in a class and it to the clone object of that class? Pin
David Skelly8-Jun-10 5:25
David Skelly8-Jun-10 5:25 
QuestionAltering .class files or recompiling isolated .java ones Pin
Abrojus3-Jun-10 14:38
Abrojus3-Jun-10 14:38 
AnswerRe: Altering .class files or recompiling isolated .java ones Pin
Richard MacCutchan3-Jun-10 22:01
mveRichard MacCutchan3-Jun-10 22:01 
AnswerRe: Altering .class files or recompiling isolated .java ones Pin
CodingLover8-Jun-10 6:29
CodingLover8-Jun-10 6:29 
GeneralRe: Altering .class files or recompiling isolated .java ones Pin
Upendra Jariya28-Jul-10 4:57
Upendra Jariya28-Jul-10 4:57 
I think this could help you:

First, take out the Java source code for that particular class using DJ de-compiler and save it as '.java' file to a separate location with the same name & in the same package. For same package you will have to create empty folders as per the desired package.

Make the change you want into the Java code using any text editor or IDE. If you use IDE like eclipse, set the classes and jars which are available in that application into the classpath. Smile | :)

Find out the JDK by which the original class file was compiled. In case of jar file, the JDK version could be found in the MENIFEST file. You will have to compile your new code using the same JDK.

Generate the classfile either by IDE or by javac command from the JDK used in creating original class file.

Keep a backup of the original jar file.

Open the original jar file into Winrar or Winzip such that it shows the complete folder structure of the jar file. Open the folder in which the original class file is present. Delete the original class file and insert the new generated class file in its place. Close the Winzip/ Winrar application.

You are done! keep this new jar in place of the original jar and enjoy.

~UJ
UJ, the Power Builder.

QuestionI want some ideas guys Pin
B.Sudhir2-Jun-10 17:13
B.Sudhir2-Jun-10 17:13 
AnswerRe: I want some ideas guys Pin
Dr.Walt Fair, PE2-Jun-10 17:35
professionalDr.Walt Fair, PE2-Jun-10 17:35 
GeneralRe: I want some ideas guys Pin
B.Sudhir2-Jun-10 18:29
B.Sudhir2-Jun-10 18:29 
AnswerRe: I want some ideas guys Pin
Richard MacCutchan2-Jun-10 21:26
mveRichard MacCutchan2-Jun-10 21:26 
GeneralRe: I want some ideas guys Pin
CodingLover3-Jun-10 0:23
CodingLover3-Jun-10 0:23 
GeneralRe: I want some ideas guys Pin
Richard MacCutchan3-Jun-10 2:35
mveRichard MacCutchan3-Jun-10 2:35 
QuestionJFrame backGround Color Pin
002comp1-Jun-10 2:16
002comp1-Jun-10 2:16 
AnswerRe: JFrame backGround Color Pin
42774801-Jun-10 9:14
42774801-Jun-10 9:14 
GeneralRe: JFrame backGround Color Pin
002comp7-Jun-10 19:02
002comp7-Jun-10 19:02 
Questionjava2d Pin
bensalah31-May-10 0:50
bensalah31-May-10 0:50 
AnswerRe: java2d Pin
Richard MacCutchan31-May-10 1:11
mveRichard MacCutchan31-May-10 1:11 
AnswerRe: java2d Pin
Cedric Moonen31-May-10 1:29
Cedric Moonen31-May-10 1:29 
QuestionSelect All, Cut, Copy and Paste option in canvas Pin
bensalah30-May-10 13:16
bensalah30-May-10 13:16 
AnswerRe: Select All, Cut, Copy and Paste option in canvas Pin
Richard MacCutchan30-May-10 21:38
mveRichard MacCutchan30-May-10 21:38 
NewsRe: Select All, Cut, Copy and Paste option in canvas Pin
CodingLover3-Jun-10 0:21
CodingLover3-Jun-10 0:21 
GeneralRe: Select All, Cut, Copy and Paste option in canvas Pin
Richard MacCutchan3-Jun-10 2:34
mveRichard MacCutchan3-Jun-10 2:34 
QuestionLimit File Size or Request Size Pin
tarek.mostafa27-May-10 5:07
tarek.mostafa27-May-10 5:07 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.