Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » Compiling(Building) Changes(fixes) .class while I don't need that.(Using java builder to build my edited project, (For this time it's emulated lineage 2 server) More details in topic)
Compiling(Building) Changes(fixes) .class while I don't need that. [message #747047] Sun, 23 October 2011 22:12 Go to next message
Kami  is currently offline Kami Friend
Messages: 1
Registered: October 2011
Junior Member
So basically I'm new to java,(Well i came from C# so its almost the same),
I started working on some emulated server files,
In this case :
I decompile whole .jar , file full of .class files,
In eclipse started new project (around the folder where i extracted source)
And new project was made perfectly (Ofcorse lot of errors where in there, but just because i decompile and use just one .jar file out of package and that shouldn't be the problem) The main problem for me, is when i try to build project it compiles .java files to .class files perfectly, Just the thing java compiler dose is
Fixes errors...
for example I had :
config.java(Not compiled yet)
 import gnu.trove.TIntIntHashMap;
import gnu.trove.TIntObjectHashMap;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.InputStream;
import java.io.OutputStream;
import java.math.BigInteger;
import java.util.Arrays;
import java.util.List;
import java.util.Properties;
import java.util.StringTokenizer;
import java.util.logging.Logger;
import javolution.util.FastList;
import net.sf.l2j.gameserver.util.FloodProtectorConfig;
import net.sf.l2j.util.StringUtil; 


And after fixing and cleaning It results me with .class files like it :


 package net.sf.l2j;

import FastList;
import TIntIntHashMap;
import TIntObjectHashMap;
import java.io.File;
import java.util.List;
import java.util.Properties;
import java.util.logging.Logger;
import net.sf.l2j.gameserver.util.FloodProtectorConfig; 


Since i wanna same old file just with my custom edits without any fixes with all errors kept,
How can i achieve that? Maybe i should download any other builder/compiler for eclipse as plugin or something?
Thank you for help.
Re: Compiling(Building) Changes(fixes) .class while I don't need that. [message #754334 is a reply to message #747047] Wed, 02 November 2011 08:26 Go to previous message
Satyam Kandula is currently offline Satyam KandulaFriend
Messages: 444
Registered: July 2009
Senior Member
If I understand your question correctly, you are telling that the decompiler output should be same as the source file. I don't think that is possible.
Previous Topic:how do I sign a Jar file?
Next Topic:Error symbol not shown in Navigator view
Goto Forum:
  


Current Time: Thu Apr 25 14:34:19 GMT 2024

Powered by FUDForum. Page generated in 0.02642 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top