MapXtreme for Java 4.5 开发注意事项
来源:互联网 发布:log4j2 输出到数据库 编辑:程序博客网 时间:2024/04/30 14:47
1.MXTJ4.5的实用程序的日志或错误信息输出
在MapXtreme-
# LAX.STDERR.REDIRECT
# -------------------
# leave blank for no input, "console" to read from the console window,
# and any path to a file to read from that file
lax.stderr.redirect=(标准错误输出 可选控制台:console或自定义文件:***.log)
# LAX.STDIN.REDIRECT
# ------------------
# leave blank for no input, "console" to read from the console window,
# and any path to a file to read from that file
lax.stdin.redirect=(标准输入)
# LAX.STDOUT.REDIRECT
# -------------------
# leave blank for no input, "console" to read from the console window,
# and any path to a file to read from that file
lax.stdout.redirect=(标准输出)
还可以指定其他选项
类的查找路径
# LAX.CLASS.PATH
# --------------
# the Java classpath necessary to run this application
# Can be separated by colons (Mac OS/Unix) or semicolons (Windows)
lax.class.path=;D://Program Files//MapInfo/MapXtreme-
运行程序的Java虚拟机
# LAX.NL.CURRENT.VM
# -----------------
# the VM to use for the next launch
lax.nl.current.vm=D://BES//jdk//jdk
2.数据库连接定义
Oracle
连接名: Test(随便)
JDBC驱动类: oracle.jdbc.driver.OracleDriver
数据源URL: jdbc:oracle:thin:@主机名或IP:端口号(默认1521):SID
用户名:
口令:
在加载Oracle驱动时只要加载classes12.jar一个文件就可以,不能同时加入classes12.jar和classes111.jar两个文件。
3.
3.
mdf文件的encoding编码的设置MXTJ 4.5使用中文安装时默认的encoding="GB2312",无需更改。
但MXTJ 4.7使用中文安装时默认的encoding="UTF-8",需要修改MapXtreme-
<!-- Set to the desired MIME defined in this file -->
<XmlEncoding>UTF-8</XmlEncoding>
为
<!-- Set to the desired MIME defined in this file -->
<XmlEncoding>GB2312</XmlEncoding>
注:如果使用UTF-8编码,使用中文作为图层名时,打开文件见到的是乱码。
- MapXtreme for Java 4.5 开发注意事项
- MapXtreme for Java
- netbeans +mapxtreme for Java
- MapXtreme for java 精例
- MapXtreme for java 基本概念
- mapxtreme for java 连接Mysql
- mapxtreme for java 安装配置
- MapXtreme for Java 中文乱码
- MapXtreme for Java 中文乱码
- MapXtreme for java 破解方法
- MapXtreme for java 地图渲染
- MapXtreme Java开发环境配置
- MapXtreme Java开发环境配置
- mapXtreme For Java汉字显示的问题
- Mapxtreme for Java中添加自定义图标
- MapXtreme for java 文本对象处理
- MapXtreme for Java精华文章资料荟萃
- MapXtreme for Java精华文章资料荟萃
- 月薪5万,微软中国研究院最新面试题
- B/S模式下实现EXCEL报表的生成与打印
- dll问题求解
- WebGIS小结之九(新增图层)
- 设计模式概述
- MapXtreme for Java 4.5 开发注意事项
- 寻求帮助
- 如何读取jar类库包里的文件
- LINUX 自启动管理
- sax解析xml(转)
- 请别忘了
- 表信息
- 安装了VS.net 2003,下载了ccs1.04
- 浅析Windows消息机制