Code Archive Skip to content Google About Google Privacy Terms
Logbackの設定ファイル のように明確なDTDやスキーマ定義のないXMLをEclipseのソースフォルダに置くと、以下のような警告が出る。 文書に対する文法制約 (DTD または XML スキーマ) が検出されませんでした。定義のあるものは検証したいのでオプションで検証自体を無効にすることはしたくないし、特に実害はないので今まで放置していたが、プロジェクトエクスプローラの警告マークが夢に出る等の問題が出てきたため対処することにした。 ちょっと試してみた結果、以下のように対象のXMLファイルの先頭にルート要素のみのDOCTYPE宣言を追加してしまえばとりあえず抑止できるらしい(要素の宣言とかもちゃんと書かなきゃいけないと誤解してた)。 <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE configuration> <!-- 以下、ふつうの
Eclipse Juno download site からインストールしたもの: Subversive Revision Graph (Optional) Subversive SVN Integration for the Mylyn Project (Optional) Subversive SVN JDT Ignore Extensions (Optional) Subversive SVN Team Provider Subversive SVN Team Provider Localization (Optional) Subversive SVN Team Provider Sources m2e - Maven Integration for Eclipse Subversive のインストール後に表示されたウィザードで選択してインストールしたもの: Subversive S
EclipseでTomcatを使った開発をしている時に、プロジェクト参照で困ったことはありませんか? EclipseTipsというすばらしいサイトに、Eclipseでプロジェクト参照した場合の問題点と解決方法が示されています。 かいつまんで問題点を説明するとTomcatはEclipseのプロジェクト参照を考慮することは無いのでTomcatからプロジェクト参照したプロジェクトの成果物が見えるように調整する必要があるという物です。 ここでは備忘録としてmavenを使ってこの問題を解決したプロジェクトファイルを生成する方法を紹介します。 アプリの構成 次の様な単純なマルチモジュールプロジェクトを想定しています。 killer-app/ |- pom.xml(killer-app-common, killer-app-webがモジュール) |- killer-app-common | |- pom
長いタイトルの割には伝わりづらいw ええと、Webアプリsample-webを作っているんだけど、ユーティリティ関連は別プロジェクトとしてsample-commonに切り出している。 で、sample-webはsample-commonを参照しているという状況です。かなりありがちだと思います。DBアクセスも外だししてバッチとWebで共有したりするでしょう。 sample-common側のソースは下記で package common; public class Greet { public static String greet() { return "hello"; } } sample-web側はこんな感じ。 package hello; import java.io.IOException; import java.io.PrintWriter; import javax.servle
EclipseでMaven2(m2eclipse)とTomcatプラグインを上手に使う方法はないかなーと思って、s2struts-blankで試行錯誤。 結局、mnv packageを実行したときにtaget/s2struts-blank/WEB-INFみたいな感じでtargetの下にwarに固める前の構成がそのままできるので、それぞれのソースの出力先を無理やりそこに合わせることにしてみた。 でディレクトリ構成は下のような感じにして s2struts-blank ├─src │ └─main │ ├─java ← output s2struts-blank/target/s2struts-blank/WEB-INF/classes │ ├─resources ← output s2struts-blank/target/s2struts-blank/WEB-INF/classes │ └─
・環境 WindowsXP SP3 JDK1.6インストール済み Eclipse3.7 Indigo インストール済み Tomcatプラグイン導入済み 参照: Google App Engine(Java)の開発環境を準備して、「Hello world」サーブレットを作る手順のメモ EclipseでTomcatプロジェクトを起動する手順のメモ 1.EclipseからTomcatプロジェクトを作成 [ファイル]メニュー > [新規] > [プロジェクト...] Java > Tomcatプロジェクトを選択し、次へ プロジェクト名「struts-blank1」を入れて次へ コンテキスト定義の更新を可能にするのチェックを入れておいて完了 作成されたプロジェクト 2.struts-blank-1.3.10.warを解凍 struts-blank-1.3.10.warをダウンロードして、解凍する。(
Eclipse 3.7 (Indigo) のGUIビルダ、WindowBuilder を使ってみました。 初めて使ったため詳しいことは書けませんが、導入からさわりまでをご紹介します。 ■ 導入 Eclipse 3.7 (Indigo) を開きます。 メニューから[ヘルプ]-[新規ソフトウェアのインストール]を開きます。 インストール 画面が表示されます。 作業対象のリストから Indigo – http://download.eclipse.org/releases/indigo を選択します。 フィルター入力欄に Swing と入力します。(入力後 Enter を押します。) 一覧に表示された [一般用ツール]-[Swing Designer] にチェックをつけ、インストールします。 インストール後は、Eclipse を再起動します。 ■ さわり(?) とにもかくにもまずは使ってみます
Eclipse勉強中) eclipse PDT が起動しない ワークスペースが使用中であるか作成できません。 昨日は初回起動と基本設定だけで終了して、今日起動したら 「ワークスペースが使用中であるか作成できません。別のワークスペースを選択して下さい」だとさ。 どーすりゃいいのさ。 追記注記:この時はアプリケーション "Eclipse.app" をダブルクリックで起動していました。結局問題はこいつから起動できないというものでした。コマンドからclean起動はできるという話で・・・。解決法は下の方。 このエラーはNFSを使っているエラーらしいんだけど、おいらはローカルに保存してるので関係ない。意味わかんね。ファイルロックの問題らしく、恐らくそれは複数人でファイルをいじったときの競合を防止する(こういうのなんて言うんだっけ、排他なんとかだっけ、ITパスポートに出るタイプの言葉だな。)意味だと思う
How To Combine Packages These packages are provided as a convenience to users; they represent common configurations of Eclipse projects that are often used together. However, since Eclipse is, at its core, an expandable platform, you can easily add other features and plugins to any of these packages. Just choose and install the package that most closely meets your needs, then follow these instruct
ベンダーが提供するJDBCドライバを使ってデータベースにアクセスするサンプルプログラム ここで紹介するプログラムはデータベースベンダーが正規にリリースするJDBCドライバを使って、Android端末からデータベースサーバーにアクセスするものです。どのような問題が起きるかは、後で説明することにします。問題点を先に知りたい方は4ページに進んでください。 リスト2-1は、JDBCドライバを使ってAndroidからデータベースサーバーにアクセスする簡単なプログラム(MyDBApp.java)の全文です。実行画面である図2では、図1と同じサンプルデータベースから取得した本の題名が、1つだけ画面上部に表示されています。 JavaとJDBCを使ってデータベースアプリケーションを開発したことがある人にとって、データベースアクセスの部分は、おなじみのプログラムコードのはずです。 AndroidのLayout
Eclipse Juno (4.2)にADT PluginをEclipseに導入する手順をとなります。ADTは、Android Development Toolsの略で統合開発環境Eclipse用プラグインです。 ADT Pluginの代表的な機能は、Android SDKのEclipseへの統合、コードエディタ(XMLやマニフェストなど)、グラフィカルエディタなどがあります。基本的にADT PluginのリビジョンはAndroid SDKのリビジョンと同期しているようです。 ADT Pluginは、Eclipseから直接インストールする方法と、ローカルPCにADTをダウンロードしてからインストールするローカルインストールがあります。このページでは前者の解説となります。 使用可能なソフトウェアの追加 Eclipseを起動し、[ヘルプ(H)]→[新規ソフトウェアのインストール…]を選択すると
eclipse は Java を使用するための統合環境です。 ここではすでに Java がインストールされているものとします。 なお、RAM は最低でも 256 メガバイトは必要なようで、ハードディスクは 200 メガバイト程度必要です。 しかし、これは eclipse 3.2 の話です。3.3 でもこれでも動きますが RAM は多いのにこしたことは ないようです。3.4 は更に大きくなり (250 メガ)、RAM が 256 メガでは重すぎる印象となります。 ここで扱っている Eclipse の日本語化は Eclipse.org によるものです。 サードパティーによる日本語化もあります。そちらの方が便利かもしれません。 FrontPage - EclipseWiki に詳しい解説があります。 Windows 用の英語版 eclipse は圧縮してあるファイルを解凍するだけで使用できます。
俺はエディターはvim派です。指が覚えてしまっているので。 普段はターミナルでvimを使っていて、Javaのコードを書くときだけEclipseな生活なんですが、Eclipseのエディターは、 なので、常々不満に思っておりました。 いままで、Eclipseのキーバインドをvim風にする、vipluginやEclimなどを試してみたのですが、vipluginはeclipseの補完がうまく働かない、Eclimはeclimdを起動させておく必要がありちょっと大げさ、など「これだっ!」というものがありませんでした。 そこで、「Vrapper」さんの登場ですよ! Eclipseのエディターがvim風のキーバインドで使えます。しかも、Eclipseの補完機能なども同時に使えます! Vrapperのインストール Eclipseの更新サイトに"http://vrapper.sourceforge.net/u
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く