読者です 読者をやめる 読者になる 読者になる

idempiereの環境構築メモ

idempiere

数年ぶりにiDempiereをインストールしてみる。
Windows10。
インストールというか開発環境の構築。

PCに残ってるファイルを見ると、前回iDempiereの環境を作ったのは、2013/09/01。

ビルド

iDempiereのソースコードを取得して、EclipseからiDempiereを実行するためのメモ。

tortoiseHgのアップグレード

tortoisehg-3.6.2-x64.msi
をダウンロードして、インストール。

フォルダ作成

C:\idempiere_origin
エクスプローラーで右クリック > TortoiseHG > Clone...

iDempiereのサイトに行って、MercurialリポジトリのURLを見つける。
https://bitbucket.org/idempiere/idempiere

tortoiseHgでClone。
そのあと、自分のPC内で、
C:\workspace\idempiere
へもう1度Cloneした。

Eclipse

Eclipse.exeをクリックしたら起動しなかった。
新しいEclipseをダウンロードして試したけど、ダメだった。
どうやらJava8を入れたのが原因らしい。
※後の作業でiDempiereの動作環境はJava7ということが分かった。Java8は不要。

Eclipseが起動しない「Java was started but returned exit code=13」 - clock-up-blog

Eclipse: Java was started but returned error code=13 - Stack Overflow

全オペレーティング・システム用のJavaのダウンロード

Javaのウェブサイトから、

Windows オンライン
ファイルサイズ: 718 KB

をダウンロードしてインストールしたら、
Java8 32bit版がインストールされたっぽい。失敗。

Windows オフライン (64ビット)
ファイルサイズ: 54.45 MB 

をダウンロードしてインストールしたら、
C:\Program Files\Java

C:\Program Files\Java\jre1.8.0_73
ができた。
C:\ProgramData\Oracle\Java\javapath\
のショートカットも
C:\Program Files\Java\jre1.8.0_73\bin\java.exe
に変わった。
Eclipseが起動するようになった。

Eclipse Mars.1

idempiereプロジェクトのインポート

※数年ぶりで忘れていたけど、idempiereは、buckminsterというツールで環境構築するのだった。
この節の作業は不要。

File > Import...
General > Existing Projects into Workspace
で、
C:\workspace\idempiere
を選んだら70個くらいあるフォルダがプロジェクトとしてインポートされた。

buckminster

Eclipseのメニューバーから、
Help > Install New Software...
Work with:の右側にある、 Add...ボタンを押して、
Buckminster
http://download.eclipse.org/tools/buckminster/updates-4.4
を入力。
Buckminsterのツリー(ノード)を開いて、

Core  
Maven support  
PDE support  

をチェック。
Nextボタンを2回。

Buckminsterでビルド

EclipseのFile > Import > Buckminster
から
idempiere/org.adempiere.sdk-feature/adempiere.mspec
を選択する。

エラーその1

Problems occurred while resolving the target contents
Target platform directory 'C:/workspace/targetPlatform/' does not exist and will be created
ERROR   [0001] : No suitable provider for component org.adempiere.sdk:eclipse.feature was found in resourceMap file:/C:/workspace/idempiere/org.adempiere.sdk-feature/adempiere.rmap
  ERROR   [0001] : No suitable provider for component org.adempiere.sdk:eclipse.feature was found in searchPath orbit
    ERROR   [0001] : Rejecting provider p2(http://download.eclipse.org/tools/orbit/downloads/drops/R20150124073747/repository/[http://download.eclipse.org/tools/orbit/downloads/drops/R20150124073747/repository/]): Components of type eclipse.feature are not supported
  ERROR   [0001] : No suitable provider for component org.adempiere.sdk:eclipse.feature was found in searchPath workspace.project
    ERROR   [0001] : Rejecting provider local({0}/{1}[C:/workspace/org.adempiere.sdk]): Components of type eclipse.feature are not supported
  ERROR   [0001] : No suitable provider for component org.adempiere.sdk:eclipse.feature was found in searchPath workspace.feature
    ERROR   [0001] : Resolution attempt ended with exception: Provider local(C:/workspace/org.adempiere.sdk-feature): Missing CSpec source required by component type eclipse.feature
      ERROR   Provider local(C:/workspace/org.adempiere.sdk-feature): Missing CSpec source required by component type eclipse.feature

このエラーは、Eclipseのworkspaceがidempiereフォルダでないと発生することが分かった。
今回は、
C:\workspace\idempiere
にidempiereをチェックアウトしたけど、
Eclipseワークスペースを C:\workspace
にしていた。
C:\workspace\idempiere
に切り替えたら、buckminsterが動いた。

エラーその2

A selected specification is unresolved  
com.sun.mail.javax.mail:osgi.bundle.unresolved  
javax.annotation-api:osgi.bundle.unresolved  
...

なんかJ2EE関連のファイルが入っていないからのような気がする、
と思ったけどiDempiereは、Eclipse Marsじゃなくて、Eclipse 4.4 Lunaでないとビルドできないみたいだった。
4.5 Marsの、Eclipse IDE for Java EE Developers
をダウンロードして試しても直らなかった。

ERROR   [0015] : No suitable provider for component org.eclipse.jdt.core.compiler.batch:osgi.bundle was found in resourceMap file:/C:/workspace/idempiere/org.adempiere.sdk-feature/adempiere.rmap
  ERROR   [0015] : No suitable provider for component org.eclipse.jdt.core.compiler.batch:osgi.bundle was found in searchPath bundles.maven
    ERROR   [0015] : Resolution attempt ended with exception: Provider maven2(http://central.maven.org/maven2): Missing CSpec source required by component type osgi.bundle
      ERROR   Provider maven2(http://central.maven.org/maven2): Missing CSpec source required by component type osgi.bundle
ERROR   [0017] : No suitable provider for component javax.annotation-api:osgi.bundle/[1.2.0,1.2.0] was found in resourceMap file:/C:/workspace/idempiere/org.adempiere.sdk-feature/adempiere.rmap
  ERROR   [0017] : No suitable provider for component javax.annotation-api:osgi.bundle/[1.2.0,1.2.0] was found in searchPath bundles.maven
    ERROR   [0017] : Resolution attempt ended with exception: Provider maven2(http://central.maven.org/maven2): Missing CSpec source required by component type osgi.bundle
      ERROR   Provider maven2(http://central.maven.org/maven2): Missing CSpec source required by component type osgi.bundle
ERROR   [0015] : No suitable provider for component org.restlet.ext.net:osgi.bundle/[2.1.0,2.2.0) was found in resourceMap file:/C:/workspace/idempiere/org.adempiere.sdk-feature/adempiere.rmap
  ERROR   [0015] : No suitable provider for component org.restlet.ext.net:osgi.bundle/[2.1.0,2.2.0) was found in searchPath restlet.maven
    ERROR   [0015] : Resolution attempt ended with exception: Provider maven2(http://maven.restlet.org): Missing CSpec source required by component type osgi.bundle
      ERROR   Provider maven2(http://maven.restlet.org): Missing CSpec source required by component type osgi.bundle
ERROR   [0015] : No suitable provider for component org.restlet.ext.servlet:osgi.bundle/[2.1.0,2.2.0) was found in resourceMap file:/C:/workspace/idempiere/org.adempiere.sdk-feature/adempiere.rmap
  ERROR   [0015] : No suitable provider for component org.restlet.ext.servlet:osgi.bundle/[2.1.0,2.2.0) was found in searchPath restlet.maven
    ERROR   [0015] : Resolution attempt ended with exception: Provider maven2(http://maven.restlet.org): Missing CSpec source required by component type osgi.bundle
      ERROR   Provider maven2(http://maven.restlet.org): Missing CSpec source required by component type osgi.bundle
ERROR   [0015] : No suitable provider for component org.restlet.ext.ssl:osgi.bundle/[2.1.0,2.2.0) was found in resourceMap file:/C:/workspace/idempiere/org.adempiere.sdk-feature/adempiere.rmap
  ERROR   [0015] : No suitable provider for component org.restlet.ext.ssl:osgi.bundle/[2.1.0,2.2.0) was found in searchPath restlet.maven
    ERROR   [0015] : Resolution attempt ended with exception: Provider maven2(http://maven.restlet.org): Missing CSpec source required by component type osgi.bundle
      ERROR   Provider maven2(http://maven.restlet.org): Missing CSpec source required by component type osgi.bundle
ERROR   [0017] : No suitable provider for component org.apache.taglibs.standard-jstlel:osgi.bundle was found in resourceMap file:/C:/workspace/idempiere/org.adempiere.sdk-feature/adempiere.rmap
  ERROR   [0017] : No suitable provider for component org.apache.taglibs.standard-jstlel:osgi.bundle was found in searchPath bundles.maven
    ERROR   [0017] : Resolution attempt ended with exception: Provider maven2(http://central.maven.org/maven2): Missing CSpec source required by component type osgi.bundle
      ERROR   Provider maven2(http://central.maven.org/maven2): Missing CSpec source required by component type osgi.bundle
ERROR   [0017] : No suitable provider for component com.sun.mail.javax.mail:osgi.bundle/[1.5.1,1.5.2) was found in resourceMap file:/C:/workspace/idempiere/org.adempiere.sdk-feature/adempiere.rmap
  ERROR   [0017] : No suitable provider for component com.sun.mail.javax.mail:osgi.bundle/[1.5.1,1.5.2) was found in searchPath bundles.maven
    ERROR   [0017] : Resolution attempt ended with exception: Provider maven2(http://central.maven.org/maven2): Missing CSpec source required by component type osgi.bundle
      ERROR   Provider maven2(http://central.maven.org/maven2): Missing CSpec source required by component type osgi.bundle
ERROR   [0017] : No suitable provider for component org.mortbay.jasper.apache-el:osgi.bundle was found in resourceMap file:/C:/workspace/idempiere/org.adempiere.sdk-feature/adempiere.rmap
  ERROR   [0017] : No suitable provider for component org.mortbay.jasper.apache-el:osgi.bundle was found in searchPath bundles.maven
    ERROR   [0017] : Resolution attempt ended with exception: Provider maven2(http://central.maven.org/maven2): Missing CSpec source required by component type osgi.bundle
      ERROR   Provider maven2(http://central.maven.org/maven2): Missing CSpec source required by component type osgi.bundle
ERROR   [0017] : No suitable provider for component org.apache.taglibs.taglibs-standard-spec:osgi.bundle was found in resourceMap file:/C:/workspace/idempiere/org.adempiere.sdk-feature/adempiere.rmap
  ERROR   [0017] : No suitable provider for component org.apache.taglibs.taglibs-standard-spec:osgi.bundle was found in searchPath bundles.maven
    ERROR   [0017] : Resolution attempt ended with exception: Provider maven2(http://central.maven.org/maven2): Missing CSpec source required by component type osgi.bundle
      ERROR   Provider maven2(http://central.maven.org/maven2): Missing CSpec source required by component type osgi.bundle
ERROR   [0017] : No suitable provider for component javax.websocket-api:osgi.bundle was found in resourceMap file:/C:/workspace/idempiere/org.adempiere.sdk-feature/adempiere.rmap
  ERROR   [0017] : No suitable provider for component javax.websocket-api:osgi.bundle was found in searchPath bundles.maven
    ERROR   [0017] : Resolution attempt ended with exception: Provider maven2(http://central.maven.org/maven2): Missing CSpec source required by component type osgi.bundle
      ERROR   Provider maven2(http://central.maven.org/maven2): Missing CSpec source required by component type osgi.bundle
ERROR   [0017] : No suitable provider for component org.objectweb.asm.commons:osgi.bundle/[5.0.1,5.0.1] was found in resourceMap file:/C:/workspace/idempiere/org.adempiere.sdk-feature/adempiere.rmap
  ERROR   [0017] : No suitable provider for component org.objectweb.asm.commons:osgi.bundle/[5.0.1,5.0.1] was found in searchPath bundles.maven
    ERROR   [0017] : Resolution attempt ended with exception: Provider maven2(http://central.maven.org/maven2): Missing CSpec source required by component type osgi.bundle
      ERROR   Provider maven2(http://central.maven.org/maven2): Missing CSpec source required by component type osgi.bundle
ERROR   [0017] : No suitable provider for component org.mortbay.jasper.apache-jsp:osgi.bundle was found in resourceMap file:/C:/workspace/idempiere/org.adempiere.sdk-feature/adempiere.rmap
  ERROR   [0017] : No suitable provider for component org.mortbay.jasper.apache-jsp:osgi.bundle was found in searchPath bundles.maven
    ERROR   [0017] : Resolution attempt ended with exception: Provider maven2(http://central.maven.org/maven2): Missing CSpec source required by component type osgi.bundle
      ERROR   Provider maven2(http://central.maven.org/maven2): Missing CSpec source required by component type osgi.bundle
ERROR   [0017] : No suitable provider for component org.apache.aries.util:osgi.bundle was found in resourceMap file:/C:/workspace/idempiere/org.adempiere.sdk-feature/adempiere.rmap
  ERROR   [0017] : No suitable provider for component org.apache.aries.util:osgi.bundle was found in searchPath bundles.maven
    ERROR   [0017] : Resolution attempt ended with exception: Provider maven2(http://central.maven.org/maven2): Missing CSpec source required by component type osgi.bundle
      ERROR   Provider maven2(http://central.maven.org/maven2): Missing CSpec source required by component type osgi.bundle
ERROR   [0017] : No suitable provider for component org.objectweb.asm:osgi.bundle/[5.0.1,5.0.1] was found in resourceMap file:/C:/workspace/idempiere/org.adempiere.sdk-feature/adempiere.rmap
  ERROR   [0017] : No suitable provider for component org.objectweb.asm:osgi.bundle/[5.0.1,5.0.1] was found in searchPath bundles.maven
    ERROR   [0017] : Resolution attempt ended with exception: Provider maven2(http://central.maven.org/maven2): Missing CSpec source required by component type osgi.bundle
      ERROR   Provider maven2(http://central.maven.org/maven2): Missing CSpec source required by component type osgi.bundle
ERROR   [0017] : No suitable provider for component org.eclipse.jetty.apache-jsp:osgi.bundle/[9.2.0,9.3.0) was found in resourceMap file:/C:/workspace/idempiere/org.adempiere.sdk-feature/adempiere.rmap
  ERROR   [0017] : No suitable provider for component org.eclipse.jetty.apache-jsp:osgi.bundle/[9.2.0,9.3.0) was found in searchPath bundles.maven
    ERROR   [0017] : Resolution attempt ended with exception: Provider maven2(http://central.maven.org/maven2): Missing CSpec source required by component type osgi.bundle
      ERROR   Provider maven2(http://central.maven.org/maven2): Missing CSpec source required by component type osgi.bundle
ERROR   [0017] : No suitable provider for component org.apache.aries.spifly.dynamic.bundle:osgi.bundle was found in resourceMap file:/C:/workspace/idempiere/org.adempiere.sdk-feature/adempiere.rmap
  ERROR   [0017] : No suitable provider for component org.apache.aries.spifly.dynamic.bundle:osgi.bundle was found in searchPath bundles.maven
    ERROR   [0017] : Resolution attempt ended with exception: Provider maven2(http://central.maven.org/maven2): Missing CSpec source required by component type osgi.bundle
      ERROR   Provider maven2(http://central.maven.org/maven2): Missing CSpec source required by component type osgi.bundle
ERROR   [0017] : No suitable provider for component org.objectweb.asm.tree:osgi.bundle/[5.0.1,5.0.1] was found in resourceMap file:/C:/workspace/idempiere/org.adempiere.sdk-feature/adempiere.rmap
  ERROR   [0017] : No suitable provider for component org.objectweb.asm.tree:osgi.bundle/[5.0.1,5.0.1] was found in searchPath bundles.maven
    ERROR   [0017] : Resolution attempt ended with exception: Provider maven2(http://central.maven.org/maven2): Missing CSpec source required by component type osgi.bundle
      ERROR   Provider maven2(http://central.maven.org/maven2): Missing CSpec source required by component type osgi.bundle
ERROR   [0017] : No suitable provider for component org.apache.taglibs.standard-impl:osgi.bundle was found in resourceMap file:/C:/workspace/idempiere/org.adempiere.sdk-feature/adempiere.rmap
  ERROR   [0017] : No suitable provider for component org.apache.taglibs.standard-impl:osgi.bundle was found in searchPath bundles.maven
    ERROR   [0017] : Resolution attempt ended with exception: Provider maven2(http://central.maven.org/maven2): Missing CSpec source required by component type osgi.bundle
      ERROR   Provider maven2(http://central.maven.org/maven2): Missing CSpec source required by component type osgi.bundle
ERROR   [0023] : No suitable provider for component org.apache.servicemix.bundles.cglib:osgi.bundle/[3.1_1,3.1_1]#Triplet was found in resourceMap file:/C:/workspace/idempiere/org.adempiere.sdk-feature/adempiere.rmap
  ERROR   [0023] : No suitable provider for component org.apache.servicemix.bundles.cglib:osgi.bundle/[3.1_1,3.1_1]#Triplet was found in searchPath bundles.maven
    ERROR   [0023] : Resolution attempt ended with exception: Provider maven2(http://central.maven.org/maven2): Missing CSpec source required by component type osgi.bundle
      ERROR   Provider maven2(http://central.maven.org/maven2): Missing CSpec source required by component type osgi.bundle
ERROR   [0038] : No suitable provider for component org.eclipse.jetty.osgi-servlet-api:osgi.bundle/[3.1.0.M0,3.1.0.M0] was found in resourceMap file:/C:/workspace/idempiere/org.adempiere.sdk-feature/adempiere.rmap
  ERROR   [0038] : No suitable provider for component org.eclipse.jetty.osgi-servlet-api:osgi.bundle/[3.1.0.M0,3.1.0.M0] was found in searchPath bundles.maven
    ERROR   [0038] : Resolution attempt ended with exception: Provider maven2(http://central.maven.org/maven2): Missing CSpec source required by component type osgi.bundle
      ERROR   Provider maven2(http://central.maven.org/maven2): Missing CSpec source required by component type osgi.bundle
ERROR   [0038] : No suitable provider for component org.apache.activemq.activemq-core:osgi.bundle was found in resourceMap file:/C:/workspace/idempiere/org.adempiere.sdk-feature/adempiere.rmap
  ERROR   [0038] : No suitable provider for component org.apache.activemq.activemq-core:osgi.bundle was found in searchPath bundles.maven
    ERROR   [0038] : Resolution attempt ended with exception: Provider maven2(http://central.maven.org/maven2): Missing CSpec source required by component type osgi.bundle
      ERROR   Provider maven2(http://central.maven.org/maven2): Missing CSpec source required by component type osgi.bundle
ERROR   [0038] : No suitable provider for component org.apache.activemq.kahadb:osgi.bundle was found in resourceMap file:/C:/workspace/idempiere/org.adempiere.sdk-feature/adempiere.rmap
  ERROR   [0038] : No suitable provider for component org.apache.activemq.kahadb:osgi.bundle was found in searchPath bundles.maven
    ERROR   [0038] : Resolution attempt ended with exception: Provider maven2(http://central.maven.org/maven2): Missing CSpec source required by component type osgi.bundle
      ERROR   Provider maven2(http://central.maven.org/maven2): Missing CSpec source required by component type osgi.bundle
ERROR   [0023] : No suitable provider for component org.restlet:osgi.bundle/[2.1.0,2.2.0) was found in resourceMap file:/C:/workspace/idempiere/org.adempiere.sdk-feature/adempiere.rmap
  ERROR   [0023] : No suitable provider for component org.restlet:osgi.bundle/[2.1.0,2.2.0) was found in searchPath restlet.maven
    ERROR   [0023] : Resolution attempt ended with exception: Provider maven2(http://maven.restlet.org): Missing CSpec source required by component type osgi.bundle
      ERROR   Provider maven2(http://maven.restlet.org): Missing CSpec source required by component type osgi.bundle
ERROR   [0038] : No suitable provider for component javax.management.j2ee-api:osgi.bundle was found in resourceMap file:/C:/workspace/idempiere/org.adempiere.sdk-feature/adempiere.rmap
  ERROR   [0038] : No suitable provider for component javax.management.j2ee-api:osgi.bundle was found in searchPath bundles.maven
    ERROR   [0038] : Resolution attempt ended with exception: Provider maven2(http://central.maven.org/maven2): Missing CSpec source required by component type osgi.bundle
      ERROR   Provider maven2(http://central.maven.org/maven2): Missing CSpec source required by component type osgi.bundle
ERROR   [0048] : No suitable provider for component org.apache.felix.webconsole:osgi.bundle/[4.2.2,4.3.0) was found in resourceMap file:/C:/workspace/idempiere/org.adempiere.sdk-feature/adempiere.rmap
  ERROR   [0048] : No suitable provider for component org.apache.felix.webconsole:osgi.bundle/[4.2.2,4.3.0) was found in searchPath bundles.maven
    ERROR   [0048] : Resolution attempt ended with exception: Provider maven2(http://central.maven.org/maven2): Missing CSpec source required by component type osgi.bundle
      ERROR   Provider maven2(http://central.maven.org/maven2): Missing CSpec source required by component type osgi.bundle
ERROR   [0174] : No suitable provider for component org.eclipse.jdt.core.compiler.batch:osgi.bundle/3.8.2 was found in resourceMap file:/C:/workspace/idempiere/org.adempiere.sdk-feature/adempiere.rmap
  ERROR   [0174] : No suitable provider for component org.eclipse.jdt.core.compiler.batch:osgi.bundle/3.8.2 was found in searchPath bundles.maven
    ERROR   [0174] : Rejecting provider maven2(http://central.maven.org/maven2[http://central.maven.org/maven2]): No component match was found
ERROR   [0015] : No suitable provider for component org.restlet.ext.servlet:osgi.bundle/[2.1.0,2.2.0) was found in resourceMap file:/C:/workspace/idempiere/org.adempiere.sdk-feature/adempiere.rmap
  ERROR   [0015] : No suitable provider for component org.restlet.ext.servlet:osgi.bundle/[2.1.0,2.2.0) was found in searchPath restlet.maven
    ERROR   [0015] : Resolution attempt ended with exception: Provider maven2(http://maven.restlet.org): Missing CSpec source required by component type osgi.bundle
      ERROR   Provider maven2(http://maven.restlet.org): Missing CSpec source required by component type osgi.bundle
ERROR   [0017] : No suitable provider for component org.eclipse.jetty.apache-jsp:osgi.bundle/[9.2.0,9.3.0) was found in resourceMap file:/C:/workspace/idempiere/org.adempiere.sdk-feature/adempiere.rmap
  ERROR   [0017] : No suitable provider for component org.eclipse.jetty.apache-jsp:osgi.bundle/[9.2.0,9.3.0) was found in searchPath bundles.maven
    ERROR   [0017] : Resolution attempt ended with exception: Provider maven2(http://central.maven.org/maven2): Missing CSpec source required by component type osgi.bundle
      ERROR   Provider maven2(http://central.maven.org/maven2): Missing CSpec source required by component type osgi.bundle
ERROR   [0015] : No suitable provider for component org.restlet.ext.ssl:osgi.bundle/[2.1.0,2.2.0) was found in resourceMap file:/C:/workspace/idempiere/org.adempiere.sdk-feature/adempiere.rmap
  ERROR   [0015] : No suitable provider for component org.restlet.ext.ssl:osgi.bundle/[2.1.0,2.2.0) was found in searchPath restlet.maven
    ERROR   [0015] : Resolution attempt ended with exception: Provider maven2(http://maven.restlet.org): Missing CSpec source required by component type osgi.bundle
      ERROR   Provider maven2(http://maven.restlet.org): Missing CSpec source required by component type osgi.bundle
Attempt to use an unresolved node. Request is org.eclipse.jdt.core.compiler.batch:osgi.bundle/3.8.2

Install Development Prerequisites - iDempiere en

https://groups.google.com/forum/?fromgroups#!topic/idempiere/XDM2-1TBHfc

Eclipse 4.5 Marsでやるとこのエラーになるっぽい。
Eclipse 4.4 Lunaでやったらエラーが出ずに進んだ。

エラーその3

Description  Resource    Path    Location    Type
Package 'bsh.classpath' does not exist in this plug-in  MANIFEST.MF /org.adempiere.base/META-INF    line 24 Plug-in Problem
Description Resource    Path    Location    Type
Package 'bsh.collection' does not exist in this plug-in MANIFEST.MF /org.adempiere.base/META-INF    line 25 Plug-in Problem
など

Java7を入れて、Eclipseの、
Window > Preferences Installed JREs
でJava7の設定を追加。
Eclipseを再起動してbuckminsterの処理をもう一度やったらエラーが解消した。

Package Explorerで赤いエラーマークのプロジェクトを右クリック、Build Project でエラーが消えた。

/Library/Java/JavaVirtualMachines/jdk1.7.0_75.jdk/Contents/Home

java -version
which java
/usr/libexec/java_home -v 1.7

Java7

Java SE Development Kit 7 - Downloads | Oracle Technology Network | Oracle

環境変数

環境変数のPathに
C:\ProgramData\Oracle\Java\javapath
というものがあった。
java8のjava.exeへのショートカットがあったので、
java7のものに変えてみたけど、コマンドラインから、 java -versionを打ってもJava8と表示された。
Pathの後ろにあった
C:\Program Files\Java\jdk1.7.0_79\bin;
を先頭に移動したらjava7になった。

エラーその4

Description  Resource    Path    Location    Type
String literal is not properly closed by a double-quote PlafRes_de.java /org.adempiere.ui.swing/src/org/compiere/plaf   line 84 Java Problem

encodingをMS932からUTF-8にして、Build Projectで解決。

PostgreSQL

Importing DB Seed Manually - iDempiere en

psql -d idempiere -U adempiere -c "CREATE EXTENSION \"uuid-ossp\""

C:\Program Files\PostgreSQL\9.4\data\pg_hba.conf
ipconfigで調べたIPを許可設定した。

セットアップ

Eclipse
Run Configurations...
から
install.app
を実行して、「アデンピエーレ サーバー 設定」を実行。

iDempiereサーバー起動

Run Configurations...
から
server.product
を実行。

http://localhost:8080/
にアクセスしても表示されなかった。
ipconfigとかnetstat -anとかで、
VirtualBox Host-Only Ethernet Adapter
の方のIP(インターフェイス)で動いていることが分かった。
VirtualBox Ethernet AdapterのIPにアクセスしたらiDempiereのページが表示された。