the purpose of .bak files in java [closed] - java

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.

Related

What is EMX files [closed]

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 2 years ago.
Improve this question
What is EMX files and why do we use it. I'm doing some analysis and here I got these files. I explored and get to know that it is something related to UML but I'm not clear on this.
File extensions are free. So the name of an extension is not sufficient to give assurance about its content, unless it’s a format used by a popular software package. Name conflicts are not uncommon.
If narrowing down the search with some contextual information such as XML and UML that you provide in the tags, it seems to be a file format used by Rational Software Architect to save UML models, according to this and this website of other popular UML tools.
You now have to confirm this hypotheses by analyzing the file content.

Can I use a program via java? [closed]

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 5 years ago.
Improve this question
My question is simple:
Is it possible to use a program via Java? Meaning, can I for example code in java exactly what I want my Microsoft Word file do? Add paragraphs, lists,import a picture, etc?
Short answer: Yes. Some programs allow you to use scripts and such, that is the beauty of open source software.
To actually edit the document you can use Apache POI which is an API for Microsoft Documents. Granted it cannot handle .docx but simple text documents. You may also want to take a look at docx4java which supports .docx, .pptx and .xlsx files.

Where should I move Java library jar files that I downloaded? [closed]

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

How to make custom file extension in java like .mylib .db .rmpdb? [closed]

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 7 years ago.
Improve this question
I am going to develop RCP Desktop Software in which I have mechanism like Import/Export data for that if I export my data then one secured extension file should be created which I will be able to import in this tool only. Same like .java .sql .db ect. Steps or Code would be appreciated.
You can do this
File myFile = new File("myfile.rmpdb");
You can then pass this file object to a Writer. Nothing actually stops you from having custom extensions. You can even have files which have no extensions.
However, as Pherion mentioned in the comment, the OS will not know how to handle this. Your program/tool will have full responsibility to know how to read/create this type of file.

How to apply Java patches? [closed]

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 8 years ago.
Improve this question
Basically, I'm looking to find out how to apply Java patch files using Java. So, to sum that up, I need Java code to apply a patch file to a java source file.
Cheers!
There are many ways to extend functionality of the already developed Java application.
You can for example use external non-runnable *.jar files with some extra classes. To do so, you have to first implement proper "uploading" functions in your app, e.g. by using custom ClassPath objects, which is nicely described here, or you can try to use multi URLClassLoaders, which is described here.
There is also another approach, which allows you to call external methods in form of a String, but I haven't tested it yet, altough you can read about it here.

Categories

Resources