944,161 Members | Top Members by Rank

Ad:
  • Java Discussion Thread
  • Unsolved
  • Views: 741
  • Java RSS
You are currently viewing page 1 of this multi-page discussion thread
Oct 28th, 2009
-1

[help]How to recompile java to class?

Expand Post »
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?
Similar Threads
Reputation Points: 9
Solved Threads: 0
Newbie Poster
Mareshal is offline Offline
5 posts
since Oct 2009
Oct 28th, 2009
0
Re: [help]How to recompile java to class?
You decompiled them? Implying the source code wasn't yours, and we don't give help with reverse engineering.
Reputation Points: 874
Solved Threads: 352
Posting Maven
BestJewSinceJC is offline Offline
2,758 posts
since Sep 2008
Oct 28th, 2009
0
Re: [help]How to recompile java to class?
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?
Reputation Points: 9
Solved Threads: 0
Newbie Poster
Mareshal is offline Offline
5 posts
since Oct 2009
Oct 28th, 2009
0
Re: [help]How to recompile java to class?
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; Oct 28th, 2009 at 8:03 pm.
Reputation Points: 256
Solved Threads: 72
Nearly a Posting Virtuoso
majestic0110 is offline Offline
1,306 posts
since Oct 2007
Oct 28th, 2009
-1
Re: [help]How to recompile java to class?
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?
Reputation Points: 9
Solved Threads: 0
Newbie Poster
Mareshal is offline Offline
5 posts
since Oct 2009
Oct 28th, 2009
1
Re: [help]How to recompile java to class?
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.
Moderator
Featured Poster
Reputation Points: 3239
Solved Threads: 839
Posting Genius
Ezzaral is offline Offline
6,761 posts
since May 2007
Oct 28th, 2009
0
Re: [help]How to recompile java to class?
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; Oct 28th, 2009 at 10:57 pm.
Reputation Points: 874
Solved Threads: 352
Posting Maven
BestJewSinceJC is offline Offline
2,758 posts
since Sep 2008
Oct 29th, 2009
-1
Re: [help]How to recompile java to class?
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; Oct 29th, 2009 at 3:25 am.
Reputation Points: 9
Solved Threads: 0
Newbie Poster
Mareshal is offline Offline
5 posts
since Oct 2009
Oct 29th, 2009
0
Re: [help]How to recompile java to class?
Click to Expand / Collapse  Quote originally posted by Mareshal ...
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:
Quote ...
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; Oct 29th, 2009 at 6:33 am.
Sponsor
Featured Poster
Reputation Points: 1014
Solved Threads: 447
Nearly a Senior Poster
javaAddict is offline Offline
3,260 posts
since Dec 2007
Oct 29th, 2009
0
Re: [help]How to recompile java to class?
Click to Expand / Collapse  Quote originally posted by Mareshal ...
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.



Click to Expand / Collapse  Quote originally posted by Mareshal ...
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.
Sponsor
Featured Poster
Reputation Points: 1014
Solved Threads: 447
Nearly a Senior Poster
javaAddict is offline Offline
3,260 posts
since Dec 2007

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Java Forum Timeline: 4 short programs
Next Thread in Java Forum Timeline: check if a date type is null





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC