In Eclipse, if you see the an error saying getTextContent() is undefined for Node/Element, then follow:
http://mergetag.com/the-method-gettextcontent-is-undefined-for-the-type-node/
Showing posts with label eclipse. Show all posts
Showing posts with label eclipse. Show all posts
Monday, February 04, 2013
Tip: Eclipse:: getTextContent() is undefined for Node/Element
Wednesday, September 05, 2012
Eclipse Heap Settings on Mac
Locating the eclipse.ini is tricky on a mac.
To locate it, right-click on the Eclipse Application icon and select "Show Package Contents", then double-click on the "Contents" folder and then double-click on the "MacOS" folder, the home of
You can use Applications->Text Edit to change the eclipse.ini file. :)
Usually you want to adjust the heap settings.
To locate it, right-click on the Eclipse Application icon and select "Show Package Contents", then double-click on the "Contents" folder and then double-click on the "MacOS" folder, the home of
eclipse.ini
. You can use Applications->Text Edit to change the eclipse.ini file. :)
Usually you want to adjust the heap settings.
Sunday, April 25, 2010
Eclipse 3.5 (Ganymede) update issues
Solution 1: As described in the eclipse wiki link, please remove the mylyn update.
Solution 2: This may work
Problem: Eclipse 3.5 software update does not work. You see errors such as "No repository information found".
Steps:
1) Help -> Install New Software -> Available Software Sites
2) Select all and then export it as bookmarks.xml
3) Now remove all the urls from the dialog box.
4) In a text editor of your choice, go into bookmarks.xml and add a "/" at the end of all the urls.
5) Now in the eclipse dialog, import this "bookmarks.xml".
6) Enable all the urls. (You need to click on the Enable button while having all the sites selected).
That's it. Now you will be able to get away from the errors.
Caveat: Every time you add in a new software site to update/install, remember to add in a "/" at the end of the url.
Solution 2: This may work
Problem: Eclipse 3.5 software update does not work. You see errors such as "No repository information found".
Steps:
1) Help -> Install New Software -> Available Software Sites
2) Select all and then export it as bookmarks.xml
3) Now remove all the urls from the dialog box.
4) In a text editor of your choice, go into bookmarks.xml and add a "/" at the end of all the urls.
5) Now in the eclipse dialog, import this "bookmarks.xml".
6) Enable all the urls. (You need to click on the Enable button while having all the sites selected).
That's it. Now you will be able to get away from the errors.
Caveat: Every time you add in a new software site to update/install, remember to add in a "/" at the end of the url.
Friday, March 05, 2010
Android Development 101
Assume you have Eclipse 3.5 installed.
Step 1: Download the Android SDK. It is usually tgz for linux.
Step 2: Install the Android plugin for eclipse.
http://developer.android.com/sdk/eclipse-adt.html
Step 3: Open Eclipse and Create a AVD (Android Virtual Device)
=========================================
To create an AVD with the AVD Manager:
1. Select Window > Android SDK and AVD Manager, or click the Android SDK and AVD Manager icon (a black device) in the Eclipse toolbar.
2. In the Virtual Devices panel, you'll see a list of existing AVDs. Click New to create a new AVD.
3. Fill in the details for the AVD.
Give it a name, a platform target, an SD card image (optional), and a skin (HVGA is default).
4. Click Create AVD.
================================
Step 4: Now create a new Android project. File -> New -> Android - >Android Project. Choose a target.
Testing on your phone :-
Best is to have the Android Development Phone 2 (ADP2).
Then to debug your application from Eclipse onto the phone.
1) Set up your ADP2 or your device to USB connect with your computer.
2) Make your application "debuggable". You need to do this in the android manifest.
3) Eclipe Run -> Run As -> Android Application
Note: To set up ADP2 on Fedora/Ubuntu, do the following:
$> sudo vi /etc/udev/rules.d/51-android.rules.
UBSYSTEM=="usb", SYSFS{idVendor}=="0bb4", MODE="0666"
$> $ sudo chmod a+r /etc/udev/rules.d/51-android.rules.
Step 1: Download the Android SDK. It is usually tgz for linux.
Step 2: Install the Android plugin for eclipse.
http://developer.android.com/sdk/eclipse-adt.html
Step 3: Open Eclipse and Create a AVD (Android Virtual Device)
=========================================
To create an AVD with the AVD Manager:
1. Select Window > Android SDK and AVD Manager, or click the Android SDK and AVD Manager icon (a black device) in the Eclipse toolbar.
2. In the Virtual Devices panel, you'll see a list of existing AVDs. Click New to create a new AVD.
3. Fill in the details for the AVD.
Give it a name, a platform target, an SD card image (optional), and a skin (HVGA is default).
4. Click Create AVD.
================================
Step 4: Now create a new Android project. File -> New -> Android - >Android Project. Choose a target.
Testing on your phone :-
Best is to have the Android Development Phone 2 (ADP2).
Then to debug your application from Eclipse onto the phone.
1) Set up your ADP2 or your device to USB connect with your computer.
2) Make your application "debuggable". You need to do this in the android manifest.
3) Eclipe Run -> Run As -> Android Application
Note: To set up ADP2 on Fedora/Ubuntu, do the following:
$> sudo vi /etc/udev/rules.d/51-android.rules.
UBSYSTEM=="usb", SYSFS{idVendor}=="0bb4", MODE="0666"
$> $ sudo chmod a+r /etc/udev/rules.d/51-android.rules.
Monday, January 25, 2010
"The type java.lang.Object cannot be resolved." with Eclipse
There can be many cases for this:
1) You have lost .classpath and other eclipse files. If you use maven, then do "mvn eclipse:eclipse:.
2) Your .classpath may contain (org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/java5) Just remove that to yield
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
1) You have lost .classpath and other eclipse files. If you use maven, then do "mvn eclipse:eclipse:.
2) Your .classpath may contain (org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/java5) Just remove that to yield
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
Wednesday, January 20, 2010
Eclipse Issues on Fedora 12
Now if you are facing issues with eclipse on Fedora 12, you need to do the following depending on how you start eclipse.
You will need to export GDK_NATIVE_WINDOWS=true before you start eclipse.
Relevant eclipse bug: https://bugs.eclipse.org/bugs/show%5Fbug.cgi?id=291257
If you use command line to start eclipse:
Create a script that looks as follows:
#!/bin/sh
export MOZILLA_FIVE_HOME=/usr/lib/mozilla/
export ECLIPSE_HOME=/opt/IBM/eclipse
export GDK_NATIVE_WINDOWS=true
$ECLIPSE_HOME/eclipse $*
If you use a Desktop shortcut under KDE (Dolphin):
Then in the Properties dialog, under the application tab do the following:
export GDK_NATIVE_WINDOWS=1; /opt/eclipse/eclipse -showlocation -data /home/xxx/workspace
Please do not forget to the rename the workspace directory propertly. Also verify whether your eclipse installation directory is /opt/eclipse or change it accordingly.
You will need to export GDK_NATIVE_WINDOWS=true before you start eclipse.
Relevant eclipse bug: https://bugs.eclipse.org/bugs/show%5Fbug.cgi?id=291257
If you use command line to start eclipse:
Create a script that looks as follows:
#!/bin/sh
export MOZILLA_FIVE_HOME=/usr/lib/mozilla/
export ECLIPSE_HOME=/opt/IBM/eclipse
export GDK_NATIVE_WINDOWS=true
$ECLIPSE_HOME/eclipse $*
If you use a Desktop shortcut under KDE (Dolphin):
Then in the Properties dialog, under the application tab do the following:
export GDK_NATIVE_WINDOWS=1; /opt/eclipse/eclipse -showlocation -data /home/xxx/workspace
Please do not forget to the rename the workspace directory propertly. Also verify whether your eclipse installation directory is /opt/eclipse or change it accordingly.
Subscribe to:
Posts (Atom)