Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 7 years ago.
Improve this question
I am wondering about the efficiency of small Java applications. I would like to write a small screenshot application that sits in the taskbar tray. Since this application will be very small and always running, is it worth the overhead of having a JVM running in the background all the time? Thank you in advance for any help.
EDIT: Rephrasing question: Is this an example of something that would be better written in an application that could be run natively instead of Java which requires a JVM to run?
As said above, you have to know whether it is worth it.
If you want to minimize the memory footprint of your application have a look at the guide from Oracle:
Tuning For a Small Memory Footprint
Related
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 7 years ago.
Improve this question
Working on this desktop application, every thing is going great. Had some troubles her and there, but fixed every single on of them.
The only problem is that my app look ugly, that is what my boss thinking.
Done some research found javaFX but a lot of forums calling it dead or dying
is true ??
And if not any one has a good tutorial on it
JAVAFX
I liked it a lot, but I do fear they came a bit late to the show. It is also relative complex (but nicer than swing, I find) compared to web frontend frameworks
On the last devoxx conference, Oracle profiled javaFX as a platform for mobile. Maybe it has a chance there.
For tutorials: just google....
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 7 years ago.
Improve this question
i used JRebel for few days...but using eclipse Kepler version i did not feel much difference in program execution and Project build, i followed same procedure as they mentioned on their official website. Does JRebel really improve programming efficiency ?
I think this question might get closed as it is very generic but if it doesn't then I think JRebel does not speed up build time or execution but allows classes to be updated on the fly. This can negate the need for server restarts in web development and it is here where JRebel will save time (the time it takes to restart and redeploy an application once a class file is changed.
There is a nice video here
http://zeroturnaround.com/software/jrebel/
Hope this helps
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 9 years ago.
Improve this question
I am busy doing some research and I need to do a comparison between two methods of system monitoring. I have to compare the total memory of overhead and computation required when queries are made to an external software package (i.e one that I did not create but running on the same system) as well the overhead in my software package (written in JAVA) when including all the libraries and making all the queries.
Does anyone have any suggestions on how I can approach this task to achieve these goals? Are there any general profiling solutions available that just "plug" into your system monitor and retrieve the system statistics this way? Or just a pointer in the right direction would be more than helpful right now as I am completely stuck :/
Thanks in advance.
You can use VisualVM (For sure in Windows, but don't know about Linux) (or) You can write a simple program using JMX API.
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 8 years ago.
Improve this question
but of strange question here, but i have an existing windows product developed with .net framework and i want to create an equivalent for java - i don't want to use mono
Java will actually execute on every platform that has a JVm, anyway to lock this down?
I don't want it to be runnable on windows for example.
With regards to mono, i have nothing against it but Java seems to have more compatible libraries. Anyone have any comments on this?
You can use System.getProperty("os.name")to detect the operating system in the main method, then exit the application if it's not what you expect.
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
I want a program to get information about RAM
How can i do that?
There's a couple of memory-related methods in the Runtime class, but note that they only give information about the amount of memory available to (or used by) the JVM, not the hardware it runs on.
Generally, Java is the wrong language to do this kind of thing, since it requires access to OS APIs that Java does not provide.
Most of the information you need will be contained in the Runtime class. Have a look at the link. It should be straightforward. If you run into problems with it, I will try to help you out further.