Sup java masters , ive got a question for ya. Ive got an .exe => I open it and find inside some libraries and .class files .
Can I edit some of those .class files and replace the old ones or maybe pack the .exe again ?
Welcome to the Java Programming Forums
The professional, friendly Java community. 21,500 members and growing!
The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.
>> REGISTER NOW TO START POSTING
Members have full access to the forums. Advertisements are removed for registered users.
Sup java masters , ive got a question for ya. Ive got an .exe => I open it and find inside some libraries and .class files .
Can I edit some of those .class files and replace the old ones or maybe pack the .exe again ?
Maybe, but it won't be easy. class files are output by the javac compiler. A class file's format is documented so you can probably take it apart and build a new one with a lot of careful programming. It would be easier to work with the source file that created the class file.
I don't know anything about opening an exe file, removing its contents and packing it again.
If you don't understand my answer, don't ignore it, ask a question.
n_byte (October 25th, 2013)
Java does not create exe files. This doesn't seem like a java programming problem.
Have you tried asking about this on a forum for exe files?
If you don't understand my answer, don't ignore it, ask a question.
n_byte (October 25th, 2013)
Do you have access to a Search Engine?
If you don't understand my answer, don't ignore it, ask a question.
n_byte (October 25th, 2013)
Note the name of this web site. Web sites do exist that will help you find other web sites. One of them starts with "Google."
I would also recommend thoroughly reading the license of the 'exe' you with to alter - in most cases software licenses prohibit reverse engineering, which is exactly what you seem to be trying to do.
Nope, cuz it's my own program.
I've read this Using JAR Files: The Basics (The Java™ Tutorials > Deployment > Packaging Programs in JAR Files) : How can i ipen the Java archive tool ? Where is it ?
The jar program is in the JDK's bin folder.
If you don't understand my answer, don't ignore it, ask a question.
n_byte (October 25th, 2013)
In post#2how can I edit a .class file
There might be some programs out there that do that. I've never seen one.A class file's format is documented so you can probably take it apart and build a new one with a lot of careful programming.
If you don't understand my answer, don't ignore it, ask a question.
See the javac program for compiling java programs.
If you don't understand my answer, don't ignore it, ask a question.
Ive got a problem with the jdk exe's (javac, jar tools etc) If i double click them , they open and close immedeatly. WHY ?
They are mostly commandline programs. No GUI.
How many months have you used a computer?
If you don't understand my answer, don't ignore it, ask a question.
I can use those .exe by opening cmd and typing name.exe
Is this the only way ?
Or use a batch file.
If you don't understand my answer, don't ignore it, ask a question.