상세 컨텐츠

본문 제목

이클립스를 USB 드라이브로 휴대하면서 사용할 수 있을까?

Programming

by otamot 2007. 3. 28. 12:43

본문

요즘 코딩할 때 매우 유용하게 사용하는 IDE가 바로 이클립스다.
하 지만 범용적이지 않기 때문에 내가 노트북을 반드시 가지고 다니지 않는한 이클립스에 익숙해져 있는 나는 이클립스가 어디를 가나 있었으면 하는 바램이다. 어차피 이클립스는 install하지 않으니 usb에 가지고 다니면 안되나? 했었는데 어딘가에서 그 정보를 얻을 수 있었다.

  작업 내용은 다음과 같다.

The steps for a portablEclipse aren't that hard:

   1. get Eclipse and extract it to your portable drive
   2. install a JDK on your or any other PC (I really mean the Java Development Kit, not the JRE - anyway, both should work).
      The default installation path should be something like "C:\Programs\Java", containing a folder named "jdk1.5.0_xx"
   3. create a subfolder "JDKs" in your eclipse folder (depending on your drive letter and extraction path this should look like P:\someFolders\eclipse\JDKs
   4. copy the jdk1.5.0_xx folder into the JDKs folder. (like P:\someFolders\eclipse\JDKs\jdk1.5.0_xx)
   5. edit the file "P:\someFolders\eclipse\eclipse.ini" to

      -vm
      ..\JDKs\jdk1.5.0_xx\bin\javaw
      -vmargs
      -Xms40m
      -Xmx256m

      (replace "jdk1.5.0_xx" with the actual folder name)
      This is more elegant than using a batch file due to being independent from drive letters and path variables.
   6. go to a pc with OR WITHOUT java installed. Connect your portable drive and run "P:\someFolders\eclipse\eclipse.exe"
   7. when asked for a workspace location, you can enter ".\workspace", which will create a workspace in your eclipse folder (like "P:\someFolders\eclipse\workspace\")

  참고로 eclipse.ini 파일은 이클립스 3.2 대에서 적용이 가능한가보다. 누군가 그렇게 문제제기 하고 있다. 또한 중요한 내용은 위에서는 jdk를 복사해야 한다고 했는데 누군가는 jdk가 아니라 jre를 하면 안되냐고 했던 내용도 있었다. 그렇게 되면 용량이 상당히 많이 줄어들게 되니 더 좋을 듯하다.
 나도 한번 실천해 보고 싶지만 현재 업무하는 곳에서는 보안을 위해 USB나 CD-ROM등의 보조 저장 장치의 WRITE 기능을 막아 놓았다. 수시로 변경된 환경 내용을 저장하는 이클립스를  USB에 저장하는 것은 이 곳 환경에서는 불가능하다. ^^ 기회가 되면 한번 해 봐야 겠다.
아참! 정말 중요한 내용은 위와 같이 한다고 하면 eclipse가 넉넉잡아 300M jdk 200M 기타 해서 충분히 사용하기 위해서는 1G정도의 USB 스틱이 있어야 하지 않을까? 내게는 없다. 절망이다.

'Programming' 카테고리의 다른 글

jMaki 관심 끄네!  (0) 2007.04.04
Memory가 부족하다는 Eclipse의 절규!  (0) 2007.03.30
Java SE 5의 주요 추가 내용 정리  (0) 2007.03.28

관련글 더보기