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.
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 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 needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 4 years ago.
Improve this question
After downloading the code required for the book, I extracted the file in C: and whenever I try to open the project in NetBeans it doesn't read the file as a project. It sees it as a normal file.
I found a similar question asked about Eclipse, and the answer wasn't clear. I'm hoping I can get a step by step beginner friendly answer.
Thanks.
Edit: I'm using NetBeans IDE 8.2, the code I downloaded was from this link: https://github.com/BruceEckel/TIJ4-code
I simply clicked File -> Open project -> unzipped file
This is how I typically open any project I download.
IDE's have project files which are different from language files such as java or c.
You can probably just create a new project and then pull that java file into the project through copy-paste or moving it through your computer's directory.
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 7 years ago.
Improve this question
My original computer with eclipse had crashed. I had backed up my entire hard drive. When I went and ran eclipse all my projects were gone. Is there a way to recover these projects.
If the projects are still on your hard drive, but not appearing in the Eclipse IDE, then:
1) In Eclipse, File>Switch Workspace to your prior workspace directory.
2) If that doesn't help, import your projects into the workspace with File>Import, using as an import source General>Existing Projects into Workspace. A dialog will appear asking for a directory in which to search for Eclipse projects. Pick one, and pick the projects to import.
If necessary, repeat step 2 for multiple parent directories.
Alternatively, if you or a teammate has created a "Team Project Set" beforehand, you can import it with File>Import using Team>Team Project Set.
Import your Workspace-Directory from Backup
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.