ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Does anyone know? When I say PC I mean Windows, however, I would like to know the percentage of Macs that also have the Java Runtime Environment. I was considering what the viability was of creating desktop applications using Java as opposed to C++.
I think the percentage of Macs with a JRE is 100% -- it comes pre-installed with OS X, I believe. As for Windows, I'd wager probably a lot (definitely more than half, probably around three-quarters or more).
As for the viability of writing a desktop application in C++ or Java, there are a lot more computers with a JRE than there are with a C++ compiler and an operator who knows how to use it. That's one of the benefits of Java. It's all too unfortunate that Perl / Python / Ruby haven't caught on to that point of market penetration yet, but things may be heading in that direction.
As for the viability of writing a desktop application in C++ or Java, there are a lot more computers with a JRE than there are with a C++ compiler and an operator who knows how to use it...
i am confused by this because you dont need a c/c++ compiler to run a program.
i would assume that java is a lot less popular than 5 years ago. because grandma used to need it to browse the internet but now webpages are much more dependant on flash.
i am confused by this because you dont need a c/c++ compiler to run a program.
Yes, that's true; I mistakenly assumed that it would be necessary to compile the program from source in the case of e.g. multiple architectures or varying environments. Of course, that's not necessarily the case, esp. since he was inquiring specifically about Windows & OS X.
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789
Rep:
Quote:
Originally Posted by schneidz
i am confused by this because you dont need a c/c++ compiler to run a program.
That is perfectly correct. You do not need anything to run native code.
Quote:
i would assume that java is a lot less popular than 5 years ago. because grandma used to need it to browse the internet but now webpages are much more dependant on flash.
Java is indeed less popular in web pages, but far more popular on the server side, and possibly on standalone application side too.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.