I want to do this using Java or Eclipse or directly from SQL Developer
The URL link provided in my previous message is for Oracle's SQL Developer user guide. You may follow the instructions to export database table data to a CSV file. I guess you have an installation of the SQL Developer; if not try to get it installed.
An IDE is a development tool. For example, Eclipse or a Netbeans. One can use it to develop an application or a program using a programming language like Java or C# etc. Yes, one can write a program to read a database table and write to file.
Generally one need to decide what programming language to use (my guess is Java) to use, and then what database to read from and then write to a file. To read or query the database one uses JDBC API and IO libraries to write to a file. Also, what kind of data is in the database table and how much of it, etc.