I made my first application with Java in Eclipse now I need to repackage or create an executable file file from that project. I used a lot of external jar libraries that I would like to export whit the project. Any solution is welcome.
123877
I'm writing a java app using eclipse which references a few external jars and requires some config files to be user accessable.   What is the best way to package it up for deployment? My understanding is that you cant put Jars inside another jar file, is this correct? Can I keep my config files out of the jars and still reference them in the code? Or should the path to the config file be a command line argument? Are there any third party plugins for eclipse to help make this easier? I'm using an ant build file at the moment but I'm not sure I know what I'm doing. Is there an equivelent of the deployment projects in Visual studio, that will figure out everything you need and just make an installer? I've used install4j before, and it was powerful if no where near as automated as  .Net deployment projects.   Cheers.
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
113814
My project is to develop an installer which is an executable for Windows, Mac and Ubuntu. The executables on Windows, Mac and Ubuntu are .exe, .app and .deb respectively. So, I converted my .jar file to a .exe file on Windows using a software called launch4j. And on MAC I used a software called Jar-Bundler to convert my jar in to .app file. I want to know if there is any specific software on Ubuntu to convert my jar file in to a .deb file.
30969
I want to create an ini file to store some settings for my application. Is it a good idea to find where the jar file is located and create an ini file there? If yes, then how can I find the location of the jar file?   But if you know a better solution for something like this, I would like to hear some of them.  EDIT: I'm using mac and I want to run the same application in windows. I could write something in the System.getProperty("user.home") directory, but I want to keep the system clean, if the user decides to remove the app. There is no a better way to store the settings file, for example in the same directory with the application?
3501
I know that to execute a file, I use the . command, then the file name with a space between them. But I'm trying to execute a .jar file using the . and it does not work. I went into the properties and marked it as executable and made it run with Java.   Is there a way to execute a file with Java in the Bash Terminal?    I am trying to execute the Minecraft.jar file.
38753
I looked up several tutorials on how to install and they dont work. I do everything correctly but then i get this:     The file   '/home/mike/Downloads/minecraft.jar'   is not marked as executable.  If this   was downloaded or copied from an   untrusted source, it may be dangerous   to run.  For more details, read about   the executable bit.   I run the minecraft.jar with the Sun java runtime 6 but it doesnt work:/. Any help would be greatly appreciated!
28408
Should libraries that the application relies on be stored in source control? One part of me says it should and another part say's no. It feels wrong to add a 20mb library that dwarfs the entire app just because you rely on a couple of functions from it (albeit rather heavily). Should you just store the jar/dll or maybe even the distributed zip/tar of the project?  What do other people do?
37948
I have a script.sh file and type of this file is shellscript file. I want to make this file as application/x-executable file. How can I make it?
71595
It has always bothered me that the only way to copy a file in Java involves opening streams, declaring a buffer, reading in one file, looping through it, and writing it out to the other steam.  The web is littered with similar, yet still slightly different implementations of this type of solution.  Is there a better way that stays within the bounds of the Java language (meaning does not involve exec-ing OS specific commands)?  Perhaps in some reliable open source utility package, that would at least obscure this underlying implementation and provide a one line solution?
21548
Is there a way to include all the jar files within a directory in the classpath?  I'm trying java -classpath lib/*.jar:. my.package.Program and it is not able to find class files that are certainly in those jars.  Do I need to add each jar file to the classpath separately?
1189
Does anyone have a good solution for integrating some C# code into a java application?   The code is small, so I could re-write in java, but I would rather reuse the code if possible. Don't repeat yourself, etc.   Also, I know I can expose the C# as a web service or whatever, but it has some security/encryption stuff in there, so I would rather keep it tightly integrated if possible.    Edit: It's going to be on a server-based app, so "downloading" another runtime is irrelevant.
6652
I have always had a problem installing and removing compiled software, so I have decided I would like to build software from source into a .deb package for easier installation/removal.  I would like to know of an easy and short way to build source into a .deb package, as an end user.  I have tried:   , which did not work for me This  guide, but I found it too long
35992
I'm still experimenting with some OpenGL in LWJGL, and as I get to know more and more about OpenGL, I start to do more complicated things like multi texturing, shadowmapping and more. Now, right now I'm using the src folder (src/res) for my resources, and use src/resourcename in my code. When I export it, this won't work on another location as the relative path is ofcourse incorrect. What would be the best way of deploying your game with all the resources in one file? Maybe put the files in the jar?  I would like to hear from a few people how they store and deploy their project with resources, thanks!
39549
Eclipse was working as good as anything on 14.04. I did a clean install of 16.04 and installed Eclipse. But it runs a Java program only once after which it just hangs during subsequent attempts before I remove and reinstall it. I have tried many things, since in the beginning I needed CDT as well. Right now, I just want to remove everything related to eclipse and do a fresh install (remove all the configs and dependencies). Please note that I used Eclipse installer to install Eclipse and the eclipse icon image is also not appearing (the default ubuntu ? is appearing).
78074
Alright, so I'm working on programming my own installer in C#, and what I'd like to do is something along the lines of put the files in the .exe, so I can do  File.Copy(file, filedir);  Or, if this isn't possible, is there another way of doing what I am attempting to do?
2870
If I have a Java source file (*.java) or a class file (*.class), how can I convert it to a .exe file?  I also need an installer for my program.
25159
I just added the latest version of the Eclipse IDE to my computer. Eclipse is distributed as a ZIP file, so I unzipped it into a directory in C:\Program Files like I've done for past versions of Eclipse. However, I also like a shortcut in the start menu. I don't see a way to make that happen.  After I extract the ZIP, one of the files is eclipse.exe. What I've done in the past is to right click on this file, create a shortcut, and drag it into the start menu's All Programs section and it lives there. When I do that in Windows 10, I get an icon that indicates that I can't drop it there (there's a red circle with a slash through it).  I then tried to pin the application to the start menu using the right click menu. It's not what I'm looking for, though:    I then found  and follow that instructions. I made a shortcut on the desktop to the application and then copied that shortcut into %appdata%/Microsoft/Windows/Start Menu/Programs:    However, the result was identical to right clicking and pinning to the start menu - not what I want.  I don't want the Eclipse icon in the section on the right. I want it to appear in the section on the left, where Dia, Eclipse Luna, and other apps are listed. The three obvious solutions don't appear to give me what I want.  How do I do this?    As of 7 Sept 2015, I'm running Windows 10.1 Build 10240 and I still have this issue. I've tried the advice posted in the answers - putting the shortcut to the executable in the %appdata%\Microsoft\Windows\Start Menu\Programs and C:\ProgramData\Microsoft\Windows\Start Menu\Programs\ directories, yet no success getting the desired result.  I did try something new. I went to %appdata%\Microsoft\Windows\Start Menu\Programs (where the Eclipse Process Framework and Eclipse Luna shortcuts are located) and made a new folder called Eclipse. This folder appeared in the Start Menu. I copied the Eclipse Process Framework, Eclipse Luna, and Eclipse Mars shortcuts into this folder. The end result was this:    Again, not what I was expecting to happen. The Eclipse Process Framework and Eclipse Luna icons went into the new folder, which is good. The Eclipse Mars icon stayed on the side, where I don't want it.  This is what the folder structure looks like:      I'd be curious to know if this is an issue that may be resolved in a later build. Unfortunately, I do like some level of stability, so changing to one of the other release streams isn't going to help me. But if someone can point to this being a known issue that has been confirmed as resolved in a later build, I'd be willing to accept that answer once the build flows out to the main release stream.