Solution:
root@svr5:/home/huynhnguyen/workspace/.metadata# cd .plugins/
root@svr5:/home/huynhnguyen/workspace/.metadata/.plugins# ll
total 38
drwxrwxrwx 19 huynhngu wheel 1024 Dec 16 12:32 .
drwxrwxrwx 3 huynhngu wheel 512 Nov 5 2007 ..
drwxrwxrwx 6 huynhngu wheel 512 Dec 16 14:17 org.eclipse.core.resources
drwxrwxrwx 3 huynhngu wheel 512 Nov 5 2007 org.eclipse.core.runtime
drwxrwxrwx 3 huynhngu wheel 512 Nov 5 2007 org.eclipse.debug.core
drwxrwxrwx 2 huynhngu wheel 512 Dec 16 14:15 org.eclipse.debug.ui
drwxrwxrwx 2 huynhngu wheel 512 Nov 5 2007 org.eclipse.help.base
drwxrwxrwx 2 huynhngu wheel 1024 Dec 16 12:43 org.eclipse.jdt.core
drwxrwxrwx 2 huynhngu wheel 512 Nov 5 2007 org.eclipse.jdt.launching
drwxrwxrwx 2 huynhngu wheel 512 Dec 16 12:44 org.eclipse.jdt.ui
drwxrwxrwx 6 huynhngu wheel 512 Dec 16 14:17 org.eclipse.pde.core
drwxrwxrwx 2 huynhngu wheel 512 Dec 16 12:43 org.eclipse.pde.runtime
drwxrwxrwx 2 huynhngu wheel 512 Dec 16 12:41 org.eclipse.pde.ui
drwxr-xr-x 2 huynhngu wheel 512 Dec 16 12:41 org.eclipse.search
drwxrwxrwx 4 huynhngu wheel 512 Nov 5 2007 org.eclipse.tomcat
drwxrwxrwx 2 huynhngu wheel 512 Nov 5 2007 org.eclipse.ui
drwxrwxrwx 2 huynhngu wheel 512 Nov 5 2007 org.eclipse.ui.ide
drwxrwxrwx 2 huynhngu wheel 512 Dec 16 12:34 org.eclipse.ui.workbench
drwxr-xr-x 2 huynhngu wheel 512 Dec 16 12:26 org.eclipse.update.ui
root@svr5:/home/huynhnguyen/workspace/.metadata/.plugins# ll /home/pxtung/workspace/.metadata/.plugins
total 20
drwxr-xr-x 10 pxtung wheel 512 Dec 19 17:03 .
drwxr-xr-x 3 pxtung wheel 512 Dec 19 17:37 ..
drwxr-xr-x 4 pxtung wheel 512 Dec 19 17:03 org.eclipse.core.resources
drwxr-xr-x 3 pxtung wheel 512 Dec 19 17:03 org.eclipse.core.runtime
drwxr-xr-x 2 pxtung wheel 512 Dec 19 17:03 org.eclipse.debug.core
drwxr-xr-x 2 pxtung wheel 512 Dec 19 17:03 org.eclipse.debug.ui
drwxr-xr-x 2 pxtung wheel 512 Dec 19 17:03 org.eclipse.jdt.core
drwxr-xr-x 2 pxtung wheel 512 Dec 19 17:03 org.eclipse.jdt.ui
drwxr-xr-x 2 pxtung wheel 512 Dec 19 17:03 org.eclipse.ui.ide
drwxr-xr-x 2 pxtung wheel 512 Dec 19 17:03 org.eclipse.ui.workbench
root@svr5:/home/huynhnguyen/workspace/.metadata/.plugins# cp /home/huynhnguyen/workspace/.metadata/.plugins /home/pxtung/workspace/.metadata/.plugins
cp: /home/huynhnguyen/workspace/.metadata/.plugins is a directory (not copied).
root@svr5:/home/huynhnguyen/workspace/.metadata/.plugins# cp /home/huynhnguyen/workspace/.metadata/.plugins/* /home/pxtung/workspace/.metadata/.plugins/
cp: /home/huynhnguyen/workspace/.metadata/.plugins/org.eclipse.pde.core is a directory (not copied).
cp: /home/huynhnguyen/workspace/.metadata/.plugins/org.eclipse.ui.workbench is a directory (not copied).
cp: /home/huynhnguyen/workspace/.metadata/.plugins/org.eclipse.ui.ide is a directory (not copied).
cp: /home/huynhnguyen/workspace/.metadata/.plugins/org.eclipse.ui is a directory (not copied).
cp: /home/huynhnguyen/workspace/.metadata/.plugins/org.eclipse.tomcat is a directory (not copied).
cp: /home/huynhnguyen/workspace/.metadata/.plugins/org.eclipse.search is a directory (not copied).
cp: /home/huynhnguyen/workspace/.metadata/.plugins/org.eclipse.pde.ui is a directory (not copied).
cp: /home/huynhnguyen/workspace/.metadata/.plugins/org.eclipse.pde.runtime is a directory (not copied).
cp: /home/huynhnguyen/workspace/.metadata/.plugins/org.eclipse.update.ui is a directory (not copied).
cp: /home/huynhnguyen/workspace/.metadata/.plugins/org.eclipse.jdt.ui is a directory (not copied).
cp: /home/huynhnguyen/workspace/.metadata/.plugins/org.eclipse.jdt.launching is a directory (not copied).
cp: /home/huynhnguyen/workspace/.metadata/.plugins/org.eclipse.jdt.core is a directory (not copied).
cp: /home/huynhnguyen/workspace/.metadata/.plugins/org.eclipse.help.base is a directory (not copied).
cp: /home/huynhnguyen/workspace/.metadata/.plugins/org.eclipse.debug.ui is a directory (not copied).
cp: /home/huynhnguyen/workspace/.metadata/.plugins/org.eclipse.debug.core is a directory (not copied).
cp: /home/huynhnguyen/workspace/.metadata/.plugins/org.eclipse.core.runtime is a directory (not copied).
cp: /home/huynhnguyen/workspace/.metadata/.plugins/org.eclipse.core.resources is a directory (not copied).
root@svr5:/home/huynhnguyen/workspace/.metadata/.plugins# cp -r /home/huynhnguyen/workspace/.metadata/.plugins/* /home/pxtung/workspace/.metadata/.plugins/
do {kiss her; kiss her ++; } while ( refuse );
Showing posts with label eclipse. Show all posts
Showing posts with label eclipse. Show all posts
Friday, December 19, 2008
Eclipse + ./VM terminated Exit code=1
eclipse + Could not reserve enough space for object heap
FreeBSD の ports を使って eclipse を作ろうとした。しかし、VM の初期化に失敗して全然先に進まない。
$ make===> Building for eclipse-3.3.2
Error occurred during initialization of VM
Could not reserve enough space for object heap
Could not create the Java virtual machine.
Error occurred during initialization of VM
Could not reserve enough space for object heap
Could not create the Java virtual machine.
Error occurred during initialization of VM
Could not reserve enough space for object heap
Could not create the Java virtual machine.
*** Error code 1
Stop in /usr/ports/java/eclipse.
$ /usr/ports/java/eclipse.
少し問題を追跡したところ、ビルドの為の ant を起動する時に、Java のヒープサイズが大きすぎるのが原因らしい。そこで、-Xmx の値を 1000M から 500M に少なくしたら、問題なくインストールが完了した。
copy from http://uyota.asablo.jp/blog/2008/09/29/3788262
$ vi /ports/tmp/ports/java/eclipse/work/build
#!/bin/sh
#ANT_OPTS=-Xmx1000M; export ANT_OPTS
ANT_OPTS=-Xmx500M; export ANT_OPTS
os=""
ws=""
arch=""
なお、ports をコンパイルしているディレクトリが /ports/tmp なのは、WRKDIRPREFIX=/ports/tmp
を /etc/make.conf で設定しているからである。
Subscribe to:
Posts (Atom)