XMLBeans 環境變數設定
Windows Setup
On Windows, do the following:
- Right-click My Computer, then click Properties.
- On the Advanced tab, click Environment Variables.
- Add an XMLBEANS_HOME variable whose value is the XMLBeans location.
For example, if you downloaded the XMLBeans release to the root of your C drive, this might be c:\xmlbeans-1.0.2.
- Edit the PATH variable so that it includes the bin directory of your XMLBeans installation. For the XMLBeans release, you could add %XMLBEANS_HOME%\bin.
- Edit the CLASSPATH variable to include the xbean.jar included with XMLBeans.
This is located in the lib directory. If you built XMLBeans from source, you can also use the JAR file in the build/ar or build/lib directories.
- For XMLBeans V2, also include the jsr173_1.0_api.jar (or jsr173_api.jar, whichever one came in your download) to the CLASSPATH variable.
This is found in the lib (or build/lib if you built XMLBeans from source) directory.
UNIX/Linux Setup
On UNIX/Linux, update your environment as follows:
- export XMLBEANS_HOME=<location of XMLBeans root>
- export PATH=$PATH:$XMLBEANS_HOME/bin
-
export CLASSPATH=$XMLBEANS_HOME/lib/xbean.jar:$CLASSPATH
(or, if you built XMLBeans from source, export CLASSPATH=$XMLBEANS_HOME/build/lib/xbean.jar:$CLASSPATH)
- For XMLBeans V2, export CLASSPATH=$CLASSPATH:$XMLBEANS_HOME/lib/jsr173[_1.0]_api.jar
(or, if you built XMLBeans from source, export CLASSPATH=$CLASSPATH:$XMLBEANS_HOME/build/lib/jsr173[_1.0]_api.jar)
Your updates might look like this:
export XMLBEANS_HOME=/home/me/xmlbeans-2.1.0 export PATH=$PATH:$XMLBEANS_HOME/bin export CLASSPATH=$XMLBEANS_HOME/lib/xbean.jar:$XMLBEANS_HOME/lib/jsr173_1.0_api.jar:$CLASSPATH
Once you've updated your environment paths, you should be set up to use the tools that come with XMLBeans. These include a schema compiler, an instance validator, and more.
相關文章
- 設定環境變數變數
- export 設定環境變數Export變數
- oracle環境變數設定Oracle變數
- CentOS環境變數設定CentOS變數
- redhatas 設定環境變數Redhat變數
- rman 設定環境變數變數
- JAVA環境變數設定Java變數
- 設定環境變數(轉)變數
- Linux設定環境變數Linux變數
- c#環境變數設定C#變數
- Linux 環境變數設定Linux變數
- java JDK環境變數設定JavaJDK變數
- RMAN環境變數的設定變數
- java jdk 設定環境變數JavaJDK變數
- ansible 設定環境變數變數
- ansible設定環境變數變數
- 什麼是環境變數?Python中如何設定環境變數?變數Python
- win10環境變數怎麼設定 win10設定環境變數的方法Win10變數
- Golang環境變數設定詳解Golang變數
- JDK1.8環境變數設定JDK變數
- 環境變數的設定方法(轉)~變數
- Centos7環境變數設定CentOS變數
- Vue 設定環境變數和模式Vue變數模式
- Mac上設定Java環境變數MacJava變數
- CentOS 6.5 Oracle 環境變數設定CentOSOracle變數
- npm scripts設定環境變數方法NPM變數
- JDK 1.6環境變數如何設定?JDK變數
- Oracle 環境變數設定標準Oracle變數
- win 命令列 設定環境變數命令列變數
- 4.2.10.2 設定和取消設定環境變數變數
- java設定-JDK環境變數的設定(轉)JavaJDK變數
- Mac 設定環境變數的位置、檢視和新增PATH環境變數Mac變數
- win10 gcc環境變數怎麼設定_win10設定gcc環境變數步驟Win10GC變數
- 系統預設環境變數PATH設定變數
- 什麼是環境變數?python設定環境變數有什麼用?變數Python
- Rust 使用 dotenv 來設定環境變數Rust變數
- ubuntu-設定系統環境變數Ubuntu變數
- linux系統設定環境變數Linux變數