Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 2 years ago.
Improve this question
I am going through a project where I have to check the plagiarism between two files.In two files there have some java code.That means if there are two files named a.java and b.java and in two files have some java code which was written in .java class and I have to check the duplicacy in percantage between the java code which was written the two files.
can anyone tell me how can I solve this problem?I am a beginner.
There are several ways to do so, but in general, you have to use third party service.
Example Solution 1:
Install plugin to your IDE. For example, if you are using Eclipse, PMD supports duplicated code checking.
Example Solution 2:
If you are using version control system like GitHub, you can add plugins to your repository and it will do the check for you. For instance, you can use plugin named Codacy. It is an automatic testing tool used in CI/CD, which supports duplicated code checking.
Related
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 5 years ago.
Improve this question
I'm not asking for an opinion here - just a fact: is there a plugin, tool, or technique that lets me write classes or at least method bodies directly in bytecode in Java in either Eclipse or IntelliJ, and what is it? I'm not looking for runtime codegen, I want this at compile time.
I found one here: https://plugins.jetbrains.com/plugin/8461-bytecode-editor but there is no download link and I have no idea how to build it (I tried, I really did). But it's basically everything I want.
In .NET I use the excellent IL Support plugin for this, but I haven't found a similar solution for Java.
There is a download link on that page but you don't need to download it directly so that doesn't matter. IntelliJ provides a plugin installer In Settings>Plugins. At the botttom of the Plugins page is a button to 'Browse repositories'
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
I'm working on a project that will be used to generate class diagrams from Java code. The tool takes jar-files as input and outputs Graphviz dot format files as output.
I know it's simple to find out inheritance and interface implementations using Java reflection with Class#getSuperclass and Class#getInterfaces. But I'm struggling to find out associations, compositions and dependencies. Can it be done with reflection or is there some external library that would help? Any example code you might be able to provide would be of great help.
Associations and compositions can be inferred from class fields, so Class#getDeclaredFields.
For dependencies you'd have to look at the code to see what classes might be used as variables, which you can't do using reflection. For that, you'd have to look at the bytecode of the .class files in the jar files, using a library such as Apache Commons BCEL.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 5 years ago.
Improve this question
I've got a rather large android project and I faced a need to create and manage some project description and documentation.
The areas that I want to describe is the big modules, logical parts of the project. Each module contains of a set of classes (lets say 10-20) which are not necessary are located in the same package.
Each module, in my idea, should have some text description of its core idea, use patterns and behaviour, plus the description of the classes, that are linked to that module.
I want to have a separate file with each module's description, and to link the classes, that are parts of a module to this module, fetch their description, create uml diagram and construct an html document, that is then uploaded to a server.
All this system should be integrated with git, the user should be able to check each branch's documentation.
Could you suggest some tools that are useful in achieving these goals?
Really good tool for this is the doxygen library. Here is the web-site: http://www.doxygen.nl/
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 8 years ago.
Improve this question
I use Eclipse for my day job, working on a enterprise java project. Here are some things I got used to working with Eclipse,
Most of the coding are done to interfaces and concrete classes are wired using factories or using spring dependency injection like,
InterfaceName obj=ObjFactory.getImpl(args)
I have to look at Class hierarchy often to go to the method that is being invoked, this is very easy in Eclipse (C+T)
Code completion for all methods (methods in different source files and from jars).
Highlight errors while editing.
Tracing call hierarchy
I tried Emacs some time back for shell scripting on a remote machine and I found that to be very useful.
I would love to use Emacs for my java development if there are tools out there which can help me do things that I do with Eclipse. Any suggestions?
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 2 years ago.
Improve this question
I am looking for a translator for translate Java ByteCode to Machine Native Code before execution to improve performance.
I heard that OpenOffice is made with JAVA, but I can't see any jar file in his installation folder, therefore, maybe there is a translator but I can't find it.
Does anyone know some tool or comercial product to do that?
Thanks!
There are multiple solutions. All are not ideal.
Take a look here (exe4j). To learn more read this article.
Give a look to Avian JVM. See my reply here to this question for pointers on how to embed it and what class libraries you can use to generate your stand-alone executable.
if you just need a managed language/platform, you can also use .NET/Mono AOT. See the mkbundle tool included with Mono 2.x.
Please have a look into https://www.graalvm.org/.
It could build a native image from your jar and run it as binary (native code).