I have created a folder structure which contains number of other jar files.Size of this folder is around 6 GB, When I am trying to import this folder in eclipse then I am getting java heap error.I tried with increasing the size of max perm size in eclipse.ini file
6GB? What is in that folder that the folder is so big? Is it a lot of smaller files or are there some huge files? Knowing what's in that directory and what you are doing with it will help.
I'm not sure which files Eclipse will attempt to load, but if it tries to load at 6GB your need a 64-bit JDK, and run a 64-bit Eclipse (you'll also need a 64-bit OS). You will need either a lot of RAM or a large page file, and then set the heap to a very large value. I recall once needing to load a 1.5GB file into a Java app and I needed a 6GB (4*1.5) heap. Not sure if you'll need a 24GB heap or if a smaller one will do.