考试网 >> IT认证 >> Linux >> Linux指导 >> J2ME学习笔记[1]

J2ME学习笔记[1]

发布时间:2006-06-28 10:50     点击:
分页:上一页  1 2 [3] 4 5  下一页

 * 设备应该安装Djeode

 * 建立test.lnk

 *18#"\存储卡\Insignia Solutions JeodeRuntime\evm.exe"

 *-Djeode.evm.console.local.keep=TRUE

 *-Djeode.evm.console.local.paging=TRUE

 *-Djul.library.dir=\UltraLite\lib

 *-cp \UltraLite\tutorial;\UltraLite\lib\jul9_zh.jar

 *Customer

 */

/**

 * @author LiYou

 *

 *

 */

import ianywhere.native_ultralite.*;

import java.sql.SQLException;

public class Customer{

    static Connection conn;

 public static void main( String args[]){

  try{

   Customer cust = new Customer();

   cust.insert();

   cust.select();

   conn.close();

  }catch( SQLException e){

   e.printStackTrace();

  }

 }

 public Customer() throws SQLException{

  DatabaseManager dbMgr = new DatabaseManager();

  /*

   * UltraLite默认滴数据库用户名和密码。。。怎么改不知道,偶不会这个东西也没有研究

   */

  String parms = "uid=DBA"

   + ";pwd=SQL"

   + ";file_name=f:\\j2me\\tutcustomer.udb"

   + ";schema_file=f:\\j2me\\tutcustomer.usm"

   + ";ce_file=\\UltraLite\\tutorial\\tutcustomer.udb"

   + ";ce_schema=\\UltraLite\\tutorial\\tutcustomer.usm";

  /*

   * 如果部署到WindowsCE设备上把这行添加两条

 * ce_file=\\UltraLite\\tutorial\\tutcustomer.udb

   * ce_schema=\\UltraLite\\tutorial\\tutcustomer.usm

   *
分页:上一页  1 2 [3] 4 5  下一页
版权申明:未经书面授权请勿转载本站信息!!作品版权归所属媒体与作者所有!!
发表评论: 匿名发表 用户名: 查看评论
您将承担一切因您的行为、言论而直接或间接导致的民事或刑事法律责任
留言板管理人员有权保留或删除其管辖留言中的任意内容
本站提醒:不要进行人身攻击。谢谢配合。
在本站搜索相关信息
2003-2005 Ksw123.com All Rights Reserved. - TOP
Copyright © 2006 Ksw123.com. All rights reserved.中国考题网 版权所有