I would recommend to not use eclipse while learning. Eclipse isn't useful for programs that aren't complex. If you are not knowledgeable enough to have a firm understanding of the language and can't get your script to compile without the help of Eclipse, your script is going to be useless when it is compiled.
Java is a very easy language. If you are interested in learning to script, I have a couple of tips for you.
1. Don't use Eclipse, trust me. It will improve your attention to detail which is important in scripting.
2. Read existing code. When I learn any new language, the first thing I do is look through many lines of source code. You will be able to learn how other programmers with more experience than yourself solve problems. This is the single most important step to being a programmer.
3. Head first Java. This book series is great for newbies. Years ago when I was younger I was introduced to these books by one of my high school professors. This book is designed for newbies, with easy to understand language and some fun and interesting hands on projects this is enough to get you up and running with your first scripts. You can download this off thepiratebay easily.
4. Hands on experience. After learning a new concept, for example a while loop, implement it a couple dozen times in different ways to get your fingers used to the syntax. This is just like taking notes in school. Writing things out helps you remember them, and typing out code helps you remember the syntax.
Good luck, have fun, and keep at it! There is a VERY steep learning curve for programming. It took me about 3 years of programming as a hobby until it all clicked and I started pumping out some really great programs. It is definitely worth it in the end!