Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
I have a JAR file of a project which im creating for a business. It will be places on their network drive and ran from there by several people throughout the company.
I will be leaving the business soon but would like the ability to remotely update the JAR file with small bugfixes if anything is reported.
Ideally its as simple as placing a new JAR in a folder on server and current JAR will check for update on launch and update if necessary. The same effect with an Android App or Firefox.
Whats the most common way of doing this?
I think what you are describing is a JNLP
It is a file that points to a .jar on a server. When it is updated Java Web Start will download the latest .jar and run it.
As #Dominick mentions, if you have SSH access, you could write a script to send the update via the uf option. See this tutorial.
jar uf jar-file input-file(s)
EDIT
Would version control be an option for you? you could do the bug fixes on your local machine, push them to a repository the company has access to, then have them update the jar files whenever there's a new version.
Related
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 1 year ago.
Improve this question
For the Online Java Installation, Should I need to connect to the internet all the time while working on IDE? and also After Installation of Java Windows Online, the files required for IDE get stored in local? If it get stored in the local why prefer Java Windows Online over Java Windows Offline?
Offline version is a huge installation file that includes everything needed for installation.
It means that the computer doesn't need to be connected to the web during installation of Java.
This version is ideal for installation on multiple machines, because it only downloads the data once.
Online version is a small installer program that then needs to download the needed installation files when executed.
It means that the computer requires a web connection during installation of Java.
This version is good for installation on only one machine, because it only downloads the data that is actually needed.
Online installation expects you to be connected all the time till the installation process is finished, i.e. it needs constant internet connectivity.
Offline installation assumes you're not going to be connected throughout the installation process, so it's a stand-alone installer, simply, once you download the offline installation files, you don't need internet anymore for installation, it is self-sufficient.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 2 years ago.
Improve this question
I'm developing an app that shows all installed software - including those from the Microsoft store, and surely any software the user installs from anywhere else - in Windows environment, and I want the user to be able to run them from the app directly. Is there anyway to achieve this using Java only ?
The data of the installed app I want : its name, its icon, and the path to the executable application so I can run it directly from the Java app.
I know how to open an app using Java. That's not what I'm asking for.
By "Java only" I mean without writing native code, but there is no problem to use a library that uses native code. Which I didn't find any
In theory, yes it is possible. You should be able to traverse the file system, examine each filename and match the names whose file suffix corresponds to one of the Windows executable file extensions.
In practice:
It could take a long time to do that. Potentially many minutes, depending on how many files the user has on their machine. Even longer if they have remote file systems mounted.
The list of matches is likely to be too long for a sensible pick list.
There is no way of knowing what any particular application does, or how it should be invoked.
The above assumes that the Java app that does this is a regular app, not a webstart app or applet or something else that runs in a Java security sandbox. A security sandbox will forbid your code from accessing the file system.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 7 years ago.
Improve this question
I recently installed Mars Eclipse. I took the default install directory, c:\users\myname\eclipse\java-mars. Everything is installed and some projects checked out and working.
But I now wish I had installed it in c:\eclipse\java-mars. I am wondering how to change it? Please note I did searches but they all are how to move your workspace, not how to change the installation directory. My workspace can stay where it is. I suppose I could uninstall and delete everything, and reinstall into a new directory, but that is a lot of hassle.
You just have to move the eclipse folder to the new location. There's no need to change anything in the PATH variable because this thing is only needed by eclipse itself to locate the java environment.
Note:
If you have any third-party librarys inside the eclipse folder that are used by eclipse during it's runtime there may be an error because eclipse only stores an absolute path to them in it's config files. So in that case, you have to change the path to such libraries in the eclipse settings, I think at the same point where you have added them.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 9 years ago.
Improve this question
While working on a project using eclipse-java-juno, my project was running fine and I was able to run properly. Next day when I opened eclipse, all the contents of all the files are lost. Files on disk are empty.
I can show screenshot of the project explorer while all files are having 0 kb size.
What could have caused this?
Any option for recovery?
p.s. To mail my code, I copied it from eclipse project explorer to desktop and made a ZIP file. Files in that zip folder are also empty.
It simply looks like you have lost the data on your file system (Hard disk) assuming you are using windows ,It does not look like an eclipse problem to me.
If you know where your workspace location is and where the actual files were on hard-disk which you were pointing to from eclipse, then just go to that location and confirm if they exist.
If they exists on hard-disk Hurray!!..Simply re-create project in eclipse by pointing to files at this location in project/workspace.
If they don't exists on hard-disk, then they are deleted,See if you can find in "recycle bin" else If you have any recovery tool. Else use "repository" (like SVN) next time , this would be a classic example to someone to tell importance of using Repository for code and constant backup's.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 9 years ago.
Improve this question
I have two RHEL linux server and the problem that I have is that I am not aware of how to use the other one as a file storage server. Consider there are two servers A & B, now I want server A to have a folder that is mapped to the Server B and then whenever I store something on server A it automatically is moved to server B. I think this is called Networked Drive or May be Mounting a networked folder or File Server. I am totally unaware of this. Please help me to figure this out. Since the server B has a huge storage capacity and I want to save all the files in this through a Java EE program running on Server A.
Please let me know any tools or technology that can help in this.
Consider using nfs to mount remote filesystem on a server.
On server B, you may set /etc/exports as follows:
# See exports(5) for a description.
# This file contains a list of all directories exported to other computers.
# It is used by rpc.nfsd and rpc.mountd.
/folder/to/export SERVER_A_IP(rw)
Then, start nfs service and, from server A you may use:
mount -t nfs SERVER_B_IP:/folder/to/export /mnt/mountpoint
However, your question should have been posted on ServerFault. I flagged it as off topic, hope they move it.