Tag Archive for 'eclipse'

FDT : Not enough memory

FDT를  3.0.2 build 1001  버전으로 업데이트를 하고 나서 이클립스에 메모리가 부족하다는 메시지가 생겨났다. 이전까지 별 무리없이 쓰고 있었는데 작업을 앞두고 갑자기 먹통이 되어버리니 참 답답할 노릇이였다. 아마도 여러가지 기능이 추가되면서 필요로 하는 메모리가 늘어난듯 싶다.
찾아보니 fdt 포럼에도 이같은 문제가 제기되었는데 단순히 아래 메시지가 나오는 것과 같이 설치폴더에 있는 eclipse.ini 환경설정 파일의 메모리 최대 사용량을 늘려주라는 이야기 뿐이였다.

1272737987

물론 메로리 설정을 변경하고 이상이 없다면 다행이지만 나의 경우에는 -Xmx512 로 설정할 경우 eclipse 런처가 실행조차 안되는 문제가 발생한다. 한참만에 이것이 Eclipse 3.3.1 버전의 런처가  Sun VM 을 인식못하는 버그가 있다는 사실을 알아냈다.

http://wiki.eclipse.org/FAQ_How_do_I_increase_the_permgen_size_available_to_Eclipse%3F

따라서 이러한 문제를 해결하려면  eclipse.ini 파일을 약간 수정해야한다.

<original eclipse.ini>
-showsplash
org.eclipse.platform
–launcher.XXMaxPermSize   ——-> remove

256m                        ——–>remove
-vmargs
-Xms40m
-Xmx256m                  ——> replace -Xmx256m to -Xmx512m

eclipse.ini 을 열면 위와 같은 코드를 볼 수 있을 것이다.
FDT3.0 을 위해 최대 사용할 메모리를 늘리려면  맨 아래줄의 -Xmx256m 부분의 숫자 부분을 512 이상으로 변경해주면 된다. (자신의 메모리 용량에 따라 512이상으로 적절하게 설정해주면된다.)

그리고 붉은색 코드부분을 모두 삭제해준다.

<revised eclipse.ini>
-showsplash
org.eclipse.platform
-vmargs
-Xms40m
-Xmx512m

위과 같이 수정해 주면 이클립스 메모리 문제를 해결할 수 있을 것이다.

Eclipse and Mac OS X

[퍼온글] 출처 http://developer.apple.com/tools/eclipse.html

Editor’s Note: To learn more about Eclipse and Java development on Mac OS X, register for the Apple Worldwide Developers Conference 2004.

Thanks to its highly optimized but fully standard Java implementation, Mac OS X has garnered a reputation amongst developers as an excellent platform for developing and deploying Java applications. The most recent release of Eclipse, the well-respected open-source IDE, for Mac OS X only strengthens the case, as this flexible and highly extensible tool is a favorite of many Java developers. This article provides a quick overview of Eclipse for Mac OS X and explains how to download the latest version and get started.

What is Eclipse?

Eclipse was originally designed for building integrated development environments (IDEs), that were versatile enough to create applications for a range of programming languages. The intention was to provide tools makers with an IDE that would include mechanisms and rules that would consistently result in seamless tools integration. Since then, Eclipse has evolved to include an IDE that provides benefits for a wide range of development projects.

Because it is Java-based, Eclipse includes the Java Development Kit (JDK); and yet its architecture supports all major programming languages from C/C++ to Cobol.

Eclipse is a free download, and is available on a number of platforms. Since IBM launched Eclipse in November 2001, more than 18 million download requests have been logged from over 125 countries.

A growing consortium of high-profile companies and organizations are actively supporting and extending Eclipse’s ongoing development and giving the platform momentum. These organizations contribute support and technology, and they determine the direction and scope of Eclipse’s growth.

Highly Extensible

Because it is a highly extensible, open framework, Eclipse allows you to use—and create your own—plug-in tools to extend the basic Eclipse IDE for developing your applications.

This means that if you are developing an application using Eclipse for Mac OS X, and you need a special tool to facilitate development on your project, you can choose from literally hundreds of available plugin tools that work seamlessly with Eclipse and with any of the plugin tools you are using.

These plugins, which have been developed by a wide variety of companies and individuals, run the gamut from traditional coding tools such as source code analyzers, graphical layout tools, and compilers to productivity enhancers like bug trackers, source code managers, and even games. When you download and unzip the plugin tools, they are automatically integrated into the Eclipse framework enabling you to create high-quality applications in less time.

Eclipse’s architecture has fostered a worldwide community of plugin developers. As more plugins are created that address the entire development cycle, Eclipse becomes increasingly useful, and popular.

The range of plugins is amazing. One biotech consultant uses the Jmechanic plugin, saying, “our clients could quickly identify many performance problems, and could then decide whether it was something they wanted to fix, outsource, or live with.” Using the Eclipse plugin saved licensing costs, and gave each developer on their team the freedom to run a time profile before checking in their code.

Another developer uses Eclipse as his primary IDE, and says, “the Sysdeo Tomcat launcher plugin is essential for my daily work, because it allows me to do runtime debugging of my web application from within Eclipse.”

Figure 1 shows the Eclipse user interface on Mac OS X, with an open example of a sample plug-in project.

Eclipse User Interface on Mac OS X

Figure 1: Eclipse User Interface on Mac OS X

Speed development

You will quickly discover that one of the reasons Eclipse is popular with developers is that it is intuitive to learn and use. The Eclipse framework includes the workbench component that provides Eclipse with its user interface, a collection of views and editors. When you select a perspective, you are specifying the set of tools you need to use for the task at hand. This elegant workbench metaphor makes the Eclipse environment highly intelligent.

Eclipse’s features are well implemented and very effective, and are designed to increase the speed of the development cycle by automating tedious tasks that distract you from coding.

Other strengths include built-in CVS integration that makes it convenient to synchronize code with the CVS server. One Eclipse user says, ” the Synchronize view makes it easy to merge changes and view changes before I decide to update. The Annotation view allows me to determine when each line of a file was added and who added it. This feature is great for tracking down bugs.”

Eclipse integrates a best-of-breed implementation of features such as:

  • Code Refactoring – Allows you to reorganize and make other global changes to your code such as changing the name of a method or changing parameters. Refactoring is a way of making system-wide code changes without affecting the behavior of the program.
  • Content Assist – Displays a list of phrases that you can select from to complete what you are typing when editing Java code. This list is based on an ongoing analysis of your Java code.
  • Quick Fix – Enables you to correct a wide variety of problems, from spelling errors and missing import statements to declaring local variables and classes. The Java editor offers corrections to problems found while typing and after compiling.
  • Extract Method – Creates a method for the highlighted code.
  • Unit Testing – Provides you with an easy way to run all tests in a specified Java project, source folder, or package.
  • Import Management – Provides you with several features that help you manage import statements.
  • Documentation Lookup – Displays documentation relating to the method you point to with the cursor. The comment displayed shows the method name, documentation for method parameters, and the return value.
  • Debugger – Enables you to detect and diagnose errors in your programs running either locally or remotely. The debugger includes “hot code replace” that allows you to change source code during a debugger session.

Cross-Platform Development Teams

When used with Eclipse, Mac OS X supports heterogeneous development teams, enabling you to mix Mac OS X, Linux, UNIX and XP computing environments. This means that if you have a dozen Windows users and a dozen Mac users on your development team, these team members on different platforms can work on the same project without barriers.

Eclipse is great for organizing multiple projects with a large team of developers who can work collaboratively. “I found that Eclipse gave us a very clear picture of the hundred or so interlocking projects at one client” a developer told us. “It made it easy to see where these projects connected, and allowed us to refactor core libraries easily.” This developer explained that their bid to reduce inter-project dependencies for a client required splitting a dozen core projects into separate units. With Eclipse, one of their team finished the coding work in under a week. He says, “I suspect that the manual method would have taken a month, and thus would not have been cost effective. You cannot have your core libraries in turmoil for that long.”

In fact, in some industries, such as biotech, a significant percentage of developers currently are using Mac OS X and PowerBooks because they can develop applications for Mac, Windows, Linux, and Solaris deployments, with one box. Our biotech developer says, “Most of our work is in Java, though we also do Perl, C++, MATLAB, and whatever else our clients ask. We choose this platform because the Java implementation is good, we have access to a full underlying Unix layer, and we have a good suite of productivity applications. Without Mac OS X, we would likely have to carry around two different machines, with a dual boot Linux option on at least one of them.”

Why Do Java Development on the Mac?

The ease of use of Mac OS X, the power and stability of UNIX, the integration of Java into Mac OS X and the availability of great development environments like Eclipse make the Mac a great Java development environment.

UNIX users feel at home in Darwin, the robust UNIX-based environment that underlies Mac OS X. That environment is accessible at any time from the Terminal application. All of the standard UNIX utilities and scripting languages are included in Mac OS X—editors such as emacs, vim and pico; file management tools such as cp, mv, ls and gnutar; shell scripts including bash, tcsh (csh) and zsh; and scripting languages such as Perl, PHP, tcl, Ruby and Python. For Java-based web engineers, Apache, Tomcat and JBoss are also included, so you can do JSP development or enterprise class J2EE applications.

Mac OS X also gives you a highly mobile platform. The PowerBook series provides a high-powered workstation that is completely portable and allows you to pick up and go, and then quickly resume work at a new location. Even as you open your laptop, network connections are being reestablished and the computer is immediately up and running.

Apple has made Java a core component of Mac OS X—every Mac ships with the full version of Java 2, Standard Edition included—meaning you have the Java Developer Kit (JDK) and the HotSpot virtual machine (VM) without downloading, installing or configuring anything. And because Apple has optimized Java on Mac OS X, Java applications act as first-class citizens on Mac OS X.

In addition to Eclipse many of the industry leading tools are available, including IntelliJ’s IDEA, Borland’s JBuilder, Oracle’s JDeveloper, and Sun’s NetBeans, just to name a few. Mac OS X also includes free developer tools which support rapid Java development right out of the box.

Getting Started

You can get a copy of Eclipse by visiting the Eclipse download page and downloading the latest build. (The current version of Eclipse requires Mac OS X v10.3 Panther.) All builds are delivered as .ZIP files.

Download and install Eclipse

  1. Using your Safari browser, go to the eclipse.org Website.
  2. Click Downloads.
  3. Click Main Eclipse Download Site. If you are not located in North America, use the mirror site closet to your location.
  4. Click the name of the Release Build you want. At the time of this writing, the “3.0 Stream Stable Build” is the latest developer preview of version 3.0. This version is currently fine for daily use.
  5. Under “Eclipse SDK, find “Mac OSX (Mac/Carbon) (Supported Versions)”—the file name is also displayed. Select either the HTTP or FTP download option.
  6. After reading the Notes, click “Download” at the bottom of the page.
  7. When the download is complete, unzip the archive into the appropriate folder.(Older versions of Stuffit truncated file names and caused problems with Eclipse. Make sure you are using the appropriate version.)

    Your installation is now complete.

  8. Click the Eclipse icon to launch the IDE.

The first time you run Eclipse, it completes a few remaining install tasks—such as creating a workspace directory—before the Eclipse environment appears.

Work through the tutorials

With Eclipse installed and running, you can begin by looking at an overview of Eclipse features and plugins installed on your system, and then doing a tutorial that guides you through building a simple Java application.

To see the overview of the Eclipse features: from the Help menu, choose About Eclipse Platform

To do a tutorial on building a simple Java application: from the Help menu, choose Java Development User Guide > Getting Started > Basic Tutorial

Resources for More Information

Posted: 2004-06-07