Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 7 years ago.
Improve this question
I have just downloaded a java library. It is zip file. After extracting I have found that it consists of jar files. Now what am I supposed to do with it? Where do I copy these files so that I can access them from the java code.
The is an excellent answer to that in a related question.
Basically you tell the compiler and/or the runtime explicitly where the jars are.
Good luck!
Actually, you can extract your libraries where ever you want, but I you have to pass their path as an arguments to the java and javac commands in order to compile and to run your application
Related
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
I am new to Java development and just saw a file with .bak extension that looks like a java class but it is not. So I am wondering what is the purpose of the .bak files in general and why and when should I use it?
There is no special purpose for java files (or tooling here).
bak typically resorts to backup.
Such files get generated by various tools. These tools create bak files to avoid overwriting your original file. So there is no specific notion towards "java technology" here.
Simply look into the tools (mainly: your editor), and see if their help tells you about automatically creating backup file. The old Windows notepad editor did that for example.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
According to http://www.eclemma.org/jacoco/trunk/doc/offline.html, when doing offline instrumentation, I need to provide the original class files to generate the report. Exactly how do I do that with Maven? I know the original class file is saved under generated-classes folder so right now I'm just copying the generated-classes folder over the classes folder when running generating the report but is there a way to specify the original class file path within the POM file? I couldn't find any examples anywhere. Thanks!
jacoco-maven-plugin provides instrument that comes in a pair with restore-instrumented-classes. And there is an example of usage in JaCoCo documentation - http://www.jacoco.org/jacoco/trunk/doc/examples/build/pom-offline.xml
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
How to execute a .bat file with java program?
Thanks in advance
bat files cannot be converted directly to jar files.
But you can implement bat file logic in a java application, using, for instance Apache Commons Exec and when it is compiled, package it as a jar file.
Do you know the rationale behind the question, the reason why they want you to do it ? Creating a jar requires development in java.
I think you need more information how the final application will be deployed. They probably have additional requirements which made them decide it could no longer be developed in a shell scripting language but requires a real programming language.
Make sure you understand the 'why?' before thinking about the 'how?'.
good luck
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
How can I generate the API documentation for a certain project?
What do I need exactly? javadoc plugin? rt.jar?
Could anyone describe the whole process?
Right now, I am stucked here:
I have documented all my classes and methods with javadoc comments. When I try in Eclipse:
Project - Generate Javadoc -> Javadoc Command -> Configure -> C:\Program Files\Java\jre7\bin
and I CANĀ“T FIND javadoc.exe!
Is javadoc.exe included with the jre7?
Javadoc is not part of the JRE, but of the JDK.
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 9 years ago.
Improve this question
I am trying to figure out how they created all of the methods in java, because w/o these objects we wouldn't be able to do much. If there is any website you could link me, it would be much appreciated. & sorry if i am off topic.
http://grepcode.com/snapshot/repository.grepcode.com/java/root/jdk/openjdk/7-b147/
Here you can see the source code for all the standard library. For example, the String class:
http://grepcode.com/file_/repository.grepcode.com/java/root/jdk/openjdk/7-b147/java/lang/String.java/?v=source
I think the entire source for the standard lib also comes with the JDK, in some folder somewhere, but I don't remember.
Of course the standard library is not all that makes java, because you also have the JVM. But since you're talking about objects, I guess that's what you want.