SOLVED: Eclipse can't start in Fedora 11 - Fedora Support Forums and Community
Results 1 to 5 of 5
  1. #1
    Join Date
    Jul 2009

    Thumbs up SOLVED: Eclipse can't start in Fedora 11

    Problem: clean install of Fedora - eclipse won't start - dialogue box says
    error in logfile in workspace/.metadata/.log but file doesn't exist to get
    more information

    >cd /usr/lib/eclipse/plugins/
    >java -jar org.eclipse.equinox.launcher_1.0.101.R34x_v2008112 5.jar

    starts eclipse directly in command line so can see errors on startup as
    nothing written to log file

    ZoneInfo: /usr/share/javazi/ZoneInfoMappings (Too many open files)
    ZoneInfo: /usr/share/javazi/ZoneInfoMappings (Too many open files)
    !SESSION 2009-07-24 06:56:30.890 -----------------------------------------------
    java.vendor=Sun Microsystems Inc.
    BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=en_US

    !ENTRY org.eclipse.jdt.apt.ui.nl_iw 4 0 2009-07-24 06:56:32.599
    !STACK 0 error in opening zip file
    at Method)
    at org.eclipse.osgi.framework.util.SecureAction.getZi pFile(
    at org.eclipse.osgi.baseadaptor.bundlefile.ZipBundleF ile.basicOpen(

    etc. etc.

    Too many open files reported. Problem opening a zip file (presumably because
    open file limit reached). Also possibly explains why log not written as
    couldn't get a file handle to report error once limit was reached.

    Test: see how many files can open, increase limit, restart

    max files given by command:
    >ulimit -n

    create a group 'eclipse' and add lines into /etc/security/limits.conf to set a higher number
    of open files limit (nofiles lines) for group. Need to preceed group name
    with an '@' sign.

    # /etc/security/limits.conf
    #Each line describes a limit for a user in the form:
    #<domain> <type> <item> <value>
    #<domain> can be:
    # - an user name
    # - a group name, with @group syntax
    # - the wildcard *, for default entry
    # - the wildcard %, can be also used with %group syntax,
    # for maxlogin limit
    #<type> can have the two values:
    # - "soft" for enforcing the soft limits
    # - "hard" for enforcing hard limits
    #<item> can be one of the following:
    # - core - limits the core file size (KB)
    # - data - max data size (KB)
    # - fsize - maximum filesize (KB)
    # - memlock - max locked-in-memory address space (KB)
    # - nofile - max number of open files
    # - rss - max resident set size (KB)
    # - stack - max stack size (KB)
    # - cpu - max CPU time (MIN)
    # - nproc - max number of processes
    # - as - address space limit (KB)
    # - maxlogins - max number of logins for this user
    # - maxsyslogins - max number of logins on the system
    # - priority - the priority to run user process with
    # - locks - max number of file locks the user can hold
    # - sigpending - max number of pending signals
    # - msgqueue - max memory used by POSIX message queues (bytes)
    # - nice - max nice priority allowed to raise to values: [-20, 19]
    # - rtprio - max realtime priority
    #<domain> <type> <item> <value>

    #* soft core 0
    #* hard rss 10000
    #@student hard nproc 20
    #@faculty soft nproc 20
    #@faculty hard nproc 50
    #ftp hard nproc 0
    #@student - maxlogins 4

    @eclipse soft nofile 10000
    @eclipse hard nofile 10000

    # End of file

    Add user in group 'eclipse'. Log out user (as settings created on login), login again, and restart eclipse

    Result: eclipse starts up fine

  2. #2
    Join Date
    Jul 2009


    sorry - you only need one of the lines in limits.conf - either hard or soft limit.

  3. #3
    Join Date
    Oct 2009

    The probably correct solution

    The previous solution suggested in probably not the solution for the problem. The problem of too many open files occurs (in usual cases, I mean) because of the osgi file open limit which is internal to eclipse and not a system level file open limit. See for the solution. For convenience, I have copied the solution below.



    to .eclipse/org.eclipse.platform_*/configuration/config.ini

    Note: In the file path "*" represent whatever version number of the eclipse you have in your system.

  4. #4
    Join Date
    Jul 2009
    Well, I didn't change that and it worked, so I don't see why you think this is not the fix!

  5. #5
    Join Date
    Aug 2009

    Re: SOLVED: Eclipse can't start in Fedora 11

    second solution did not work for me, first with hard limit does work ok.

Similar Threads

  1. Fedora Eclipse will not start
    By dmyersturnbull in forum Using Fedora
    Replies: 6
    Last Post: 24th June 2009, 05:26 PM
  2. Fedora 8 -- Fail to start x-window on boot [SOLVED]
    By tx836519 in forum Hardware & Laptops
    Replies: 8
    Last Post: 22nd October 2008, 03:25 AM
  3. Eclipse does not start
    By kupo in forum Using Fedora
    Replies: 3
    Last Post: 1st May 2008, 03:45 PM
  4. Eclipse won't start
    By daveReed in forum Using Fedora
    Replies: 1
    Last Post: 22nd September 2006, 05:45 AM
  5. When will this Eclipse bug be solved ?
    By Coenos in forum Using Fedora
    Replies: 0
    Last Post: 30th July 2006, 09:03 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts