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.
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 completely new to cgi concepts.
I'm given a task to convert a Perl cgi script to Java program.
I understood that the require 'file.ext' command in Perl includes the file available for code in the Perl script.
Because of the very limited resources and improper documentation I couldn't find any proper info.
Is there any Java equivalent to do the same action that require in Perl does?
The paradigms do not map at all. In Perl, require simply reads a file and runs the code in it, and everything else happens as side effects of that. In Java, your code must be compiled, and classes are included automatically when you compile your program. See Extend a java class from one file in another java file for more answers on this topic.
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 7 years ago.
Improve this question
First of all this is just a fun project. I have a idea to make a notebook software using java.
i know there are many softwares,but this is for my knowledge. I need do following tasks in my application,
Expand typing area when neccessary (like in Onenote)
Draw shapes and edit shapes
Add code,syntax inside a note and it can be move (can i add this part to a jPanel?)
Add comments to a line in a bubble
Add some simple notes like sticky notes in a note
Also i need to add a mini map of a note (How to get the copy of the working note?)
(Solved) 07. Also I decided to use javaFX to create the interface, Is JavaFX good for my project?
Can i do all of these in java?
If can please give me some guide. Thanks in advance.
Yeah.. It is definitely possible to write a code for your requirement in javafx. Since you are a beginner start with this documentations.
You can download Javafx documentation in the following link.
http://www.oracle.com/technetwork/java/javase/documentation/java-se-7-doc-download-435117.html
Also I would recommend you to download this JavaFX SDK, which includes all the documentations.
http://javafx.com/downloads/
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'm new to Java and I completely have no idea how to do this. I have two separate Java applications and I want to sent a double value from the first application to the second application in order to use it in a calculation method then send the result back to the first application.
what is the easiest/ shortest way to do that?
Create .jar of your first application which contains your calculation method.
And use this .jar as library in your second application.
This is the easiest way
Reference Link : Creating a java library with Eclipse
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.