Free Games Forum
Free Games Games Forums Music Forums TV Forums

  Free Games Forum Home FORUM
HOME
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN
Rules & FAQ RULES / FAQ
REPORT SPAM

Free Games Forum: Game Technology: Javascript Coding:
editing java class files

 

 


pimp28j
Newbie

Oct 13, 2005, 7:13 AM

Post #1 of 3 (1138 views)
Shortcut
editing java class files Can't Post

Ok my I have this java class file (not rs) that I wanted to edit and save it, and reload it into the game. So I downloaded dj java decompiler and loaded the script. Edited it saved it. Put it back in the appropiate folder, but when I load the game back up the files are still the same. I asked my friend who does this alot and he said I have to compile the java file or recompile the class file into a new .class one. I dont understand that compile tut up there. So does anyone have a official compile program or knows how to use the compile option in dj java decompiler because I get a error when I try. Or you could explain the tutorial above on compiling. It would be much appreciated..thx.



Mr_H
Newbie

Oct 13, 2005, 2:04 PM

Post #2 of 3 (1130 views)
Shortcut
Re: [pimp28j] editing java class files [In reply to] Can't Post

If you open up a .class in DJ, it will output a .jad. Thats a decompiled version, but anyways, you can just open that up, and save it as blah.java.

Then when you put it back in the JAR, you cant use Winrar, you need to use jar.exe, whick comes with JDK. You can make a batch file like this
-----
@echo off
jar cf JARNAME.jar *.class
pause
-----
But yes, you need to compile it. Ill look at the tutorial real quick, and edit this.

EDIT: I look at that tut, and it assumes you have JDK installed. Check out www.java.sun.com, or Downlaod JDK from here: http://java.sun.com/j2se/1.5.0/download.jsp

Once you instal that, I can help you set up your Env Vars, if you want, but you dont need to.




MSN - mrh@illusion-x.net

(This post was edited by Mr_H on Oct 13, 2005, 2:08 PM)


DriveMyAlien752
Member

Nov 1, 2005, 12:02 PM

Post #3 of 3 (1104 views)
Shortcut
Re: [pimp28j] editing java class files [In reply to] Can't Post

Whenever you decompile them, edit them and save them back as .java files. After you are done compile them by using this code:
"@echo off
javac *.java
pause"

without the quotes and then re-implement it into the game. That should work. Any more JAVA questions you can contact me on MSN at raptman123@hotmail.com

 
 
 


Search for (options) Web Design by Web Ideas - Page loaded in: 0.10 s on (CGI/1.1)