Run Java executable without installing JRE? [duplicate] - deployment

This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
Running java without installing jre?
I am working on a Java application. I created an executable .jar file of my application. It works fine on my machine. Now, I want to deploy it over the client machines which don't have JRE locally.
Is there any way to run my executable jar file without installing JRE locally?
Alternately: What minimum files are required from the JRE folder so I can pack them with my installation package?
Suggestions are always welcome.

What minimum files are required from the jre or jdk folder so I can
pack them with my installation package??
You can pack a jre with your runnable .jar with software like Launch4J

The only way I know of is to pack the jre.jar with your application (you can of course even include it in your char). Some of the jar>executable tools already provide this option (for instance Launch4J as user1444702 already mentioned).

Related

How to fix this "Unknown version of Tomcat was specified" (Windows)

I want to connect with tomcat server with eclips IDE. I have already install tomcat 8.5 and 9.0 versions.
Both versions shows this error.
So please help me how can I configure my eclipse with tomcat any versions
Don't use an installed copy of Tomcat. Instead, download the Core zip/tar file and unpack it somewhere under your user's home directory. It has the most predictable layout for needed files and avoid any write permission issues you might have with an installed copy.
https://wiki.eclipse.org/WTP_Tomcat_FAQ#Why_won.27t_the_New_Server_Runtime_dialog_recognize_my_Linux_installed_version_of_Tomcat.3F

Apache Netbeans 11.0 not appearing in Add/Remove Programs Windows 10

I installed Apache Netbeans a couple weeks ago, decided I didn't like it, and am attempting to uninstall it. However, it is not showing up in my Add/Remove Programs on Windows 10, nor can I find an Uninstall exe file in the files of NetBeans. Any help or advice would be appreciated.
You must have installed Apache NetBeans 11.0 by downloading a zip file named incubating-netbeans-11.0-bin.zip, then unzipping it to an installation directory, because that is the only approach that is offered. From the Apache NetBeans web site:
Apache NetBeans 11.0 is available for download from your closest
Apache mirror. For this release no official installers are provided,
please just download the binaries and unzip them.
This explains why you cannot uninstall NetBeans 11.0 from the Control Panel in Windows 10: you did not install it using an installer, you just unzipped a file.
So to uninstall NetBeans 11.0 on Windows 10 all you need to do is this:
Close NetBeans.
Delete the NetBeans installation directory.
Delete the downloaded zip file (if you had kept it).
However, there are a couple of additional optional steps that will free up (a lot of) disk space, and are definitely worth doing:
Before removing/uninstalling NetBeans, open it one last time.
Open the Help > About screen. You will see a couple of entries named User directory and Cache directory. They contain (a lot of) files related to the configuration of NetBeans, and they can and should be deleted as well:
Note the names of those two directories, and then close NetBeans.
Delete those two directories, and then delete the NetBeans installation directory and the downloaded zip file (if necessary).

Fix "The Eclipse Installer executable launcher was unable to locate its companion shared library."

I'm trying to install Eclipse Neon on a 64 bit Windows 7 computer. I download the file "eclipse-inst-win64.exe" and run as administrator. Immediately I get the following error:
The Eclipse Installer executable launcher was unable to locate its companion shared library.
Note the "Installer" keyword. When searching on Google and StackOverflow, I find solutions only for when receiving this error launching Eclipse itself after it is installed. The solutions that worked for people in those situations usually involve editing the "eclipse.ini" file and removing absolute paths or references to uninstalled plugins. However, Eclipse has never been installed on this computer, therefore an "eclipse.ini" file does not exist and the installer does not appear to create one in any obvious place before throwing this error. There does not appear to be any "companion shared library" downloads on the Eclipse website. Any ideas on what could be going on?
Download and install the JDK and then try to install Eclipse again.
According to http://wiki.eclipse.org/Eclipse/Installation:
Eclipse 4.6 (Neon) was released on June 22, 2016. See Neon schedule.
Consider using the Installer. Please see 5 Steps to Install Eclipse.
A Java 8 JRE/JDK is required to run all Neon packages based on
Eclipse 4.6, including the Installer. The reasoning behind
requiring Java 8 are discussed here.
I found another reason for this error message. I got it when I tried to install Eclipse from the compressed installer. I extracted the installer into a folder and ran it from there. It then installed.
Try to extracted all the installer files before you run the installer.

Eclipse without plugins for windows

I am using eclipse 3.8.1 right now on Xubuntu and there were no problems until now. But 2 days ago some friends and me started a project together, they are using Windows 7 and Windows 8 (x64). When I installed eclipse in Xubuntu, it didnt have any plugins and features installed but I couldnt find any eclipse version for windows that has no plugins pre-installed.
Does anyone know how to do that?
Thanks a lot for every idea! :)
I know I'm three years late but: you can download it from here: http://download.eclipse.org/eclipse/downloads/index.html. There you can find 'clean' builds of Eclipse, which do not ship with common development tools.
If you do an apt-get install eclipse, it gets installed in a read-only directory; each user that runs Eclipse gets their own directory with the plugins he/she installs afterwards from within Eclipse.
On both Windows and Linux, you can just download a zip file of Eclipse, unzip it somewhere, and then run it directly. This is also the way to run different versions of Eclipse, and there is just one place for each version to store plugins: within its own directory.

Portable Eclipse Juno with plugins

I am currently trying to make an Eclipse istallation with installed plugins portable, so that you only have to copy the whole "eclipse"-folder to another system and have the same setup as on the original system.
My problem now is, that since eclipse 4.2 (?) when using Help > Install new Software... plugins are installed externally into the folder
C:/Users/Username/.eclipse/org.eclipse.platform_4.2.0_identifier
and not into the folder where the "eclipse.exe" is located:
C:/Program Files (x86)/eclipse
Now my question is if it is possible to make eclipse install additional plugins into the plugins/features-folder of eclipse's home folder (C:/Program Files (x86)/eclipse).
Unfortunately, it isn't possible to use the dropins-folder, because one plugin that shall be installed only exists as an update site.
I'm using
Windows 7 Professional Service Pack 1 64bit
with
Eclipse IDE for C/C++ Developers
Version: Juno Service Release 2
32-bit (to provide portability).
Greets :)
Do not put your eclipse installation under the "Program Files" folder. Eclipse will install all plugins to its own folder by default, unless that folder is not writable from Eclipse. And the "Program Files" folder should not be writable by you (unless you are using administrative access rights). Only the trusted installer service account should modify that folder (following Windows guidelines).
Therefore unzip Eclipse somewhere else into a location where anyone is allowed to write, install your plugins and zip the whole folder again.
As an alternative to that ZIP package you may want to look at File -> Export -> Install -> Software items to file, where you can export (and re-import) a list of your already installed plugins.
What mack is trying to do should work, this is essentially what the eclipse foundation do to provide the various distros.
The plugin that is only available as an update site could be installed into and existing in-installation then copied to the new distro. Only trick is making sure you have all the feature and plugin jar files.