首页 > 其他分享 >XMLBeans 环境变量设置

XMLBeans 环境变量设置

时间:2022-11-21 20:05:58浏览次数:48  
标签:XMLBeans XMLBEANS lib jar CLASSPATH 设置 HOME 环境变量

Windows Setup

On Windows, do the following:

  1. Right-click My Computer, then click Properties.
  2. On the Advanced tab, click Environment Variables.
  3. 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.

  4. 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.
  5. 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.

  6. 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:

  1. export XMLBEANS_HOME=<location of XMLBeans root>
  2. export PATH=$PATH:$XMLBEANS_HOME/bin
  3. export CLASSPATH=$XMLBEANS_HOME/lib/xbean.jar:$CLASSPATH

    (or, if you built XMLBeans from source, export CLASSPATH=$XMLBEANS_HOME/build/lib/xbean.jar:$CLASSPATH)

  4. 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.

标签:XMLBeans,XMLBEANS,lib,jar,CLASSPATH,设置,HOME,环境变量
From: https://blog.51cto.com/u_15887056/5875168

相关文章

  • maven2创建一个eclipse工程,设置M2_REPO
    用maven创建一个支持eclipse的工程非常简单,在mvn的项目目录下:mvneclipse:eclipse即可。再打开eclipse->import->General:ExistingProjectsintoWorkspace->包含该工程......
  • 在PHP中,使用函数define()来定义常量 可设置大小号是否敏感等
    在PHP中,使用函数define()来定义常量。其语法如下:1booldefine(stringname,mixedvalue[,boolcase_insensitive]);说明:define函数有3个参数,第一个参数为常量名称,即标......
  • ASP.NET Core 基础知识--环境变量,不同环境自动采用不同配置文件
    在一个项目当中,我们经常会有很多不同的环境的参数需要配置,比如以登录cookie要写的domain为例吧开发环境的配置:一般是localhost测试环境:内部解析的测试域名UAT用户验收测......
  • win10和win7设置教程
    win10设置教程1.点左下角齿轮这个设置2.点网络和internet 3.点dai理 4.复制粘贴发您pac结尾的链接到url里面就行,最后保存。     ================......
  • mac苹果电脑设置教程
    1.在底部,点系统偏好设置按钮 2.点击图中的网络 3.选择当前Wi-Fi,在右下角,点“高级” 4.点击图中【代理】,勾选【自动代理配置】一定要勾选啊!注意:鼠标一定要点......
  • 树莓派设置固定ip
    sudovim/etc/dhcpcd.conf#使用vim编辑文件,增加下列配置项#指定接口eth0(有线),wlan0(wifi)interfacewlan0#指定静态IP,/24表示子网掩码为255.255.255.0static......
  • echarts 图表设置默认选中
    一、数据图形import*asechartsfrom'echarts'constmyChart=echarts.init(document.querySelector('pie'))​​官方文档events​​​​官方文档action​​设置高亮m......
  • PHP中max_execution_time设置不生效
     问题描述: max_execution_time设置了1秒,但是发现超过3秒的脚本还是跑。于是深入研究下max_execution_time不生效的原因。 官网描述: ​​https://www.php.net/manual/zh/......
  • WIN 11 共享设置
    我的电脑->管理->用户->解除GUEST禁用gpedit.msc->计算机管理->本地->从网络上访问本机->允许GUEST高级共享设置->从网络上访问选择文件夹->共享......
  • eclipse设置默认编码格式utf-8
    需要设置的几处地方为:Window->Preferences->General->Workspace面板Textfileencoding选择UTF-8Window->Preferences->General->ContentType->Text->JSP最下面设置......