I'm supposing I have built a nice desktop application written in Java and I want to distribute it to some friends, colleagues, customers,.. in order to use it on their everyday business. Many of them uses Windows, other OSX and no one of them knows Java or programming, they are simple users of computer, so Outlook, Google Chrome, ad-hoc softwares for business (crm, management, ..). I don't want to annoy them saying 'You have to install Java prior to execute the jar file' because makes my software less nice than it really is, and makes the installation not user-friendly.  Is there a way to deploy a Java application in exe, dmg, pkg,.. formats in order to have an installation wizard with custom options (such as 'Company Name', 'Telephone', 'Where do you want to install?', 'Serial code',...), an easy auto-created icon on the desktop to launch the software, an uninstaller to eventually remove the files, and a prior check of the Java version (if installed check the version and eventually 'Follow this link to update Java', if not 'Please follow this link and download Java')?
121340
I'm not looking for java-web-start, I'm looking for a thick-client application installation toolkit.  I've got a stand-alone application that consists of several files (jar files, data files, etc) and would need to do some pretty standard installation tasks, like asking the user for target directories, have them locate some parts of their system - choose some of the per-machine or per-user configuration options and possibly try to detect some of the machine settings for them.  I'm looking for something which is like the MSI or other wizard driven installation applications.  What's a good installer for Java?  It would be ideal if it were cross-platform capable (Linux, Mac OSX and Windows).
8558
I would like to ask a very basic question but I have never thought about it before. Well, when someone installs an application from terminal, he has to add the repository first, right? On the other side, when someone installs an application from the Ubuntu Software Center, is the repository then added automatically?  I am asking those questions to figure out this: When I run update and then upgrade, will this application be upgraded or not? Is the result same in two options?
37230
I have run    sudo apt-get install openjdk-7-jre   It says   Reading package lists... Done Building dependency tree        Reading state information... Done openjdk-7-jre is already the newest version. 0 upgraded, 0 newly installed, 0 to remove and 229 not upgraded.   However, In my /usr/share/applications folder, there is no openjdk-7-jre.desktop. The only file I have found on my computer related to openjdk is OpenJDK Java 7 Policy Tool. What have I done wrong? I am using it to be able to run .jar files with a doubleclick. I can run them from terminal already, but there is no open with option for java
37050
I have tried many tutorials but none of them are clear enough. I have also tried installing it using Wine but it won't update and Wine goes gray and stops working.  Does anybody know an easy way to install Minecraft though the Java file without using Wine?
93157
I installed Debian 8, I would like to install Java JRE and JDK. I use  and it works.  But, I am afraid because it's a script hosted in a repository. I would like to understand why it doesn't work when I put the extract of  in /usr/java/jre1.8.0_73 directory as . I added the path variable with PATH=/usr/local/jdk1.8.0/bin:$PATH export PATH as explained in  but it doesn't work.  Even if I try to install OpenJDK, the package isn't found. I don't understand why it's so complicated to install Java on Debian; it is very simple on Ubuntu. I would like someone give me step-by-step instructions to install it.
64247
What are ways to install/uninstall programs in Ubuntu. I will mention only .deb since it is the official package format and for example installing a .sh or .run program can typically be as simple as (In latest Ubuntu) ./program.sh or sh program.run.  Also note that am talking about HOW to install packages IN Ubuntu, not talking about downloading a new installer (Like some Super Cow Software Center Duke Nukem version from sourceforge or something). Only tools that already come in the repositories (In any of the 4 standard ones, main, universe, restricted or multiverse).  Take into consideration all GUI and terminal ways of doing it, with basic format of doing the installation. With this in mind I am talking for example about Software Center, synaptic, apt-get, aptitude, dpkg, etc... a way to show all tools that are available in Ubuntu to install deb packages.  NOTE - Forgot, this should be Community Wiki since it will have all ways a user can install/uninstall something. Like a friendly guide on doing that.  UPDATED question to remove the confusion some are having about sh/run files.
35063
I am trying to compile a java program I found on the internet and it says that I must check if javac is installed. I installed the JDK a long time ago so it should be working but I get command not found error:    how can this be resolved?
60127
I have Java on my Ubuntu 16.04 system, but every time I try to install a program / package I get an error:  Do you want to continue? [Y/n] y Setting up oracle-java8-installer (8u131-1~webupd8~2) ... Using wget settings from /var/cache/oracle-jdk8-installer/wgetrc Downloading Oracle Java 8... --2017-08-14 19:20:07--  http://download.oracle.com/otn-pub/java/jdk/8u131-b11/d54c1d3a095b4ff2b6607d096fa80163/jdk-8u131-linux-x64.tar.gz Resolving download.oracle.com (download.oracle.com)... 188.43.76.48, 188.43.76.74 Connecting to download.oracle.com (download.oracle.com)|188.43.76.48|:80... connected. HTTP request sent, awaiting response... 403 Forbidden 2017-08-14 19:20:08 ERROR 403: Forbidden.  download failed Oracle JDK 8 is NOT installed. dpkg: error processing package oracle-java8-installer (--configure):  subprocess installed post-installation script returned error exit status 1 Errors were encountered while processing:  oracle-java8-installer E: Sub-process /usr/bin/dpkg returned an error code (1)   How can I fix this?
61795
Mozilla announced that NPAPI will not be supported since the released version 52. This means that Java will not be supported either.  Chromium based browsers do not support java for some time already.  At java.com they suggest using Internet Explorer or Safari.  I am using a Java app to sign banking documents. Is there any way to use Java in Ubuntu?
97558
I've been trying to install the Java plugin for Chrome for a couple hours now, and I figured it was time to ask people with more experience. I can't seem to get it working. My current Java version is the 64-bit OpenJDK 1.6.0_24. I tried installing the IcedTea plugin to no avail. I have Ubuntu 12.04 64-bit installed at the moment.  When I tried testing if java was enabled in Chrome, any website with a Java applet would not load (when I disabled the plugin, they loaded, but not the applet).  I followed the instructions from here:   which said to create this script and run it:  JAVA_HOME=/usr/lib/jvm/jdk1.7.0 MOZILLA_HOME=~/.mozilla mkdir $MOZILLA_HOME/plugins ln -s $JAVA_HOME/jre/lib/i386/libnpjp2.so $MOZILLA_HOME/plugins   Note: You may need to change the value of JAVA_HOME so that it correctly points to your installation of the JDK. 64-bit users will need to change the final line to:   ln -s $JAVA_HOME/jre/lib/amd64/libnpjp2.so $MOZILLA_HOME/plugins   but this did not work as well.  I just test it in Firefox and it's working. Still nothing for Chrome
58701
I just want to clarify one thing. This is not a question on which one is better, that part I leave to someone else to discuss. I don't care about it. I've been asked this question on my job interview and I thought it might be useful to learn a bit more.  These are the ones I could come up with:   Java is "platform independent". Well nowadays you could say there is the  project so C# could be considered too but I believe it is a bit exaggerating. Why? Well, when a new release of Java is done it is simultaneously available on all platforms it supports, on the other hand how many features of C# 3.0 are still missing in the Mono implementation? Or is it really  vs.  that we should compare here? Java doesn't support events and delegates. As far as I know. In Java all methods are virtual Development tools: I believe there isn't such a tool yet as Visual Studio. Especially if you've worked with team editions you'll know what I mean.   Please add others you think are relevant.  Update: Just popped up my mind, Java doesn't have something like custom attributes on classes, methods etc. Or does it?
78082
How do I install Java for Ubuntu 20.04?
8935
While installing Android Studio on Ubuntu 14.04 I get the message that my Java version (javac 1.7.0_79) is causing problems. I found a  of how to install a newer Oracle version of Java:  sudo apt-add-repository ppa:webupd8team/java sudo apt-get update sudo apt-get install oracle-java8-installer   However I'm afraid that this might overwrite my existing open-jdk version of Java. Since I don't know which of my programs depend on Java, I fear that this could crash these other programs.  Is there a way to make sure apt-get doesn't overwrite my previous Java? I would basically like to have installed both and be able to switch between them manually, depending on what version I need.
35187
As many are painfully aware of, Oracle continues to not only bundle the Java installation with the useless Internet browser toolbar from Ask.com, but also enable its installation by default. In addition to the toolbar, Ask also replaces your favourite search engine in your browser with Ask.  Furthermore, the Java installation goes as far as to actually recommend installing this useless junk, meaning that any non IT-savvy person is more than likely to leave it checked and install it (after all, it was enabled by default and the friendly Java installer did recommend it, right?).  To add insult to injury, even if you remove the Ask Toolbar, you can be sure to see it again soon, when the next Java update hits you (which seem to happen quite often lately, due to loads of security fixes for Java, but that's another story).  I'll duly remove the check-mark to install Ask Toolbar, whenever I update Java, but when supporting my family and friends, it's obvious they don't.  How can I prevent the pesky Ask.com Toolbar from being installed in the first place?
2506
I used NetBeans for Java development on Windows and remember finding it in the Ubuntu Software Center on Natty, but now it's gone. Is there a PPA I can use or will it be re-added to the official repos?
813
Why is the Java plugin (JRE) is disabled in Chrome? It is some security concern?  From official Java website:     Chrome no longer supports NPAPI (technology required for Java applets)   The Java plug-in for web browsers relies on the cross platform plugin architecture NPAPI,   which has been supported by all major web browsers for over a decade.   Google's Chrome version 45 (scheduled for release in September 2015) drops support   for NPAPI,   impacting plugins for Silverlight, Java, Facebook Video   and other similar NPAPI based plugins.   But anyone knows why? How it could be dangerous for Chrome user with latest version of Java JRE installed?
14192
I'm on a new computer and I haven't downloaded Data Loader in years but now, I'm having all kinds if issues.  So apparently, I have to download Zulu JDK 11 (msi) first, Then download and unzip Data Loaded and install. Which opens a command prompt... After I follow all of the command prompt steps, then I get an error.  Am I supposed to install Java too? And if so, do I download Java or Zulu first?  Apparently a lot of people are having this same problem with no resolve.  Any help would be much appreciated.