Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Help With Re-installing Eclipse(Trying to re-install Eclipse onto my new hard drive)
Help With Re-installing Eclipse [message #1403008] Sat, 19 July 2014 18:25 Go to next message
Patrick McKnew is currently offline Patrick McKnewFriend
Messages: 6
Registered: July 2014
Junior Member
I am a using 64-bit Windows 7 laptop, which I installed Eclipse onto. I used the JDK to complete class assignments, and it worked just fine with Java 7. Unfortunately, it had to get repaired and somebody decided the hard drive needed to get replaced.
So I am trying to re-install Eclipse using Java 8 so I can start using the JDK to write Java again. However, I keep getting an error saying it can't find the JNI. So which package do I download for it to work?
Re: Help With Re-installing Eclipse [message #1403010 is a reply to message #1403008] Sat, 19 July 2014 19:38 Go to previous messageGo to next message
Russell Bateman is currently offline Russell BatemanFriend
Messages: 3798
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

On 07/19/2014 01:31 PM, Patrick McKnew wrote:
> I am a using 64-bit Windows 7 laptop, which I installed Eclipse onto. I
> used the JDK to complete class assignments, and it worked just fine with
> Java 7. Unfortunately, it had to get repaired and somebody decided the
> hard drive needed to get replaced. So I am trying to re-install Eclipse
> using Java 8 so I can start using the JDK to write Java again. However,
> I keep getting an error saying it can't find the JNI. So which package
> do I download for it to work?

If you installed Luna, it came with support for Java 8 and you only need
to install JDK 8 following the instructions you should have read in the
sticky post at the top of this forum:

http://www.eclipse.org/forums/index.php/t/198527/

If you installed Kepler, there's a feature patch that needs to be installed.

Of course, you can just install JDK 7, follow the instructions in the
link above, and get on with life no matter which version of Eclipse you
elect to install. You only need Java 8 if you need Java 8 features.
Re: Help With Re-installing Eclipse [message #1403013 is a reply to message #1403010] Sat, 19 July 2014 20:06 Go to previous messageGo to next message
Patrick McKnew is currently offline Patrick McKnewFriend
Messages: 6
Registered: July 2014
Junior Member
The page http://wiki.eclipse.org/Eclipse.ini says to use a "command line". How do I get the command line?
Re: Help With Re-installing Eclipse [message #1403015 is a reply to message #1403013] Sat, 19 July 2014 21:58 Go to previous messageGo to next message
Russell Bateman is currently offline Russell BatemanFriend
Messages: 3798
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

On 07/19/2014 02:06 PM, Patrick McKnew wrote:
> The page http://wiki.eclipse.org/Eclipse.ini says to use a "command
> line". How do I get the command line?

No it doesn't say that.

It says that "eclipse.ini is a text file containing command-line options
that are added to the command line when Eclipse is started up." You're
on Windows, you should create a shortcut with which to launch Eclipse,
but you edit eclipse.ini according to information on this page to tell
it where you've dropped the JDK you downloaded.
Re: Help With Re-installing Eclipse [message #1403040 is a reply to message #1403015] Sun, 20 July 2014 15:33 Go to previous messageGo to next message
Patrick McKnew is currently offline Patrick McKnewFriend
Messages: 6
Registered: July 2014
Junior Member
Oh, I'm sorry. I have a hard time trying to understand what something means.
So the wiki page it says "Any use of
-vmargs
on the command line replaces all
-vmargs
settings in the .ini file unless
--launcher.appendVmargs
is specified either in the .ini file or on the command line." My eclipse.ini file has
--launcher.appendVmargs-vmargs-Dosgi.requiredJavaVersion=1.6-Xms40m-Xmx512m
. I do not see --launcher.appendVmargs in the examples. So do I replace --launcher.appendVmargs with the exact path, and increase the heap space?
Thank you for your help.
Re: Help With Re-installing Eclipse [message #1403043 is a reply to message #1403040] Sun, 20 July 2014 16:59 Go to previous messageGo to next message
David Wegener is currently offline David WegenerFriend
Messages: 1445
Registered: July 2009
Senior Member
On 07/20/2014 10:33 AM, Patrick McKnew wrote:
> Oh, I'm sorry. I have a hard time trying to understand what something
> means.
> So the wiki page it says "Any use of -vmargs on the command line
> replaces all -vmargs settings in the .ini file unless
> --launcher.appendVmargs is specified either in the .ini file or on the
> command line." My eclipse.ini file has
> --launcher.appendVmargs-vmargs-Dosgi.requiredJavaVersion=1.6-Xms40m-Xmx512m.
> I do not see --launcher.appendVmargs in the examples. So do I replace
> --launcher.appendVmargs with the exact path, and increase the heap space?
> Thank you for your help.
If you aren't going to pass command line arguments when you start
eclipse, you can probably ignore the --launcher.appendVmargs.

As the wiki states, you need to add -vm {path to vm} to the ini file.
Follow the example. Use two lines one for -vm and one for the path to
your VM.

As in the example, put these lines right before the -vmargs line. They
can actually be anywhere in the ini file before the -vmargs line, but
putting at the last possible location will make it easier to find if you
decide to change.
Re: Help With Re-installing Eclipse [message #1403132 is a reply to message #1403043] Mon, 21 July 2014 15:07 Go to previous messageGo to next message
Patrick McKnew is currently offline Patrick McKnewFriend
Messages: 6
Registered: July 2014
Junior Member
I hope what I did is right...
-startup
plugins/org.eclipse.equinox.launcher_1.3.0.v20140415-2008.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.200.v20140603
-1326
-product
org.eclipse.epp.package.java.product
--launcher.defaultAction
openFile
--launcher.XXMaxPermSize
256M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
--launcher.appendVmargs
-vm
C:\Program Files\Java\jdk1.8.0_11\bin\javaw.exe
-vmargs
-Dosgi.requiredJavaVersion=1.6
-Xms40m
-Xmx1024m

But when I try to save the file, it wants to save it as a text file. I believe that it should be saved as eclipse.ini, correct?
Re: Help With Re-installing Eclipse [message #1403324 is a reply to message #1403132] Wed, 23 July 2014 01:27 Go to previous messageGo to next message
Patrick McKnew is currently offline Patrick McKnewFriend
Messages: 6
Registered: July 2014
Junior Member
Patrick McKnew wrote on Mon, 21 July 2014 11:07
I hope what I did is right...
-startup
plugins/org.eclipse.equinox.launcher_1.3.0.v20140415-2008.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.200.v20140603
-1326
-product
org.eclipse.epp.package.java.product
--launcher.defaultAction
openFile
--launcher.XXMaxPermSize
256M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
--launcher.appendVmargs
-vm
C:\Program Files\Java\jdk1.8.0_11\bin\javaw.exe
-vmargs
-Dosgi.requiredJavaVersion=1.6
-Xms40m
-Xmx1024m

But when I try to save the file, it wants to save it as a text file. I believe that it should be saved as eclipse.ini, correct?


Well, I tried to save the file as eclipse.ini with the above code and I get a dialog box from notepad saying "access is denied".
Re: Help With Re-installing Eclipse [message #1403326 is a reply to message #1403324] Wed, 23 July 2014 03:29 Go to previous messageGo to next message
Russell Bateman is currently offline Russell BatemanFriend
Messages: 3798
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

On 07/22/2014 07:27 PM, Patrick McKnew wrote:
> Patrick McKnew wrote on Mon, 21 July 2014 11:07
>> I hope what I did is right...
>> -startup
>> plugins/org.eclipse.equinox.launcher_1.3.0.v20140415-2008.jar
>> --launcher.library
>> plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.200.v20140603
>> -1326
>> -product
>> org.eclipse.epp.package.java.product
>> --launcher.defaultAction
>> openFile
>> --launcher.XXMaxPermSize
>> 256M
>> -showsplash
>> org.eclipse.platform
>> --launcher.XXMaxPermSize
>> 256m
>> --launcher.defaultAction
>> openFile
>> --launcher.appendVmargs
>> -vm
>> C:\Program Files\Java\jdk1.8.0_11\bin\javaw.exe
>> -vmargs
>> -Dosgi.requiredJavaVersion=1.6
>> -Xms40m
>> -Xmx1024m
>>
>> But when I try to save the file, it wants to save it as a text file. I
>> believe that it should be saved as eclipse.ini, correct?
>
>
> Well, I tried to save the file as eclipse.ini with the above code and I
> get a dialog box from notepad saying "access is denied".
>

On Windows 7, you likely have installed it as if some grand application
on a path like C:\Program Files\eclipse. This is wrong-headed because
eclipse.ini is in that same folder and without asserting Administrator
rights, you can't access it.

Eclipse is a personal productivity tool.

Instead, explode Eclipse (it doesn't "install" as a real Windows
application would, but it's only unzipped into its filesystem) on a path
like C:\Users\Patrick\eclipse so that you have access to it. It's not as
if you're sharing your computer with a dozen other folk who expect to
find it in a public place.

(There is actually a way to do the latter, in a school setting, but this
is probably not your case.)
Re: Help With Re-installing Eclipse [message #1403332 is a reply to message #1403326] Wed, 23 July 2014 04:54 Go to previous messageGo to next message
newman cyriac is currently offline newman cyriacFriend
Messages: 3
Registered: July 2014
Junior Member
when i try to install system automatically shut down and anti virus preventing form installation ? why ?
Re: Help With Re-installing Eclipse [message #1403336 is a reply to message #1403326] Wed, 23 July 2014 05:26 Go to previous message
Patrick McKnew is currently offline Patrick McKnewFriend
Messages: 6
Registered: July 2014
Junior Member
Thank you for your all of your help. It is working now.
Previous Topic:ADT install problem in Iran
Next Topic:Cannot find Build Path!!
Goto Forum:
  


Current Time: Sat Apr 20 02:25:14 GMT 2024

Powered by FUDForum. Page generated in 0.12403 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top