Windows 上の Java on UNIX 風環境の構築

Total Page:16

File Type:pdf, Size:1020Kb

Windows 上の Java on UNIX 風環境の構築 Ver.06.10 Windows 上の Java on UNIX 風環境の構築 Java プログラミングの授業は教育学部の UNIX システム EDU システム上で、Java 2 SDK Standard Edition Ver.1.4.1 を用い(授業に間に合えば、最新版 JDK5.0 Update9 に更新す る予定)、エディタとして GNU Emacs ver.21.3.1 を用いて行なう。自宅で自習するために、 これと類似の環境を Windows 上に構築する方法について述べる。 1.Java 開発環境 JDK Java SE Development Kit (JDK) は Java 言語処理系の一つであり、Sun Microsystems 社が無料配布している。2006 年 10 月現在の最新版は JDK5.0 Update9 であり、 http://java.sun.com/j2se/1.5.0/ja/download.html からダウンロードできる(旧版の Java2SE(Java Platform, Standard Edition; 旧名 JDK1.2 →Java2SDK)は最早サポートされていない。 JDK 5.0 の入手とインストール方法: 以下に述べる方法でやったために利用している PC に不具合が生じても責任は持てないこ とを承知しておかれたい(インストール方法を各自が Sun Microsystems 社のサイトで調べ て、自分の責任でインストールすることが基本である)。 以下のステップに従う: (1) Sun Microsystems 社のウェブサイトからダウンロードする: J2SE and NetBeans IDE Bundle NB 5.0 / J2SE 5.0 Update 9(2006.10 時点で最新版) をダウンロードする。このバンドルには J2SE Development Kit 5.0 Update 9 J2SE Runtime Environment 5.0 Update 9 NetBeans IDE 5.0 が含まれている。J2SE Runtime Environment (JRE) は Java アプリケーションを実行 するための環境を提供し、NetBeans IDE は Java プラットフォームでアプリケーショ ンを開発するための強力な統合開発環境である。 詳細はここ:http://java.sun.com/j2se/1.5.0/ja/README.html 1 1.1) http://java.sun.com/j2se/1.5.0/ja/download.html にアクセスする。 ダウンロード 1.2)「JDK 5.0 Update 9 with NetBeans 5.0」の をクリックする。 J2SE Development Kit 5.0 Update 9 および NetBeans IDE 5.0 のダウンロード の をクリックする。 1.3) 「セキュリティに関する警告」ウィンドウが現れるので、「OK」をクリック。 1.4) Required: You must accept the license agreement to download the product. Accept License Agreement | Review License Agreement Decline License Agreement 契約内容をよく読んで、「Accept」にチェックを入れる。 1.5) Windows Platform - J2SE and NetBeans IDE Bundle NB 5.0 / J2SE 5.0 Update 9 J2SE and NetBeans IDE Bundle (NB 5.0 / 139.40 jdk-1_5_0_09-nb-5_0-win-ml.exe J2SE 5.0 Update 9) MB を選んでクリックする。 1.6) ファイルの保存先を適当なところ(例えば、デスクトップ)に指定して、ファイルを ダウンロードして保存する。139MB あるので、利用回線の帯域幅や PC 機種や Windows 等 OS やそのバージョンにもよるが、かなり時間がかかり、また、かなり大きなハードディ スク容量が必要なので注意のこと。また、Windows XP 他では、管理者権限がないユーザ にはインストールができないので注意のこと。 (2) インストール 2.1) J2SE の他のバージョンがインストールされている場合は、それをアンインストー ルする。アンインストールには Microsoft Windows の「アプリケーションの追加と 削除」ユーティリティを使用する([スタート]→[設定]→[コントロールパネル] を 選択すればアクセスできる)。 2.2) ダウンロードしたファイル「jdk-1_5_0_09-nb-5_0_win-ml.exe」をクリックしてイ ンストーラーを起動し、画面の指示に従って操作する(ライセンスへの同意を含む)。 途中で J2SE のインストール先を聞かれるが、デフォールトで与えられる「C:\Program Files\Java\jdk1.5.0_09」としておくとよい。そうしなかった場合、以下の 3)の設 定ではそれに対応してフォルダ名を変えること。 2.3) 「J2SE Development Kit 5.0 Update 9」「J2SE Runtime Environment 5.0 Update 9」 と「NetBeans IDE 5.0」も自動的にインストールされる。注意書きをよく読んで、 2 終了をクリックするとインストールは終わる。 2.4) ダウンロードしたファイル「jdk-1_5_0_09-nb-5_0_win-ml.exe」を削除する(任意)。 (3) 使い勝手を良くするための設定 3.1) DOS 窓(DOS コマンド入力用ウィンドウ)を開くためのショートカットの作成: ・ (Windows XP の場合)「スタート」→「すべてのプログラム」→「アクセサリ」 ・ 「コマンドプロンプト」を右クリックし「ショートカットの作成」をクリック ・ 作成されたショートカットをデスクトップにドロー&ドロップ 3.2) 環境変数 PATH の設定: ・ (Windows XP の場合)「スタート」→「コントロールパネル」→「パフォーマンス とメンテナンス」 ・ 「システム」のアイコンをクリックする。 ・ 「システムのプロパティ」が立ち上がるので、上部バーにある「詳細設定」を選ぶ。 ここをクリックする ・ 画面下部にある「環境変数(N)」をクリックすると環境変数画面が立ち上がる。 ・ 環境変数画面において、「システム環境変数(S)」の中の「Path(大文字と小文字は 3 区別しない)」をクリックし反転させ、「編集」をクリックする。 これらをクリックする ・ 「システム環境変数(S)」の中の環境変数 Path を選択して、末尾に 「;C:\Program Files\Java\jdk1.5.0_09\bin」 と入力して「OK」をクリックする(先頭の「;」を忘れず入力すること)。これ により、どのディレクトリからも Java 関係のコマンド(プログラム)が実行でき るようになる。 この部分を入力する。 C¥program・・・の前の「;」を忘れないように ・ 「システム変数の編集」画面で「OK」をクリックし、つづいて、「環境変数」画 でも「OK」をクリックして終了。 4 3.3) Java コンパイラ・インタプリタを実行してみて、正しくインストールされたかチェ ックする。3.2)の設定を行なっておけば、DOS のカレントディレクトリがどこにあっ ても Java の必要コマンドをフルパスの指定なしで実行できる。例えば Windows XP のユーザが ABC の場合、 C:\Documents and Settings\ABC>java (java 以外にも、javac, javadoc など)と入力するだけでよい。 以下の表示(java コマンドの使い方)が出ればOK: 4) うまくいかないときは、次の文書を読んで調べる: http://java.sun.com/j2se/1.5.0/ja/install.html 5 2.CygWin Cygwin(シグウィン)は、RedHat 社によって開発された、Windows 上で動作する GNU 開 発環境(UNIX 環境)である(その開発の歴史等については http://cygwin.com/faq/faq_1.html を参照されたい)。GNU(「ヌー」と読む)とは「GNU's Not UNIX」の頭文字で、UNIX 上の良 いソフトウェアをフリーに提供しつづけるために始まったプロジェクトである。Emacs エデ ィタをはじめとして数多くの良質のソフトウェア(C コンパイラの gcc と g++、デバッガの gdb、コンパイラ・コンパイラの flex, bison、UNIX シェルの bash など)を提供しつづけ てきた。GNU については、次のウェブサイトを参照のこと: http://www.gnu.org/home.ja.html 1) 入手方法とインストール 1-1) http://sources.redhat.com/cygwin/ または http://cygwin.com/ からダウンロードするために、接続する。 1-2) 「Install Cygwin Now」をクリックして、「setup.exe」ファイルをダウンロードして 適当な場所(例えば、デスクトップ)に保存する。 1-3) ダウンロードした「setup.exe」をクリックして実行する。 ・ 「Install from Internet」を選択して「次へ」 ・ インストール先(デフォールトでは「C:\cygwin」になっている。そのままでよい)、 テキストファイルのタイプ(デフォールトでは「UNIX」になっているが、「DOS」に変 更する)、利用ユーザの指定(デフォールトでは「Install for All」になっている。 そのままでよい)を選んで「次へ」 ・ 「Local Package Directory」としてデスクトップを指定(「Browse」をクリックして 「デスクトップ」を選んで「OK」すると Windows XP の場合「C:\Documents and Settings\ユーザ名\デスクトップ」となる)して「次へ」 ・ 「Direct Connection」を選んで「次へ」 ・ 表示されるダウンロードサイトから適当なものを選んで(末尾が .jp となっている 日本のサイトを選ぶとよい)、「次へ」 ・ インストールするパッケージの一覧が表示されるので、そのまま「次へ」 ・ ダウンロードが始まる。ダウンロードが終わると、デスクトップにアイコンを作成す るかとスタートメニューに追加するかを聞いてくるので、両方ともチェックを入れて 「次へ」 ・ 「Installation Complete」で終了。 ・ デスクトップから用済みのファイル「setup.exe」とインストールしたパッケージが 入っているフォルダを削除する(しなくてもよい)。 6 2) 使い方 「Cygwin」アイコン をクリックして、UNIX コマンドを実行して動作を Cygwin.lnk 確認する。例えば、 $ pwd $ はCygwinのプロンプト と入力する(入力するのはアンダーライン部分のみ)と、 $ /home/ユーザ名 と表示される。 この例では、ユーザ名は Administrator 現在、このユーザ(ユーザ名 Administrator) のホームディレクトリにいる これ以後は、UNIX ユーザのごとく、UNIX のコマンドが自由に使える。 Emacsはインストールされていないので、Emacs の代替として次に述べる Meadow を使 うとよい。 7 3.Meadow (GNU Emacs) Windows 上で使える Emacs には Meadow、Emacs 21、Mule for Win32、XEmacs などいろい ろある(違いについては、 http://www4.kcn.ne.jp/~boochang/emacs/emacsen-w32.html に解説があるが、かなり古い)が、ここでは Meadow(メドウ)のインストールについて述 べる。 Cygwin をインストールして Windows 上の UNIX-like な環境ができあがったら、今度は UNIX 上の標準エディタ(というよりも、開発環境と言った方がよいだろう)である GNU Emacs の Windows 版である Meadow をインストールする。Meadow は、GNU Emacs 20.x をベースに 宮下尚氏を中心とするチームによって開発された Windows 上で動作する GNU Emacs である (最新版は、Meadow 2.10 (ASAGAO) based on Emacs-21.4)。Meadow (Emacs)は単なるテ キストエディタではなく、メールやニュースの読み書き、Web ページのブラウズ、C, C++, Java などのプログラミング環境の提供、HTML, TeX などの文書作成支援、UNIX シェルコマ ンドの実行、などをサポートしている。 UNIX, Meadow および Emacs については、インストールの方法から使い方まで、以下のサ イトに解説があるので参照されたい: http://www.meadowy.org/meadow/ 以下に記述するのは、上記サイトに書いてあるのとは異なるインストール方法である。 (1) 入手方法とインストール 1-1) http://www.meadowy.org/meadow/netinstall から Meadow のアーカイブ(Meadow 用のソースファイル一式をディレクトリ構造も含め て圧縮したもの)「Meadow-1.15-i386.tar.gz」(約 14MB)を適当な場所(この例では、 D ドライブの D:\tmp フォルダを使う)にダウンロードする。 Meadow 3.00 用と Meadow 2.10 用があるが、以下では Meadow 2.10 用を基に記述する。 • setup.exeバイナリ ・・・setup.exe, setup-ja.exe (current version is 2.10.8) の「setup-ja.exe」をクリックして、適当なフォルダ(例えば、デスクトップ)にファ イルを保存する。 1-2) ダウンロードしたファイルをクリックし、画面に表示される指示に従って各種の設 定を行なう。 ・「インストール方法」として「インターネットからインストール」を選択。 ・インストールの作業用のディレクトリを聞かれるので、例えば、デスクトップを指 8 定する。 ・「インストール先ディレクトリ」を聞かれるので、Cygwin と一緒に用いるのであれ ば Cygwin をインストールしたディレクトリ「C:\cygwin」を選択。 ・「接続方法」は「ダイレクトに接続する」 ・「ダウンロードサイト」を1つクリックして選んで「次へ」。 ・「インストールするパッケージ」はそのまま「次へ」 ・「今すぐ install.exe を実行しますか?」にチェックを入れて、「終了」 1-3) .emacs ファイル(Emacs のカスタマイズのために必要なファイル)を読込むディレ クトリを聞いてくるので、デフォールトで示される「C:\cygwin\home\ユーザ名」をそ のまま使う(リターンキーを押下する)とよい。 アイコン「Meadow」が作られるので、デスクトップに移す(移さなくてもよい)。 1-4) 不要となったダウンロード済みファイル(デスクトップ上)を削除(しなくてもよ い)。 2) Meadow の起動方法 「Meadow」のアイコン Meadow2.lnk をクリックするか、あるいは Cygwin の$プロン プトで $ Meadow ($ meadowでもよい) と入力する。あるいは、ファイル名を指定して $ Meadow abc.java のように入力する。 9 Meadow が立ち上がる。 以後、Emacs と同様に使えばよい。例えば、Java のソースコードを Meadow で書いてセーブ したら、javac コマンドによってコンパイルし、java コマンドで実行することができる(上 記2項に書いたように JDK5.0 をインストールして、環境変数の設定をしてある場合)。 10 4.Windows 上の Java 開発環境 Eclipse ここでは、オープンソース(ソースコードが公開されていて自由に使える)Winodws 上の Java 開発環境の1つである Eclipse(エクリプス)についてごく簡単に説明する。 Cygwin(+Meadow)は Windows 上で UNIX-like な環境を提供するためのものであったが、 Eclipse を使うためには UNIX ユーザである(UNIX について知っている)必要はない。 Eclipse は Eclipse Foundation という団体によって開発と配布が行われており、予め決 められた規約さえ守れば誰でも自由に利用することができる。Eclipse については、 http://www.eclipse.org/ を参照のこと。 Eclipse を使うためには、まず、Eclipse を使うつもりのPCに JDK5.0 をインストール しておく必要がある(上記1の方法でインストールを済ませておくこと)。 Eclipse の本格的な最新版をインストールするためには、上記ウェブサイトからダウンロ ードしてインストールする必要があるが、ここではインストールが易しい All-In-One Eclipse (AIOEC)をインストールする方法についてだけ述べる。AIOEC は、いろいろなプラ グインが付いて日本語化された Eclipse でインストールが易しいし日本語化されていると いう長所がある代わりに、Eclipse の最新版よりも古いという欠点はあるものの、初心者に は十分であろう。 AINEC については次のサイトを参照のこと: http://aioec.sourceforge.jp/ AIOEC のダウンロードは次のサイトから: http://sourceforge.jp/projects/aioec/files/ 11 .
Recommended publications
  • A Java XML Guide for Prolog Programmers on Windows 9X
    AJava/XML guide for prolog programmers on Windows 9X TsutomuFujinami http://www.jaist.ac.jp/~fuji 18th July, 2000 Abstract Once up on a time, there was a language called prolog, a programming language in logic. We Japanese sp ent a lot to build a computer who can sp eak, think, and even dance, using the computer language. She is now gone without notice and a cup of co ee was instead brought in to us, a taste of, Java. Only drinking co ee was not go o d enough for us to entertain ourselves, but happily,we can now take a bite of Excel..., no, XML ex, em, el. Allrihgt, we are all diving into this feast as a party of retired prolog programmers, left b ehind the scene for some time. Are you ready? Okay, let us go. The sp otlightiswaiting for you! Contents 1 Preface 1 2 AI on Web? 3 I Building your web server 4 3 Preparing your working environment 5 3.1 Cygnus .... ... .... ... .... ... .... ... .... 5 3.1.1 Making a directory for downloading . .... .. 5 3.1.2 Downloading and installation ... .... ... .... .. 6 3.1.3 Settings ... .... ... .... ... .... ... ... 7 3.2 Meadow .. .... ... .... ... .... ... .... ... .. 7 3.2.1 Making your HOME directory . .... ... .... 7 3.2.2 Downloading... .... ... .... ... .... ... 9 3.2.3 Installation . .... ... .... ... .... ... 9 3.3 Settings . .... ... .... ... .... ... .... ... ... 10 3.3.1 Editing AUTOEXEC.BAT.... .... ... .... ... 10 3.3.2 Editing .bashrc . .... ... .... ... .... ... .. 11 3.3.3 Editing .emacs ... .... ... .... ... .... ... 11 4 InstallingJava, prolog, and the interface 16 4.1 Java Development Kit . ... .... ... .... ... ... ... 16 i 4.1.1 Obtaining the package. ... .... ... .... ... .. 17 4.1.2 Installation .
    [Show full text]
  • Emacs-W3m User's Manual
    This file documents emacs-w3m, an Emacs interface tow3m. This edition is for emacs-w3m version 1.4.567. Emacs-w3m User's Manual An Emacs interface to w3m for emacs-w3m version 1.4.567 The emacs-w3m development team Copyright c 2000-2014 TSUCHIYA Masatoshi Permission is granted to copy, distribute and/or modify this document under the terms of the GNU General Public License, Version 2 or any later version published by the Free Software Foundation. This document is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABIL- ITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this document; see the file COPYING. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. i Table of Contents Emacs-w3m User's Manual :::::::::::::::::::::::: 1 1 Preliminary remarks:::::::::::::::::::::::::::: 2 2 It's so easy to begin to use emacs-w3m ::::::: 3 2.1 What version of Emacs can be used? ::::::::::::::::::::::::::: 3 2.2 Using w3m: the reason why emacs-w3m is fast:::::::::::::::::: 3 2.3 Things required to run emacs-w3m ::::::::::::::::::::::::::::: 3 2.4 Installing emacs-w3m :::::::::::::::::::::::::::::::::::::::::: 5 2.5 Installing on non-UNIX-like systems :::::::::::::::::::::::::::: 6 2.6 Minimal settings to run emacs-w3m :::::::::::::::::::::::::::: 7 3 Basic usage :::::::::::::::::::::::::::::::::::::: 8
    [Show full text]
  • SSH Secure Shell for UNIX Servers Administrator's Guide
    SSH Secure Shell for UNIX Servers Administrator's Guide December, 2000 2 c 1996 - 2000 SSH Communications Security Corp, Finland. No part of this publication may be reproduced, published, stored in a electronic database, or transmitted, in any form or by any means, electronic, mechanical, recording, or otherwise, for any purpose, without the prior written permission of SSH Commu- nications Security Corp. SSH and IPSEC Express are trade- marks or registered trademarks of SSH Communications Secu- rity Corp. All brand and product names that are trademarks or registered trademarks are the property of their owners. US and other patents pending. This product includes software de- veloped by the University of California, Berkeley and its con- tributors. THERE IS NO WARRANTY OF ANY KIND FOR THE ACCURACY OR USEFULNESS OF THIS INFORMA- TION EXCEPT AS REQUIRED BY APPLICABLE LAW OR EXPRESSLY AGREED IN WRITING. SSH Communications Security Corp Fredrikinkatu 42; FIN-00100 Helsinki; FINLAND SSH Communications Security Inc. 1076 East Meadow Circle; Palo Alto, CA 94303; USA SSH Communications Security K.K 2-7-1, House Hamamatsu-cho Bldg. 5F; Hamamatsu-cho; Minato-ku, Tokyo 105-0013; JAPAN http://www.ssh.com/ e-mail: [email protected] (sales), http://www.ssh.com/support/ssh/ Tel: +358 303 9870 (Finland), +1 650 251 2700 (USA), +81 3 3459 6830 (Japan) Fax: +358 303 9871 (Finland), +1 650 251 2701 (USA), +81 3 3459 6825 (Japan) c 2000 SSH Communications Security SSH Secure Shell Administration CONTENTS 3 Contents 1 Introduction to SSH Secure Shell 7 1.1 SSH Secure Shell . 7 1.2 This Document .
    [Show full text]
  • Extracting Topic Maps from Web Browsing Histories
    Extracting Topic Maps from Web browsing histories Motohiro Mase1 and Seiji Yamada2 1 CISS, IGSSE, Tokyo Institute of Technology 4259 Nagatsuta, Midori, Yokohama, Japan 2 National Institute of Informatics 2-1-2 Hitotsubashi, Chiyoda, Tokyo, Japan {m mase, seiji}@nii.ac.jp Abstract from Web browsing and the information of pages in the surroundings. Topic Map provides overview of a Web In this paper, we propose a method of clustering graph that includes history path, discovery of topic to extract Topic Map from the Web browsing history. that has not been seen, and relations between the top- The our method is based on the traditional agglomera- ics. In this paper, we propose a new method that uses tive clustering with the constraint of the Web structure traditional clustering method with constraint by web and the weight of link relation. Topic Map shows 2D- structure to construct Topic Map. Finally, we conduct visualized overview graph of the Web browsing history, preliminary experiments to evaluate our system. and the relations between the topics that are gathered by a user and extracted from the pages around the his- tory pages. Using the Web browsing history, we exper- imentally evaluate the extracted Topic Maps. 2 Related Work 2.1 Web history visualization 1 Introduction Many researches have been reported in the area of Web history visualization. Domain Tree Browser[3] Information gathering using a huge amount of Web and Zooming Web Browser[4] provide 2D visualized pages is very useful, and essential for users. The Web history tree by Web browsing with thumbnail images pages increase every year, and exceed at least 11.5 bil- of Web pages.
    [Show full text]
  • (Microsoft Powerpoint
    Eclipse(GUI), Meadow+Cygwin(CUI) による 開発環境の構築 クライアント環境の整備 • キーボード – キー配置を入れ替える • Web ブラウザ – 「Mozilla FireFox 」を使用する • CVS クライアント – Meadow 環境で、「 Eclipse 」を使用する キーボード • Linux に即したキーボード配置を構築する。 – 「Ctrl 」キーと「Caps Lock 」キーの入れ替え – 「Esc 」キーと「半角/全角」キーの入れ替え • 対処法 1.特別なソフトを使う • 『Change Key 』 by 窓の杜 http://www.forest.impress.co.jp/lib/sys/hardcust/keyboard/cha ngekey.htm l 2.レジストリを直接操作する(上級者向け) Web ブラウザ • 「Mozilla FireFox 」 利点: ・正確なレンダリング ・XHTML をはじめとした XML に対応済み ・Windows とLinux で共用できる FireFox ダウンロードページ http://www.mozilla.org.products/firefox 開発環境の整備 1. Meadow – テキストエディタ「Emacs 」の導入 2. Cygwin – UNIX シェル環境の導入 3. Eclipse – Java を中心としたプロジェクト開発環境 Meadow • UNIX 上で動くテキストエ ディタ「Emacs 」を、 Windows に移植したもの。 • 用途別に多様な編集機能、 編集モードを搭載している。 • 「Emacs Lisp 」という言語を 利用して、機能を拡張する ことができる。 Meadow のインストール(1) インストール方法は2通りある。 • バイナリおよびソースコードでの配布 • ネットインストール版によるバイナリ配布 今回は、ネットインストール機能を使って、 インストールします。 Meadow のインストール(2) 1. Meadowy.org のWeb サイト (http://www.meadowy.org/meadow.wiki/ ) より、Netinstall packages のsetup.exe をダ ウンロード(今回はMeadow2.00 を使用) 2. インストール時にホームディレクトリを設定 するので、適切なディレクトリを作成し、入力 する。 Meadow の基本設定 1. 環境変数の設定 次の環境変数を追加する。(home は設定した自分 のホームディレクトリ) • LANG=ja_JP,SJIS • TZ=JST-9 • TMP=C:¥home¥tmp • HOME=C:¥home • PATH=C:¥Meadow¥2.00¥bin;%PATH% 2. 「dot.emacs.ja 」を「.emacs 」に変更し、ホー ムディレクトリにコピーする。 Unicode の設定 Mule-UCS ををを有効を有効にするためににするために、「、「、「、「 .emacs 」」」を」ををを下記下記のようにのように変更変更するするする。する 。。。 ×変更前 ○変更後 ;; ;;; Mule-UCS の設定 ;; ;;; Mule-UCS の設定 ;; ;;ftp://ftp.m17n.org/pub/mule/ ;; ;; Mule-UCS/ ftp://ftp.m17n.org/pub/mule/ ;; ;; (set-language- Mule-UCS/ environment) の前に設定し ;; ;; (set-language-
    [Show full text]
  • Portable Dumper: アーキテクチャに依存しない Emacs の起動時間 短縮手法
    portable dumper: アーキテクチャに依存しない Emacs の起動時間 短縮手法 永野 圭一郎, 林芳樹 本的な改善策を必要とする事情があった。 要旨 portable dumper は、既に XEmacs に同じ目的の機構 本稿では、我々が GNU Emacs を対象に開発した が存在する。我々の貢献は、XEmacs と同等以上に多く portable dumper を解説する。これは、既存手法 (unexec) のユーザに使われている GNU Emacs に対して設計・実 と同程度に Emacs の起動を高速化しながら、unexec の 装を与えたことである。本論文では、XEmacs の実装と 問題点である移植性の低さを改善したものである。起 我々のそれとの比較も議論する。 動の高速化は、既存手法と同様に、起動に必須の Lisp 本論文では portable dumper の実装の解説、実験によ ファイル群を、あらかじめ解釈済みの状態で保存して る評価、および別のソフトウェアに採用された類似手法 おくことによって実現する。我々はその際に、データの について述べる。 保存および復元において、プラットホーム依存の知識を 2 背景 避けることによって高移植性を実現した。この portable dumper が既存手法と同程度に Emacs の起動を高速化す 本節では Emacs のビルド過程にある loadup , dump ること、そして GNU/Linux および Windows を含む多数 という処理に関する解説を行う。その上で、既存手法で の platform で同一のコードが動作すること、以上 2 点を ある unexec の解説をする。 実験により確かめた。 2.1 loadup と dump テキストエディタ Emacs は、Lisp インタプリタ部分 1 はじめに のみが C で記述されている。ファイル操作や多言語関連 我々が設計・実装した portable dumper とは、大抵の をはじめとする、ユーザが直接触れる編集の基本コマン C 処理系でサポートされているようなライブラリ/システ ドの多くが、C よりも扱いやすい独自の言語 Emacs Lisp ムコール呼び出しと、プラットホームに依存しない知識 で記述されている。 のみを用いて、Lisp ファイル群を、解釈済みの状態で保 テキストエディタとしての通常の操作に必須な基本プ ∗ 存し、高速に再読み込みする手法である。1 ログラム群を、Lisp ファイルから読み込み解釈する処理 従来同じ目的には、 unexec という手法が用いられ を、読み込み内容を指定するファイルの名前にならって てきた。これは「動作中のプロセスのメモリ内容から 以下 loadup と呼称する。この基本 Lisp ファイルの数 ∗ 直接、実行ファイルを生成する」という、極めて強く は 80 にも及ぶ 2。 プラットホームに依存するものであった。我々は GNU この基本ファイルを全て、Emacs 起動時に毎回読み ∗ Emacs[1] の Microsoft Windows への移植のひとつであ 込み解釈し直すのは時間的に高価である 3。そのため、 る Meadow[2] の開発にたずさわっており、この部分の loadup が済んだ直後の Emacs の状態を保存し、次回か Windows での実装が完全ではないことに不満を持ち、抜 らの起動を高速化する機構が、Emacs には備わってい る。この「Lisp ファイル解釈後の状態を保存する処理」 ∗1 ∗ 誤解を受けやすいところであるが、我々の意図は、解釈済み Lisp
    [Show full text]
  • Land of Lisp Learn to Program in Lisp, One Gam
    Conrad Barski, M.D. LAND OF LISP LAND OF LISP Learn to Program in Lisp, One Game at a Time! by Conrad Barski, M.D. San Francisco LAND OF LISP. Copyright © 2011 by Conrad Barski, M.D. All rights reserved. No part of this work may be reproduced or transmitted in any form or by any means, electronic or mechanical, including photocopying, recording, or by any information storage or retrieval system, without the prior written permission of the copyright owner and the publisher. Printed in Canada 14 13 12 11 10 1 2 3 4 5 6 7 8 9 ISBN-10: 1-59327-281-2 ISBN-13: 978-1-59327-281-4 Publisher: William Pollock Production Editors: Ansel Staton and Serena Yang Developmental Editor: Keith Fancher Technical Reviewers: Philip Fominykh and Heow Eide-Goodman Copyeditor: Marilyn Smith Compositor: Susan Glinert Stevens Proofreader: Linda Seifert Indexer: Nancy Guenther For information on book distributors or translations, please contact No Starch Press, Inc. directly: No Starch Press, Inc. 38 Ringold Street, San Francisco, CA 94103 phone: 415.863.9900; fax: 415.863.9950; [email protected]; www.nostarch.com Library of Congress Cataloging-in-Publication Data Barski, Conrad. Land of Lisp : learn to program in Lisp, one game at a time! / by Conrad Barski. p. cm. Includes index. ISBN-13: 978-1-59327-281-4 ISBN-10: 1-59327-281-2 1. Computer games--Programming 2. COMMON LISP (Computer program language) 3. LISP (Computer program language) I. Title. QA76.76.C672B3693 2010 794.8'1526--dc22 2010026755 No Starch Press and the No Starch Press logo are registered trademarks of No Starch Press, Inc.
    [Show full text]
  • BEP: a Practical Bilingual Speech Synthesis System for Japanese
    BEP: a practical bilingual speech synthesis system for Japanese T. Watanabea, M. Sakamoto, and M. Kiriake a Department of Information Science, Shonan Institute of Technology, 1-1-25 Tsujido-NishiKaigan, Fujisawa, Kanagawa, 251-8511, JAPAN <[email protected]>, Tel +81-466-30-0217, Fax +81-466-34-1096 All authors are members of ARGV (Accessibility Research Group for the Visually-Impaired) The Bilingual Emacspeak Platform (BEP) is a bilingual text-to-speech system for Japanese visually impaired Emacs users and runs under both Windows and Linux. It is implemented as an extension of Raman’s Emacspeak, a self-voicing GNU Emacs platform with dedicated auditory user interface. Based on the experiences of existing Japanese screen-readers, BEP is equipped with functions necessary for Japanese speech system. BEP for Windows uses various types of Japanese and English voices to represent bilingual information naturally and unambiguously. In this paper, the authors firstly review the features of Emacspeak and BEP and then show the requirements of a bilingual speech synthesis system for efficient and practical use. Keywords: bilingual speech system, human-computer interaction, auditory user interface, text-to-speech, visually impaired, assistive technology, Japanese 1. Introduction screen-reader to transfer rich contents of 2-dimentionally arranged information, e.g. Personal computers enabled people to use icons and menus, on the graphic display to a computer for their personal use. simple 1-dimentional speech output. Thus, Personal computers also changed the lives we must develop a new effective of people with disabilities because this new mechanism and user interface to output a technology was used as an assistive lot of information in modern computers technology.
    [Show full text]
  • GNU Emacsen における複数の MUA で共有可能な Internet Message のための汎用部品の開発
    GNU Emacsen における複数の MUA で共有可能な Internet Message のための汎用部品の開発 Development of Internet Message components for multiple MUAs on GNU Emacsen 守岡 知彦 1) MORIOKA Tomohiko 1) 京都大学人文科学研究所附属漢字情報研究センター (〒 606-8265 京都市左京区北白川東小倉町 47 番地 E-mail: [email protected] u.ac.jp) ABSTRACT. MIME introduces a structured Internet message format. It can represent various data formats and various coded character sets. MIME thus represents an important part of Internet message processing. Conventional message user agents (MUAs) which process Internet messages have different characteristics. The quality of the user interface depends on the user’s preference or habits. In this regard, it may be preferable to allow the user to select a good combination of the MUA and a separate MIME module. For the purpose, we are developing a set of Emacs Lisp library mainly for MIME, named FLIM and SEMI. This research and development is a continuation of the development of FLIM/SEMI. In the project, we made a set of renewal versions of FLIM/SEMI which have some good features of their variants, and implemented the new OpenPGP implementation and other features. In addition, we arranged and cleared the FLIM/SEMI API. To merge into GNU Emacs 21, we rewrote FLIM/SEMI and developed MIME-capable RMAIL. 1 背景 応する場合、個々の MUA で対処するよりも複数の MUA で共有可能な Internet Message のための汎用的 GNU Emacs/XEmacs は UNIX 系 OS において非 な library を開発・保守する方が効率的であると考え 常に普及した editor を中心とした統合環境であり、現 られる。 在では UNIX 系 OS にとどまらず、Windows, Macin- このような考えに立って、我々は FLIM/SEMI と呼 tosh, OS/2, BeOS など多くの OS にも移植されてい ぶ Internet Message
    [Show full text]
  • Symantec Netbackup™ 7.5 Administrator's Guide, Volume I
    Symantec NetBackup™ Administrator's Guide, Volume I UNIX and Linux Release 7.5 21220071 Symantec NetBackup™ Administrator's Guide, Volume I The software described in this book is furnished under a license agreement and may be used only in accordance with the terms of the agreement. Documentation version: 7.5 PN: 21220071 Legal Notice Copyright © 2012 Symantec Corporation. All rights reserved. Symantec and the Symantec Logo are trademarks or registered trademarks of Symantec Corporation or its affiliates in the U.S. and other countries. Other names may be trademarks of their respective owners. This Symantec product may contain third party software for which Symantec is required to provide attribution to the third party (“Third Party Programs”). Some of the Third Party Programs are available under open source or free software licenses. The License Agreement accompanying the Software does not alter any rights or obligations you may have under those open source or free software licenses. Please see the Third Party Legal Notice Appendix to this Documentation or TPIP ReadMe File accompanying this Symantec product for more information on the Third Party Programs. The product described in this document is distributed under licenses restricting its use, copying, distribution, and decompilation/reverse engineering. No part of this document may be reproduced in any form by any means without prior written authorization of Symantec Corporation and its licensors, if any. THE DOCUMENTATION IS PROVIDED "AS IS" AND ALL EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND WARRANTIES, INCLUDING ANY IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT, ARE DISCLAIMED, EXCEPT TO THE EXTENT THAT SUCH DISCLAIMERS ARE HELD TO BE LEGALLY INVALID.
    [Show full text]