[help]How to recompile java to class?

Reply

Join Date: Oct 2009
Posts: 5
Reputation: Mareshal is an unknown quantity at this point 
Solved Threads: 0
Mareshal Mareshal is offline Offline
Newbie Poster

[help]How to recompile java to class?

 
-1
  #1
30 Days Ago
I have a program with multiple JAR files. I need to edit only 1 class in only 1 jar file. I've decompiled them to *.java files, edited, but I can't recompile them. I tried javac name.class but I get a ton of errors.

any help?
Reply With Quote Quick reply to this message  
Join Date: Sep 2008
Posts: 1,568
Reputation: BestJewSinceJC is a name known to all BestJewSinceJC is a name known to all BestJewSinceJC is a name known to all BestJewSinceJC is a name known to all BestJewSinceJC is a name known to all BestJewSinceJC is a name known to all 
Solved Threads: 196
BestJewSinceJC BestJewSinceJC is offline Offline
Posting Virtuoso
 
0
  #2
30 Days Ago
You decompiled them? Implying the source code wasn't yours, and we don't give help with reverse engineering.
Out.
Reply With Quote Quick reply to this message  
Join Date: Oct 2009
Posts: 5
Reputation: Mareshal is an unknown quantity at this point 
Solved Threads: 0
Mareshal Mareshal is offline Offline
Newbie Poster
 
0
  #3
30 Days Ago
Come on. I am student 3rd degree, at a programming university.

Let me tell you the entire story. Today, at our java lab, our teacher told us is almost impossible to modify a jar executable. And I told him I can do this until tomorrow. The java program I've decompiled is a simple text editor, and my task is ONLY to change the top menu and pack it back. This is why I need some advices.

I don't want to hack any program. Yes, source code is not mine, the teacher gave it to me. This could be my best chance to get a 10 at java lab, and I really need it.

Now can you help me?
Reply With Quote Quick reply to this message  
Join Date: Oct 2007
Posts: 1,293
Reputation: majestic0110 has a spectacular aura about majestic0110 has a spectacular aura about majestic0110 has a spectacular aura about 
Solved Threads: 67
majestic0110's Avatar
majestic0110 majestic0110 is offline Offline
Nearly a Posting Virtuoso
 
0
  #4
30 Days Ago
Help you to cheat......NO. My theory here is that your tutor gave you the .class files to see how a program works, and you are then meant to write the code yourself. You will not learn java by decompiling .class files and submitting them as your project. Forgive me if I am wrong here, but I have seen this stunt before...
Last edited by majestic0110; 30 Days Ago at 8:03 pm.
If you have a quality, be proud of it and let it define you. Add it to the world!
If you got your answer, please mark the thread as Solved. It saves time when people are looking to contribute threads or for answers!
Reply With Quote Quick reply to this message  
Join Date: Oct 2009
Posts: 5
Reputation: Mareshal is an unknown quantity at this point 
Solved Threads: 0
Mareshal Mareshal is offline Offline
Newbie Poster
 
-1
  #5
30 Days Ago
Why you people don't understand? IS JUST A SIMPLE BET WITH MY TEACHER. If I can modify his java text editor somehow, anything, a simple char, I can get a 10 for that lab. Does it mean I cheat if I prove him I can do something he can't?
Reply With Quote Quick reply to this message  
Join Date: May 2007
Posts: 4,438
Reputation: Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of 
Solved Threads: 510
Moderator
Featured Poster
Ezzaral's Avatar
Ezzaral Ezzaral is offline Offline
Industrious Poster
 
1
  #6
30 Days Ago
Well, evidently you it's something that you cannot do because you are here asking how to do it. I'd say you lost the bet.
Reply With Quote Quick reply to this message  
Join Date: Sep 2008
Posts: 1,568
Reputation: BestJewSinceJC is a name known to all BestJewSinceJC is a name known to all BestJewSinceJC is a name known to all BestJewSinceJC is a name known to all BestJewSinceJC is a name known to all BestJewSinceJC is a name known to all 
Solved Threads: 196
BestJewSinceJC BestJewSinceJC is offline Offline
Posting Virtuoso
 
0
  #7
30 Days Ago
I'm not arguing with you, or saying that I do or do not believe you, but reverse engineering software is not something we typically help with here.
Last edited by BestJewSinceJC; 30 Days Ago at 10:57 pm.
Out.
Reply With Quote Quick reply to this message  
Join Date: Oct 2009
Posts: 5
Reputation: Mareshal is an unknown quantity at this point 
Solved Threads: 0
Mareshal Mareshal is offline Offline
Newbie Poster
 
-1
  #8
30 Days Ago
You don't help because you don't know. Hehe, I've recompiled the program . thank you people, FOR NOTHING. And...I won the bet.

And a good programmer should know reverse enginering, otherwise he can't protect his programs
Last edited by Mareshal; 30 Days Ago at 3:25 am.
Reply With Quote Quick reply to this message  
Join Date: Dec 2007
Posts: 1,657
Reputation: javaAddict is a name known to all javaAddict is a name known to all javaAddict is a name known to all javaAddict is a name known to all javaAddict is a name known to all javaAddict is a name known to all 
Solved Threads: 223
Featured Poster
javaAddict's Avatar
javaAddict javaAddict is online now Online
Posting Virtuoso
 
0
  #9
29 Days Ago
Originally Posted by Mareshal View Post
Why you people don't understand? IS JUST A SIMPLE BET WITH MY TEACHER. If I can modify his java text editor somehow, anything, a simple char, I can get a 10 for that lab. Does it mean I cheat if I prove him I can do something he can't?

You made the bet with your teacher not we. If you want to win the bet then do what you promised:
And I told him I can do this until tomorrow

What should we help you for a bet?
If you had a problem with an assignment we would have helped since this is the purpose of this forum
Last edited by javaAddict; 29 Days Ago at 6:33 am.
Check out my New Bike at my Public Profile at the "About Me" tab
Reply With Quote Quick reply to this message  
Join Date: Dec 2007
Posts: 1,657
Reputation: javaAddict is a name known to all javaAddict is a name known to all javaAddict is a name known to all javaAddict is a name known to all javaAddict is a name known to all javaAddict is a name known to all 
Solved Threads: 223
Featured Poster
javaAddict's Avatar
javaAddict javaAddict is online now Online
Posting Virtuoso
 
0
  #10
29 Days Ago
Originally Posted by Mareshal View Post
You don't help because you don't know.
You are right, all the trained professionals here don't know how to recompile and you, a student, do.



Originally Posted by Mareshal View Post
Hehe, I've recompiled the program . And...I won the bet.
Good for you. I hope you did it on your own without any help and you won the bet fair and square.
Check out my New Bike at my Public Profile at the "About Me" tab
Reply With Quote Quick reply to this message  
Reply

Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC