Saturday, 19 May 2012

Eclipse Problem Solution


ECLIPCE PROBLEM SOLUTIONS

PROBLEM:
The Maven Integration requires that Eclipse be running in a JDK, because a
> number of Maven core plugins are using jars from the JDk.
SOLUTION:
You have to do these entries in your eclipse.ini file which is available in your eclipse installation director
-vm
C:\Program Files\Java\jdk1.6.0_20\bin\javaw.exe
Or
-vm
C:\Program Files\Java\jdk1.6.0_20\bin\java.exe
Note:-- If you use java.exe then it show console window, if you use javaw.exe then doesn’t show console

PROBLEM:
Timeout waiting for tomcat v6.0 server at localhost to start server did not start after45 seconds
SOLUTION:
Increase the time stamp of server startup
Follows these steps: CLICK ON window menupreferencesserverset server timeout delay: UNLIMITED

SERVER TIME OUT IN STC TOOL:-

PROBLEM:
If eclipse doesn’t start properly and give some java version issues
SOLUTION:
For it you have to do following entries which is given below in your eclipse.ini file
-vm
C:\Program Files\Java\jre\bin
Or
-vm
C:/Program Files/Java/jre/bin
  • WHEN IDE SERVER WILL NOT COMPILE YOUR JSP
<Context docBase="psdata" path="/psdata" reloadable="true" source="org.eclipse.jst.jee.serversdata"> <Loader delegate="true"/></Context></Host>

  • SHOW LINE NUMBER

Eclipse Plugins Links:-
------------------------
  •    ADT_PLUGIN:--> https://dl-ssl.google.com/android/eclipse/
  •   EPP Packages Repository:- http://download.eclipse.org/technology/epp/packages/galileo
  •   FIND_BUG:--> http://findbugs.cs.umd.edu/eclipse
  •   Galileo:--> http://download.eclipse.org/releases/galileo
  •   google_api:--> http://dl.google.com/eclipse/plugin/3.5
  •   Mylyn for Eclipse 3.4 and 3.5: -->  http://download.eclipse.org/tools/mylyn/update/e3.4/
  •   svn:--> http://subclipse.tigris.org/update_1.0.x/
  • http://download.eclipse.org/technology/subversive/0.7/update-site/
  • http://download.eclipse.org/technology/subversive/1.0/update-site/
  • Install the most recent JBoss AS tools.:- http://download.jboss.org/jbosstools/updates/stable/helios/

    PROBLEM:- Access restriction : The type BASE64Decoder is not accessible due to restriction on required library


    Access restriction : The type BASE64Decoder is not accessible due to restriction on required library c:jdk1.6.0_25jrelibrt.jar
    This is a compilation error in Eclipse with 1.6 JRE.
    1. Open project properties.
    2. Select Java Build Path node.
    3. Select Libraries tab.
    4. Remove JRE System Library.
    5. Add Library JRE System Library.
    Goes away

> The latest Groovy-Eclipse release is available from the following Eclipse update sites. To install, point your Eclipse update manager to the update site appropriate for your Eclipse version.
For Eclipse 4.2 (Snapshot builds only):
For Eclipse 3.7:
For Eclipse 3.6:
For Eclipse 3.5:
For Eclipse 3.4.2 (development build only and not really recommended except for the poor souls who are stuck using Eclipse 3.4):
Or, you can choose to install a development build, see below for more update sites.  In general, our development builds are quite stable.  A development build is not published unless all unit tests pass.

HOW CONVERT .CSV FILE INTO .XLS FORMAT:-
1. Firstly, open .csv file with ms-excel or open-office excel.
2. And change the character encoding into UTF-8 and save the file.
3. After it you can use 'save as' option to save .csv file into .xls file.

*******The specified JRE installation does not exist.**********
Open the launch configuration dialog for your App. build.
Go to the JRE tab
Pick the JRE installation that you wish to use to run the build
**************************************************   

Java was started but returned exit code=1
c:\windows\system32\javaw.exe
-Xms40m
-Xmx512m
-XX:MaxPermSize=256m
-jar C:\eclipse\plugins/org.eclipse.equinox.launcher_1.10.v201005 07.jar
-os win32
-ws win32
-arch x86_64
-showsplash
-launcher c:\eclipse\eclipse.exe
-name Eclipse
--launcher.library
c:\eclipse\plugins/org.eclipse.equinox.launcher.win32.win32. x86_64_1.1.1.R36x_v20100810\eclipse_1309.dll
-startup c:\eclipse\plugins/org.eclipse.equinox.launcher_1.1.0.v20100 507.jar
-exitdata bf0_5c
-vm c:\program files\java\jdk1.6.0_23\bin\javaw.exe
-vm c:\windows\system32\javaw.exe
-vmargs
-Xms40m
-Xmx512m
-XX:MaxPermSize=256m
-jar c:\eclipse\plugins/org.eclipse.equinox.launcher_1.1.0.v20100 507.jar 


I just reduce the -Xmx value and restart the IDE. :)

Not showing suggestion:-

Please try these step for enable packages,class & method suggestion in eclipse.

  • Open Eclipse Preferences
  • Go to Windows -> Preferences -> Java -> Editor -> Content Assist -> Advanced
Change package name in classe:-

Follow these steps to move the Java files to your new package.

Select the Java files --> Right click --> Select Refactor --> Select Move "Select your preferred package if exist otherwise create a new package
"

No comments:

Post a Comment