태터데스크 관리자

도움말
닫기
적용하기   첫페이지 만들기

태터데스크 메시지

저장하였습니다.

language/java2008/06/02 22:55

사용자 삽입 이미지

eclipse europa j2ee 실행시 위와 같은 에러 화면이 보이며 실행이 안될때,

0. eclipse.ini 파일 수정( 파일안의 내용과 같음 )
-showsplashorg.eclipse.platform--launcher.XXMaxPermSize256M-vmargs-Dosgi.requiredJavaVersion=1.5-Xms40m-Xmx512m 


1.
해결방법
->    http://www.ibm.com/developerworks/forums/message.jspa?messageID=13974129



"
I figured it out by reading the read me:

Depending on the JRE that you are running, the number of plug-ins you are using, and the number of files you will be working with, you may have to increase the amount of memory that is available to the Java VM running Eclipse. Eclipse allows you to pass arguments directly to the Java VM using the -vmargs command line argument, which must follow all other Eclipse specific arguments. To increase the available memory, you would typically use:

eclipse -vmargs -Xmx

The value should typically be at least "128M" (128 megabytes). Usually, "256M" (256 megabytes) is ample. You should not set this value to be larger than the amount of physical memory on your machine.

When the Workbench is launched, the first thing you see is a dialog that allows you to select where the workspace will be located. The workspace is the directory where your work will be stored. If you do not specify otherwise, Eclipse creates the workspace as a sibling of the executable (that is, at c:\eclipse-SDK-3.0-win32\eclipse\workspace). This workspace directory is used as the default content area for your projects as well as for holding any required metadata. For shared or multi-workspace installs you must explicitly specify the location for your workspace using the dialog (or via the "-data" command line argument).

Here is a typical Eclipse command line:

eclipse -vm c:\jdk1.4.2\jre\bin\javaw -vmargs -Xmx256M

Tip: It's generally a good idea to explicitly specify which Java VM to use when running Eclipse. This is achieved with the "-vm" command line argument as illustrated above. If you don't use "-vm", Eclipse will look on the O/S path. When you install other Java-based products, they may change your path and could result in a different Java VM being used when you next launch Eclipse.

To create a Windows shortcut to an installed Eclipse:

1. Navigate to eclipse.exe in Windows Explorer and use Create Shortcut on the content menu.
2. Select the shortcut and edit its Properties. In the Target: field append the command line arguments.

Opening this shortcut launches Eclipse. (You can drag the shortcut to the Windows Desktop if you want to keep it in easy reach.)
"

jvm 메모리를 늘려줘라~ 간단히 이거다 ㅎ

eclipse 의 바로가기 아이콘 우클릭 - 속성 - 대상에

-vm C:\Java\jdk1.6.0_06\bin\javaw -vmargs -Xmx256M

아래와 같이 뒤에 붙여준다.

사용자 삽입 이미지

이렇게 해도 되고,

2. 다른 해결 방법도 있다.

이클립스 eclipse.ini 파일의 기본설정은 다음과 같습니다.

-
showsplash
org
.eclipse.platform
--launcher.XXMaxPermSize
256M
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Xms40m
-Xmx512m



vm옵션을 주어 javaw.exe위치를 지정해 주면 잘 실행됩니다.

-showsplash
org
.eclipse.platform
--launcher.XXMaxPermSize
256M
-vmargs
-vm
C
:\Program Files\Java\jdk1.6.0_06\bin\javaw.exe
-Dosgi.requiredJavaVersion=1.5
-Xms40m
-Xmx512m

출처 : http://wiki.eclipse.org/Eclipse.ini


편한대로 사용하면 될듯~

'language > java' 카테고리의 다른 글

[펌] Spring XML설정파일을 위한 12가지 가장 좋은 선택  (0) 2008/06/16
Naming Rule  (0) 2008/06/11
[eclipse] eclipse europa j2ee 실행 안될때,  (0) 2008/06/02
[Java] iBATIS 란?  (3) 2008/06/02
Anti Pattern  (0) 2008/01/28
UTF-8 Web Application 개발에 관한 정리  (0) 2008/01/28
Posted by THLIFE.net
TAG

TRACKBACK http://thlife.net/trackback/685 관련글 쓰기

댓글을 달아 주세요