Eclipse on Windows 7 - eclipse

Every time I open eclipse Galilio on Windows 7 64bit this message appear
and it won't work
-------------------------------------------------------------------------------------
Faild to load the JNI shared library "C:\Program Files(x86)\java\jre6\client\jvm.dll"
-------------------------------------------------------------------------------------
Help me please.

If you are using the 64-bit distribution of Galileo, you need a 64bit distribution of JRE (not a 32bit installed in "C:\Program Files(x86)").
If not (you are using a 32bit) version, you can (as in this thread),
Check your path variable,
make sure that if you type "java -version" at a command prompt you get the version you expect.
Or better yet, edit your eclipse.ini file to specify a particular JVM location.
See http://wiki.eclipse.org/Eclipse.ini for examples.

Now check out what's below. This should help you fix your Eclipse issue with Java and Windows 7 64-bit.
Eclipse will not open when the exe is clicked on Windows 7 64-bit OS.
Eclipse Standard/SDK
Version: Kepler Release
Build ID: 2013614-0229
This is for the Firefox v22 64-bit browser
OS: Windows OS 64-bit
Okay, you assume that Java is set properly on your Windows 64-bit PC and you've loaded Eclipse in a folder on your desktop. You've also created a separate folder called Eclipse Workspace which also resides on the desktop. Now you're ready to go and then in the Eclipse/Eclipse directory you click the Eclipse.exe and then you get this janky error message after the Eclipse window opens:
"Java was started but returned exit code=1" (with other related data)
or ------->
You clicked the Eclipse.exe file and this message was displayed: "A Java Runtime Environment (JRE) or Java Development Kit (JDK) must be available in order to run Eclipse. No Java Virtual Machine was found after sending the following locations: c:\Program Files (x86)\Java\jre7\javaw.exe" or something like this. Now I'm not saying that this solution will work for everyone but note that this is a good baseline starting point to find out your solution.
--- or ---
2b. In DOS, you typed Java or java -version in the command line, pressed then this error was thrown:
"Picked up_Java_options:
-Xrunjvmhook -Xbootclasspath/a:C"\Program~2\hp\Quickt~1\bin\Java_S~1\classes;c:\Progra~2\hp\Quickt~1\bin\Java_S~1\classes\jasmine.jar
Error occurred during initialization fo VM could not find agent library JVMhook on the library path; with error" Can't find dependent libraries..."
* Again, keep in mind, this process is being done with the FireFox v22 64-bit browser** If using this browser, you need to check the following, to see if Java is enabled in the browser. I know what you're thinking but just do it!
Open or maximize the Firefox browser.
At the top left of the page, click Tools then the Add-ons option.
Click the Plugins option in the left pane.
You should see:
Java Development Toolkit 7.0.250.17 10.25.2.17 NPRuntime Script Plug-in Library for
Java (TM) Deploy. (or a plugin with a relevant version number)
Look to the right and make sure this plugin is Enabled~! If it is not Enabled, enable it!
If you do not see this plugin, at the top of this page, enter "Java" in the Search All Add-ons field, locate the plugin then install it.
Now go to Java.com and download the current version of Java for 64-bit. You need a JRE (Java Runtime Environment) and a JDK (Java Development Kit files and both have to be 64-bit!!!!!!! Once downloaded run both. They usually sit at either of these locations with these path distinctions:
c:\Program Files\Java\jre7 (This is the location of the JRE=Java Runtime Environment)
c:\Program Files\Java\jdk1.7.0_25 (This is the location of the JDK=Java Development Kit)
--- or ---
c:\Program Files (x86)\Java\jre7 (This is the location of the JRE=Java Runtime Environment)
c:\Program Files (x86)\Java\jdk1.7.0_25 (This is the location of the JDK=Java Development Kit)
* Now keep in the these version numbers will change but here are the preferred locations.
Environment Variables Edits
Click Windows Start button (bottom left on Windows 7) then click Computer.
At the upper left, click System Properties. The Control Panel Home window opens.
Click the Advanced System Settings option.
Your User Account Control window may open.
Click the [Yes] button.
The Systems Properties window opens.
Click the [Environment Variables] button.
Go to the User Variables for (Your System Name here).
Delete everything here accept, the following:
PATH
TEMP
TMP
Now highlight the PATH variable and then click the [Edit] button.
The Edit User Variable window opens.
You want to add the following:
;c:\users\Your User Name\desktop\eclipse\eclipse\jre\bin;c:\Program Files (x86)\Java
\jre\bin;c:\Program Files (x86)\jre7\;c:\Program Files (x86)\Java\jdk1.7.0_25\bin
Click the [OK] button and the Edit User Variable window closes.
Now go to the System Variables section.
Delete all the Variables accept the following:
asl.log
CLASSPATH
Comspec
FP_NO_HOST_C...
NUMBER_Of_P...
OnlineServices
OD
PATH
PATHTEXT
PCBRANDS
Platform
PROCESSOR_A...
PROCESSOR_id...
PROCESSOR_LE...
PROCESSOR_R...
PSModulePath
TEMP
TERM
TMP
USERNAME
Click the [New...] button.
The New System Variable window opens.
In the Variable Name field (which the cursor is currently blinking in...), enter JAVA_HOME.
Then go to the Variable Value field and enter c:\Program Files (x86)\Java\jdk1.7.0_25\bin;%JAVA_HOME%/bin.(Without the period, of course!)
Click the [OK] button and the New System Variable window closes.
Now highlight the PATH option and click the [Edit...] button.
The Edit System Variable window opens.
Go to the Variable value field and add the following at the end of the string already there:
;c:\Users\Your username here\desktop\eclipse\eclipse\jre\bin;c:\Program Files
(x86)\Java\jre7\;c:\Program Files (x86)\Java \jdk1.7.0_25\bin
Click the [OK] button and the Edit System Variable window closes.
Click the [OK] button to close the Environment Variables window.
Click the [OK] button to close the System Properties window.
Now for the Pista Resistance!!!!!!! Go back to the Eclipse folder on your desktop (or alternative location), then click open. Now download Notepad ++ from http://notepad-plus-plus.com and install it.
Use Notepad ++ to open the eclipse.ini file from the Eclipse folder. Using Notepad ++ keeps the eclipse.ini file's format correct.
With the eclipse.ini file opened with Notepad ++, look for -- launcher.append Vmargs. Once you've found this entry, place the cursor after it and then press . You should now see a space.
In that space enter the following: (and this must be entered exactly like what's listed below)
-vm
c:\Program Files (x86)\Java\jre7\bin\
c:\Program Files (x86)\Java\jdk1.7.0_25\bin
Now click File then Save as, with the file name as Eclipse.ini, then click the [Save] button.
A message box will display asking "Do you want to replace the file?", click the [Yes] button.
Now click File then Exit and Notepad ++ closes.
Now close then restart the Firefox browser.
Now close then reopen the Eclipse folder. ( I know what you're thinking but just listen and nod and do it.)
Click the Eclipse.exe file and now you should see the Eclipse splash screen.
After a few seconds, a message displays asking you to select an Eclipse Workspace. You should have this Workspace on your desktop
or some where you can make this connection.
Now Eclipse is working! Let me know if this process worked for you!

Related

Eclipse CDT and MinGW-w64: "update" MinGW-w64 for use with existing Eclipse projects

I have several Eclipse C++ projects that use the MinGW-x64 version 6.3 just fine, but now I want to upgrade to a newer gcc compiler. I downloaded and installed the 7.3 version from MinGW-builds and I noticed that it installed in the C:\Program Files\mingw64 instead of C:\mingw64. So, now I have two MinGW-w64 installations on my workstation, but Eclipse still only recognizes the older one. How do I made Eclipse use the newer installation for my existing projects?
I think you have to update the PATH environment variable.
From there, click "environment variables". Then (on the lower window tagged "System Variables"), click "Path" (so that it gets blued out). Click "Edit". Then click in the path to your previous MinGW location (something like " C:\mingw64\bin"). Select it, and click "Browse". Then, (start in "C:" and) go through the system file to your new MinGW-w64 location (e.g: "C:\Program Files\mingw64"), click in it, then go to the 'bin' folder location. Click in it. Then, "Ok". That's it!
By then, you will have uploaded your path variable to the new location.
P.S. - If you already know the full path to the bin location of the new MinGW version, you can simply delete the path to the old one (after clicking "Edit" in the system path vairables), and add the "new" path by simply pasting it (after clicking "new").

Rational Application Developer: find the IDE's location on disk (from within the IDE)

I have an open instance of Rational Application Developer - an eclipse-based IDE developed by IBM. RAD is newly installed, and i haven't yet created a shortcut. So, before closing it, i would like to create a shortcut. The problem is i forgot the place where i installed it. Is there any way, from within the IDE (some of its menus, perhaps), to find the location of the IDE (the .exe file) on disk?
Note 1: unlike eclipse, RAD has no 'Installation Details' under Help menu
Note 2: I already found a way to see the IDE's location: from Start, in the "Search Programs and Files" box, i type "rational" and it shows me the program ; i right click, select Properties, and under the Shortcut tab, the 'Start in' field shows the containing folder of the IDE. However, this only works because the application is pinned to the Start menu. In case I delete the pin accidentally, or the pin is not even created on installation, because i don't check the corresponding box, the question still stands: how to find the IDE's location from within the IDE, not from outside it.
In Eclipse you would go to Help -> Installation Details -> Configuration tab
However, in RAD, there is no Installation Details under Help. Fortunately, it is accessible this way: Help -> About Rational® Application Developer -> Installation Details. Credit goes to greg-449 for pointing this out.
In the Installation Details window, under the Configuration tab, the relevant snippet is the following
-launcher
C:\Users\user_name\IBM_85\SDP\eclipse.exe
as a comparison, in eclipse it would look something like
-launcher
C:\Users\user_name\eclipse-jee-neon-3-win32-x86_64\eclipse\eclipse.exe
this information is also contained in the line starting with eclipse.home.location

How to run system shell/terminal inside Eclipse?

I am using Eclipse Neon, and I would like to execute system commands on a shell/terminal, inside Eclipse.
In particular, I will need to open the system shell using the path of the current project folder on which I'm working in Eclipse.
In some Eclipse packages, like STS or Eclipse for JEE Developers, the Terminal is already installed in your IDE. If not, you can install the TM Terminal from the Eclipse */release update site, as you can see in the image below.
To open the command prompt (shell or terminal) using the path of a project directory inside Eclipse, you just need to select the folder, and press Ctrl+Alt+T, or right-click and select Show In Local Terminal > Terminal.
Then, the terminal will open in a new view inside Eclipse.
The Eclipse IDE which I am working there is no Terminal is there. So I needed to add the plug in like this and it works fine when you try clicking Alt+Ctrl+T
Click on Help in Eclipse-->Eclipse Marketplace--> in Find box (Search terminal and Enter)--> You will see TM Terminal 4.0 Version and just install it.
You may need to restart afterwards
And finally you will be able to get the Terminal when you will type
Alt+Ctrl+T on Console.
If you don't have the TM Terminal plugin installed, you could use external run configurations.
Click on the arrow near run button with the toolbox and add a new external run configuration.
Here, you can enter the path of your program(if you want to run commands, it will be C:\Windows\System32\cmd.exe (or the path to PowerShell on windows and /bin/bash (or similar if you use another shell) on linux.
In this dialog, you can also specify running directory of the application(the current project in your case)
After that, you can save this configuration and start it using the external run configuration menu(run button with toolbox)
Click on Run Cofiguration--> arguments --> Program Arguments (write any number of String) -->click on run
Go to Window > show view > Other.
A dialog will show up, type Terminal in the search field, select Terminal and click open.
A new empty view will show up in Eclipse.
On the top right corner of the view there is a button Labeled "open a Terminal".
Click on it, a dialog will show up
click OK and there you go, you got a Terminal.

JDK and Eclipse not working properly

Okay, so i wiped my PC clean today. Upon attempting to install Eclipse and the JDK i hit a snag.
I install the "ADT Bundle" from android developers.
I install the JDK to the default path
When i try to open Eclipse, it cannot find my JRE (which from what i understand comes in the JDK which i downloaded from the oracle website). I know it is properly installed because i can navigate to the install path and run java programs using the exe.
iv heard something about modifying environment variables to get it to find it but nothing has worked... i dont have a "PATH" variable listed.... i do have a "Path"... but changing either one does nothing to fix the problem... I have done this installation many times and it SHOULD be working...
any help on the subject would be greatly appreciated.
Since you wiped it clean, have you tried downloading Java Runtime Environment again (maybe you wiped it too)
The solution to this problem is such:
The "Path" enviroment variable needs to be under -user variables- NOT system variables
make a new user variable named "Path" and set the value to the absolute path of the java compiler
for me it was something like C:\Program File\Java\JDK1.7\bin
that should fix the problem of eclipse not finding the JDK/JRE...
if it complains about "JNI" then you need to make sure you are running the JDK and eclipse as the same achitechture (64bit java wont work with 32bit eclipse)
The "Path" environment variable needs to be defined or updated. If you are working in Windows 8 then you can navigate by following these steps:
Open > File Explorer
Right Click "Computer"
Select "Properties"
On the left hand side select "advanced system settings"
Under the "Advanced" tab, select "Environment Variables"
Locate the Path directory in the list under System
Edit the directory by entering a semi-colon after the last entry and then manually typing the location of your Java directory.
After the full address is entered, (Should look similar to --> C:\Program File\Java\JDK1.7\bin) click "Ok" on the screen to save your changes.
Something to keep in mind while updating your path. Make sure that you direct the path to the compatible version. If you downloaded the 64 bit eclipse, choose the 64 bit Java. If you do not remember the Eclipse version you downloaded, check your download file name against the files offered on Eclipse's website. If you follow these steps Eclipse should open up without a problem.

download jdk1.5.0_14

I download jdk1.5.0_14 and set environment variable JAVA_HOME and CLASSPATH.
Still it is not not working.
How can i download it?
I hope following steps are done:
Downloading the JDK 5 from this link
https://cds.sun.com/is-bin/INTERSHOP.enfinity/WFS/CDS-CDS_Developer-Site/en_US/-/USD/ViewProductDetail-Start?ProductRef=jdk-1.5.0_22-oth-JPR#CDS-CDS_Developer
Once you click on this link ,select
platform as windows and select the offline installation .
Once Download is completed(100%) , run the installation file (file will be
like this
jdk-1_5_0_22-windows-i586-p.exe) by double clicking the mouse.
Once installation is completed , the JDK will be default placed under
C:\Program Files\Java\jdk1.5.0_14
Now set the JAVA_HOME and CLASSPATH
Click on Start
Right Click My Computer from menu
Select Properties from Drop Down
Select Advanced Tab
Click on Environment Variable button
Click New button under the user variables Pane or legend
In the Dialog box under variable name
type JAVA_HOME and in variable
value type C:\Program Files\Java\jdk1.5.0_14
Click on Ok.
Click again New button in user variables Pane or legend
In the Dialog box under variable name type CLASS_PATH
and in variable value type
C:\Program Files\Java\jdk1.5.0_14;
C:\Program Files\Java\jdk1.5.0_14\lib;
Click on Ok.
Once done click on Ok and in subsequent windows.
Now Open a cmd prompt , by typing cmd from run menu , found when you click
on Windows Start button
once console is opened(a black
window) , type java -version ,
you may see help printed in the
screen and also type javac usage
will be printed .This means you are
ready to go.
Please check path again.
For example
In my machine the values are
CLASSPATH as C:\Program Files\Java\jdk1.5.0_14\lib;
and JAVA_HOME as C:\Program Files\Java\jdk1.5.0_14
It is your PATH variable
set PATH=%PATH%;C:\Program Files\Java\jdk1.5.0_14\bin
See Here
Download java 5 from here, install it, set JAVA_HOME environment
Try adding <java_install_dir>\bin (most likely C:\Program Files\Java\jdk1.5.0_14\bin) to your PATH environment variable. Be sure to separate it from everything else with a ;.