When I am running eclispe on my computer it is throwing error. How to resolve it?

0 votes

I am trying to get Eclipse v3.5 to re-run on my computer - I have run it before with no problems, but now I keep getting error.

May 31, 2018 in Java by Daisy
• 8,090 points
157 views

2 answers to this question.

0 votes
  • "Installing" a JRE or JDK can be as simple as unzipping or copying it from another computer: there is no special installation steps, and you can have as many different JVM versions as you want, "installed" almost anywhere on your disk.
  • I would recommend to always run Eclipse with the lastest JRE possible. You can:
    • Reference that exact JRE path in your eclipse.ini.
    • Copy any JRE in your <eclipse>/jre directory. In both cases, no PATH to update.
  • The JVM you will reference within your Eclipse session is not always the one used for launching Eclipse because:
    • You only need a JRE to launch Eclipse, but once Eclipse launched, you should register a JDK for your projects .
    • Even though the default registered Java in Eclipse is the one used to launch the session, you can want to register an older SDK (including a non-Sun one) in order to run/debug your programs with a JRE similar to the one which will actually be used in production.
answered May 31, 2018 by sophia
• 1,400 points
0 votes
If you have downloaded the 64 bit version of Eclipse; it will look for the 64 bit version of JRE. If you have downloaded the 32 bit version of Eclipse; it will look for the 32 bit version of JRE

I have installed both 32 and 64 bit JRE. SUN Oracle site allows you to install both the versions. The Java site automatically installs the 32 bit version of Java.
answered Dec 10, 2018 by Sushmita
• 6,890 points

Related Questions In Java

0 votes
1 answer

How to download Eclipse on a flash drive and use it on a public computer?

To use Eclipse from a flash drive, ...READ MORE

answered Apr 22, 2019 in Java by Omkar
• 69,000 points
1,260 views
0 votes
2 answers

What is the use of toString method in Java and how can I use it ?

Whenever you require to explore the constructor ...READ MORE

answered Aug 23, 2018 in Java by Daisy
• 8,090 points
1,189 views
0 votes
2 answers

How can I invoke a method when the method name is in the form of a given string?

You could probably use method invocation from reflection: Class<?> ...READ MORE

answered Aug 19, 2019 in Java by Sirajul
• 50,440 points
127 views
0 votes
1 answer

No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK

In your Eclipse IDE, go into Window > Preferences > Java > Installed JREs > ...READ MORE

answered Jun 18, 2018 in Java by Parth
• 4,640 points
1,618 views
0 votes
1 answer

What is the difference between jdk and jre?

JRE: It stands for Java Runtime Environment. ...READ MORE

answered Apr 20, 2018 in Java by Akrati
• 3,150 points
249 views
0 votes
2 answers

How can I get the filenames of all files in a folder which may or may not contain duplicates

List<String> results = new ArrayList<String>(); File[] files = ...READ MORE

answered Sep 12, 2018 in Java by Sushmita
• 6,890 points
674 views
+2 votes
10 answers

How to import a jar file in Eclipse?

To import jar file in your Eclipse ...READ MORE

answered May 15, 2018 in Java by sharth
• 3,370 points
110,512 views
0 votes
1 answer

Is it possible to run a java program from command line on windows?How?

  Let's say your file is in C:\myprogram\ Run ...READ MORE

answered Apr 18, 2018 in Java by sophia
• 1,400 points
458 views
0 votes
1 answer

How to fix the error failed to load the JNI shared Library?

You need these three things : 64-bit OS 64-bit ...READ MORE

answered Apr 19, 2018 in Java by sophia
• 1,400 points
1,040 views