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.
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 6 years ago.
Improve this question
i've got an error in java because i had to reinstall windows.
Error occured during initialization of VM
I tried in CMD to use java and the exact same error occurs!
I reinstalled java jre and removed jdk, still nothing helped. Any idea on how to solve this?
To make sure that it was not working i searched for Bukkit and tried to run the server, the exact same thing happens.
When i tried java -version
According to the comments, the problem was with the PATH.
Go to your environmental variables and check if there is a variable pointing to java.exe in jre directory. Reinstalling jre should solve the problem but to avoid it you can try the following:
The variable pointing to C:\Program Files (x86)\Java\jdk<version> should be called JAVA_HOME and the path variable should be extended with %JAVA_HOME%\bin\ and %JAVA_HOME% itself. Then somehow it might have the advantage to javapath
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.
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 is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 9 years ago.
Improve this question
I have downloaded this early preview, I know that it's not stable and everything but I see no one complaining on the most populated forums and my copy of Android Studio doesn't even starts.
I have tried with both JDK 1.6 and 1.7 from Oracle in the PATH but it always fails ( i have JAVA_HOME set too )
and this alert shows up 3 times and the startup just freezes, this is the complete output of about the failed start.
there is also 0 real practical documentation for this SDK, so I don't even any idea what the requirements for this suite are.
Strange fact: there is this file Install-Linux-tar.txt in the root of the android studio folder that suggest to run this ./android studio.sh command from the bin sub-directory but there is no ./android in that subdir and the instructions make no sense at all.
Make sure that java is installed in /user/java and not another directory.
I had same issue and simply moving Java directory fixed this issue
(I found a Google answer in a few seconds..)
For the second remark, that's totally true: forget./android studio.h and simply use ./studio.h