Program to decompile jar or class files [closed] - java

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
I am looking to decompile either a complete .jar file or simply .class files.
I have been googleing around for about an hour now and havnt seem to find any tools to help me.
Most of the tools i found was either outdated or did not work.
I also found this post from stackoverflow but sadly all of the programs suggested can either not be downloaded or is out dated.

Well you have many alternatives: http://www.showmycode.com/ .
In practice, I have found JAD to be closely precise. JD-GUI is again quite good with eclipse like code viewer.
Edit (2015): Fernflower has picked up quite some hype over last couple of years. Personally I find it to be the best. IntelliJ uses it as default from Idea13 onwards (This speaks volumes as intellij is considered cutting edge as per tooling in java world is concerned). Easiest way to use fernflower would be to drag drop .class files on intellij. In case you wish to use it from command line, then this might help.

.jar files are just .zip files with some specific metadata files (META-INF/MANIFEST.MF), so they can be opened with any unzip program. (see http://en.wikipedia.org/wiki/JAR_%28file_format%29 for more info)
for the .class files therein, see this other question: How do I "decompile" Java class files?

Related

Java OpenSource library for versioning files [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 8 years ago.
Improve this question
My task description is something like this:
"Application should be able to store text/binary files in some filesystem storage. Every file has an author and date of uploading. Application should store all versions of files and provide abilities to review history/versioning tree".
We can't use DB solution here because we have another application that processes uploaded files and it requires original file version (build script which uses javac command). And this is not good idea to store files in the database.
So I'm looking for some ready-to-use solution and I want to avoid writing my own storage implementation.
I've googled some solutions and see jackrabbit library as a variant. It implements JCR specification. But also I saw some bad comments about JCR concept.
Please advise me something else.
Or is JCR good enough for my task?
That requirement sounds like source code version control. There are APIs for Git and Subversion, and probably for other less used systems. http://svnkit.com for example, a search for "git api" or "subversion api" will turn up others.

I want to write my java program from command prompt(no netbeans, no notepad) [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 8 years ago.
Improve this question
Anyone here remember how to write a java program from command prompt.
Earlier (5-6 years back) before BlueJ came, we use to write java programs in a Blue Black screen that is similar to one in TurboC++.
My system has netbeans installed, all paths are proper, I can even compile the programs by writing them in a text file with .java extension.
But i would like to do that in previous environment(see the image below), where we use to create the files, save them as .java, then go back to command prompt and execute the statements.
I got the image from google, but didn't find a way to open this.
A couple years ago, I spent a long time doing all my Java coding in Vim. It's easy enough; you learn the basic API enough not to depend on intelligent completion, and there are Vim features (like ctags) to give you a similar feature, though it's based on text rather than actual functionality. It also has Java syntax highlighting. It should work fine on Windows.
Build the project with Maven, and you're good to go.
You should probably install Cygwin. Spending time in the Windows command prompt is not good for your sanity.
Also, many Eclipse features can be accessed from the command line in a headless manner. I used to run the Eclipse formatter that way, so I could use my team's standardized format. I believe there are projects that let you access most Eclipse features directly from within Vim, if you want to go that way.

Alternative to dex2jar and jd-GUI? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 8 years ago.
Improve this question
it seems that either dex2jar and/or jd-GUI gives bad de-obfuscation even for the simplest code of if-else condition (they show a while(true) loop which has a return; on its first line .
are there any other freeware apps that do the same work of de-obfuscation? maybe something that can also use the mapping file of proguard ?
Actually the best alternative that I have tested is JEB Decompiler that works directly on Dalvik bytecode to generate the sources without conversion in Java bytecode(that is the main source of errors in decompilation procedure), but unfortunately is a commercial software a bit expensive for an individual.
Alternatively try Kivlad , but note that requires Ruby runtime 1.x to run, and is still an alpha release in development
Virtuous Ten Studio (VTS) is another nice tool that uses APKtool as engine, the quality of java src result is inferior to JEB and comparable to dex2jar + java decompiler, but the environment is very comfortable. (Has a donate license but works for free)

Need recommendatins on a Java open source project for an academic study [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a book, tool, software library, tutorial or other off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 8 years ago.
Improve this question
I'm looking for a Java open source project for an academic study on test cases.
I need a project with 20-40 KLOC and at least a 100 JUnit tests.
A project that was developed using TDD methodology is prefered.
Something that I can drop in eclipse and run all the tests with minimal overhead for setups.
Any recommendations?
It's amusing that you say "drop in eclipse", as some parts of eclipse were written with TDD and have relatively large numbers of LOC. You may want to go that route. I know, for example, that the Eclipse-based FORTRAN IDE project is one such endeavor.
The Spring framework? May be too large perhaps.
There are any number of projects you can use. You could look at the BouncyCastle encryption library.
http://bouncycastle.org/java.html
To help with your search, you could have a look at Koders (http://koders.com/), the source code search engine. They have information about LOC for open source projects.

Best source code formatter for Javascript? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
I've been digging through Stack Overflow as well as a number of Google searches, and I cannot find a satisfactory code formatter for JavaScript.
I have found several related tools, such as syntax highlighters and pretty-printers, but I am looking for a tool that I can ideally create a wrapper for in Eclipse and simply run from the menu bar. Hence, if any Java-based ones are available, that is a big plus. Free and/or open-source is preferred as well.
I am looking for something that my development group can use to maintain a consistent code style.
Edit: Thanks to kRON for linking to the format customizations page.
Edit: Related question on Stack Overflow.
This is by far the best I've come across: http://jsbeautifier.org/
Available as an online tool, or on the command-line using node.js or python.
The source code is available.
In one breath: Aptana Studio! Yes, it's Java based and free (Eclipse, as standalone or plugin).
You can also customize the formatting.
If you already use Eclipse, I recommend you to try Aptana, you can install it as an Eclipse Plugin.
For Eclipse IDE you can use JavaScript Code Formatter based on Goolge's Style Guide
For IntelliJ IDEA you can use the same js code formatter xml file , but previously you have to install a special plugin Eclipse Code Formatter Plugin, which solves the problem of maintaining a common code style in team environments where both IDEA and Eclipse are used
If you also need Java programming I can recommend 'IntelliJ IDEA'
It offers excellent JavaScript formatting and refactoring out of the box.
Have you tried jsfiddler. It's great for trying things out with Javascript. Built in JSLint & something called Tidy. Not sure whether that infers jstidy Piotr Zalewa is the guy who wrote it. May be worth giving him a Tweet #zalun to confirm.
If you are using notepad++, you can try jsminnpp plugin

Categories

Resources