Add to Google

Java De/compiler

free web hosting
Open Discussion > CONTRIBUTE > Computers > Software

Java De/compiler

LooneyMapleStory
Hey I'm currently using Netbeans as my Compiler and jd-gui as my decompiler I want to know if there is anything more effective when i use jd-gui is messes up the source code and deletes the @overrides and comment outs

Comment/Reply (w/o sign-up)

Nabb
I don't have much experience in this area, but I think cavaj is good. Har har, it's java-c backwards.

Also, do comments even stay in the code when you compile..? Unless you mean something else =\

Comment/Reply (w/o sign-up)

LooneyMapleStory
Well yes the documents do stay in the .jar when i compile the only issue is that from the .java extension the file turns into a .class file.
but a .jar is just a compressed zip file with the class files in them meaning, when a java file is compiled the compiled version of the file is a .class and when it is compiled as a project it is saved in a compressed .jar file in which all of the .class files are, you can use winRAR to unzip the .jar but you're only going to get .class files which are just the compiled version...

Comment/Reply (w/o sign-up)

dimumurray
QUOTE(LooneyMapleStory @ Aug 8 2008, 11:29 PM) *
Hey I'm currently using Netbeans as my Compiler and jd-gui as my decompiler I want to know if there is anything more effective when i use jd-gui is messes up the source code and deletes the @overrides and comment outs


It may be that 'javac' removes all comments by default when you compile your source files to make your files more compact.

It may also be that the NetBeans IDE either removes comments from the code prior to compilation in an effort to optimize or it runs a custom code obfuscator on your class files following compilation.

Obfuscation is a type of security measure employed by developers who want to prevent their proprietary source code from being easily understood if de-compiled. They usually strip your code of comments, change the names of variable references on the symbol table so that they are practically unfathomable and scramble the formatting of the code to make it difficult for prying eyes to decipher (without messing with your code's logic). If obfuscation is the case then NetBeans may have some option setting somewhere that disables it.

You could try compiling your source from the command-line prompt using 'javac' and see if there is a difference. You may need to locate the '\bin' sub-folder in the folder where your JDK files are installed (usually 'C:\Program Files\Java\jdk\bin' ) to run 'javac'. I would also suggest that you set the folder in your system path (if it's not there already), that way you can run 'javac' and 'java' from any instance of a command-line prompt...

 

 

 


Comment/Reply (w/o sign-up)

LooneyMapleStory
QUOTE(dimumurray @ Aug 10 2008, 03:01 AM) *
It may be that 'javac' removes all comments by default when you compile your source files to make your files more compact.

It may also be that the NetBeans IDE either removes comments from the code prior to compilation in an effort to optimize or it runs a custom code obfuscator on your class files following compilation.

Obfuscation is a type of security measure employed by developers who want to prevent their proprietary source code from being easily understood if de-compiled. They usually strip your code of comments, change the names of variable references on the symbol table so that they are practically unfathomable and scramble the formatting of the code to make it difficult for prying eyes to decipher (without messing with your code's logic). If obfuscation is the case then NetBeans may have some option setting somewhere that disables it.

You could try compiling your source from the command-line prompt using 'javac' and see if there is a difference. You may need to locate the '\bin' sub-folder in the folder where your JDK files are installed (usually 'C:\Program Files\Java\jdk\bin' ) to run 'javac'. I would also suggest that you set the folder in your system path (if it's not there already), that way you can run 'javac' and 'java' from any instance of a command-line prompt...

Ahah I got it =D Thanks for all of the help this is what i did, I made a Batch file with the java extensions and then put the path file of the .jar and it worked flawlessly! Thanks once again and have a great day!

Comment/Reply (w/o sign-up)

dimumurray
QUOTE(LooneyMapleStory @ Aug 12 2008, 12:59 AM) *
Ahah I got it =D Thanks for all of the help this is what i did, I made a Batch file with the java extensions and then put the path file of the .jar and it worked flawlessly! Thanks once again and have a great day!

You're welcome biggrin.gif...However I can't say I'm sure as to what you actually did huh.gif It sounds as if you ran the code from the command-line and I am also assuming that you set the path in the batch file...but did you try setting the path globally via [ Control Panel->System->Advanced->Environment Variables ] ...
that way you wouldn't have needed to write a batch file...Still I am curious about one thing...Do you have to run the batch file every time or is there someway to setup your environment so that it runs automatically every time?

Comment/Reply (w/o sign-up)



Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

Recent Queries:-
  1. de-compiler .class - 11.38 hr back. (1)
Similar Topics

Keywords : java, de, compiler

  1. Java Obfuscator
    (1)
  2. Wysiwyg Jscript Editor
    I need a good Java Script Editor (3)
    Can any of you guys give me a good Java Script Editor. I really need one badly. I make Java Script
    goodies as an addon for my web site but it really takes a lot of my time to type all those similar
    code blocks over & over again, Could any one please provide me such an editor as Microsoft Visual
    Basic or Visual C++. I mean the IDE shold have similar features. ****Above all it should be a free
    one**** Thanks in adv. Dave....
  3. Java Updates On My Machine
    I have several versions (3)
    As per the following image, I have several java updates stored on my machine, and I wondered if the
    older ones could be deleted and have the java runtime perform okay? I'm simply trying to
    clean out a bunch of junk on my machine... make some HDD space.....
  4. Swf To Fla Decompiler
    (3)
    Hi all, i want to share with all you guys a program that i've been using for the last 4 months.
    The program name is Sothink SWF Decompiler and it is pretty cool, it have a lot of features, as
    for exemple: You are surfing in the net and you see a beatiful flash movie, you just need to do
    right mouse click and then export to swf decompiler and voilá you got yourself a *.fla to open with
    flash and edit it to yourself!! /cool.gif" style="vertical-align:middle" emoid="B)" border="0"
    alt="cool.gif" /> See this little flash demonstration . You can take it here . I....
  5. Java Ide
    Which do you like the best (5)
    I have Jcreator pro installed,and have been able to find myself around in it ok so far I have done
    the hello world program,and compiled,and ran it.What java IDE are you guys using or which do you
    like the best,and why?....

    1. Looking for java, de, compiler

Searching Video's for java, de, compiler




advertisement



Java De/compiler