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.
相關文章
- ansible設定環境變數變數
- ansible 設定環境變數變數
- export 設定環境變數Export變數
- Linux設定環境變數Linux變數
- java jdk 設定環境變數JavaJDK變數
- 什麼是環境變數?Python中如何設定環境變數?變數Python
- 4.2.10.2 設定和取消設定環境變數變數
- win10環境變數怎麼設定 win10設定環境變數的方法Win10變數
- JDK1.8環境變數設定JDK變數
- Golang環境變數設定詳解Golang變數
- linux系統設定環境變數Linux變數
- Vue 設定環境變數和模式Vue變數模式
- python 獲取設定環境變數Python變數
- win 命令列 設定環境變數命令列變數
- Centos7環境變數設定CentOS變數
- 環境變數的設定方法(轉)~變數
- Mac 設定環境變數的位置、檢視和新增PATH環境變數Mac變數
- 什麼是環境變數?python設定環境變數有什麼用?變數Python
- win10 gcc環境變數怎麼設定_win10設定gcc環境變數步驟Win10GC變數
- 系統預設環境變數PATH設定變數
- Linux字符集環境變數設定Linux變數
- Rust 使用 dotenv 來設定環境變數Rust變數
- ubuntu-設定系統環境變數Ubuntu變數
- tomcat配置環境變數win10怎樣設定_win10如何設定tomcat配置環境變數Tomcat變數Win10
- win10環境變數設定怎麼編輯 win10設定環境變數的位置在哪Win10變數
- 在Linux中,什麼是環境變數?如何設定和檢視環境變數?Linux變數
- win10 如何讓環境變數生效_windows10如何設定環境變數Win10變數Windows
- python設定環境變數(臨時和永久)Python變數
- rust程式中設定和訪問環境變數Rust變數
- Jtti:ubuntu中怎麼設定qt環境變數JttiUbuntuQT變數
- 2.4.3 Step 2: 確定設定好了環境變數變數
- 讀取和設定 Ubuntu 環境變數(很全面)Ubuntu變數
- JAVA下載安裝及設定環境變數Java變數
- Linux 基礎-檢視和設定環境變數Linux變數
- Linux環境變數的設定、檢視、刪除Linux變數
- win10環境變數怎麼設定 win10環境變數更改的方法步驟Win10變數
- Qt 安裝與環境變數的設定(Windows 10)QT變數Windows
- Linux系統設定環境變數是怎樣的Linux變數
- 【Linux】Linux中怎麼設定和刪除環境變數Linux變數