Save the changes in the file and run the Eclipse IDE, and it should run fine as we now use the correct version of Java Virtual Machine. Another thing is that the JVM path should come on the next line of -vm. Note that we use the path of the JVM that matches the bit version with the Eclipse IDE one. This is the file where we can specify the virtual machine that we want to use instead of the IDE’s JVM.įirst, we open the file eclipse.ini in a text editor and paste the following. The second solution to the exit code 13 problem involves modifying the configuration file eclipse.ini beside the eclipse.exe file. Fix the Exit Code 13 Error Using eclipse.ini Configuration File If the JVM has the right version, for example, if our Eclipse IDE is 64-bit, then the JVM that we are using in this command should be 64-bit also. We copy this path, use it in the command, and press enter. The last argument of the whole command is the path to the jvm.dll file usually located in C:\Program Files\Java\jre\bin\server. The command above has three values the first is the main command that runs our Eclipse IDE, the second argument is -vm, an acronym for a virtual machine and uses the virtual machine specified with it. It includes a command that is stated below. The first solution is a temporary one, and we have to repeat this step every time we want to run the IDE without the error. Fix the Exit Code 13 Error Using Command Line Let’s see how we can fix this in the following sections. Java Runtime supports both 32-bit and 64-bit architecture, but we should always use the JDK package that supports our architecture. Now we know the reason why the error occurs. Though there may be other reasons, we often get exit code 13 because of the incompatible Java versions. The most common reason for the error is when we use an incorrect version of the Java Virtual Machine in the Eclipse IDE. Reasons for the Errorīefore we dive into the solution, we need to determine why the exit code 13 error is thrown at us in a pop-up like this. We will follow a few steps to resolve the issue. This article will look at the solutions for the error thrown with the Exit Code 13 when we open the Eclipse IDE on Windows. What Is a Null Pointer Exception in Java.Checked and Unchecked Exceptions in Java.Fix Java Numberformatexception for Input String Error.Fix Java Cannot Instantiate the Type Error.Fix Java Cannot Be Resolved to a Variable Error.Fix JavaFx Exception in Application Start Method.Fix the NoSuchElementException Error in Java.Fix Missing Return Statement Error Type in Java.Class Is Not Abstract and Does Not Override Error in Java.Fix the Reach End of File While Parsing Error in Java.Fix the Could Not Find or Load Main Class Error in Java.Fix the Bad Operand Types Error in Java.I placed mine just before the -vmargs option. For the second option, you need to change the eclipse.ini file by giving the vm path using the -vm option so that it won't take the default Java version for your computer. You can start Eclipse either using command prompt (in Windows) by giving command like C:\eclipse>eclipse.exe -vm "C:\Program Files\Java\jre7\bin\javaw.exe" or by double clicking on the exe file. Like many pointed out here your Eclipse, Java, and the OS should of the same bit architecture. I have set up the user variable as PATH with value C:\Program Files\Java\jdk1.7.067\bin. Mine got resolved by pointing the Java version to its 64 bit version. Eclipse Error: 'Java started but returned exit code 13' Ask Question Asked 5 years, 10 months ago Modified 3 years, 3 months ago Viewed 16k times -2 On my 64 bit windows 10 operating system, I have installed 64 bit jdk1.7.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |