`
DavyJones2010
  • 浏览: 154249 次
  • 性别: Icon_minigender_1
  • 来自: 杭州
社区版块
存档分类
最新评论

Eclipse: How to integrate Derby

阅读更多

1. Quite often, we need to test dao in our project.

    And derby is a good choice for this specific purpose.

 

2. Installation:

1) DTP Installation

Help->Install New Software...

2) Download Derby JDBC JAR

1> In Non-maven project

     We need to download the latest derby jar from the official download link.

2> In Maven project

     We need to include derby jar in pom file

<dependency>
	<groupId>org.apache.derby</groupId>
	<artifactId>derby</artifactId>
	<version>10.10.1.1</version>
</dependency>

3) Register Derby JDBC Driver

1> Window->Open Perspective->Other->Database Development

2> Database Connections->New...







 

Extensions:

1> How to delete Driver/Connection Profiles?

Window->Preferences->Data Management->Connectivity->Driver Definitions

2> Sometimes after we added a connection, we may encounter exception like this:

Failed to create database 'C:\Program Files\MyApp\myDB', see the next exception for details.

To me, it is because there is already a directory "c:/Program Files/MyApp/myDB" exists.

1> Remove Driver Definitions and connection profiles.

2> Close eclipse, and restart computer(To dissolve the occupation of myDB directory).

3> Delete myDB directory.

4> Start Eclipse, and then create connection profiles.

The exception just disappeared.

 

Reference Links:

1) http://www.vogella.com/articles/EclipseDataToolsPlatform/article.html#dtpintro_dtp Introduction how to enable DTP and integrate Derby.

2) http://download.eclipse.org/releases/kepler The DTP URL.

3) http://db.apache.org/derby/derby_downloads.html Download for Derby JAR.

4) http://www.binarytides.com/create-autoincrement-columnfield-in-apache-derby/ Simple Auto-increment Primary Key DDL Definition.

5) http://stackoverflow.com/questions/4999106/fail-to-create-embedded-derby-java Possible other solution for db creation exception.

6) http://www.eclipse.org/forums/index.php/t/14650/ Possible other solution for db creation exception.

  • 大小: 34.5 KB
  • 大小: 21.3 KB
  • 大小: 18.5 KB
  • 大小: 24.9 KB
  • 大小: 17.8 KB
  • 大小: 39.7 KB
  • 大小: 21.7 KB
  • 大小: 26.5 KB
  • 大小: 15.6 KB
  • 大小: 22.9 KB
  • 大小: 19.4 KB
  • 大小: 34.4 KB
分享到:
评论

相关推荐

    Program.Arcade.Games.With.Python.and.Pygame.14842178

    How to integrate and start using graphics How to animate graphics How to integrate and use game controllers How to add sound and bit-mapped graphics How to build grid-based games Audience This book ...

    How to Integrate E2E in MICROSAR

    ### 如何在MICROSAR中集成End-to-End保护 #### 概述 本文档旨在指导用户如何在VECTOR AUTOSAR软件MICROSAR中集成End-to-End (E2E)保护功能。E2E保护是一项重要的安全措施,用于确保在汽车电子控制单元(ECU)之间的...

    How to integrate BIEE with Oracle SSO Portal.doc

    【整合BIEE与Oracle SSO门户的详细步骤】 在企业级IT环境中,实现单点登录(SSO)是提高用户便利性和系统安全性的重要手段。本文档将详细讲解如何将Oracle Business Intelligence Enterprise Edition(BIEE)与...

    Big Data SMACK: A Guide to Apache Spark, Mesos, Akka, Cassandra, and Kafka

    This book is about how to integrate full-stack open source big data architecture and how to choose the correct technology―Scala/Spark, Mesos, Akka, Cassandra, and Kafka―in every layer. Big data ...

    Integrate_E2E_in_MICROSAR.pdf

    《集成E2E在MICROSAR中的技术参考》 本文档详细介绍了如何在基于AUTOAR 4.2的MICROSAR环境中实现端到端(E2E)保护,主要涉及两种方案:E2E Protection Wrapper(E2E保护包装器)和E2E Transformer(E2E转换器)。...

    Manning - Eclipse In Action.pdf

    - **Version Control Integration**: How to integrate version control systems like Git or Subversion directly into Eclipse for seamless source code management. **Chapter 5: Building with Ant** - **...

    [Eclipse Juno] Eclipse Juno 入门教程 (英文版)

    Get to grips with how Eclipse can be used to develop web-based Java applications that employ Java Servlets and JavaServer Pages ☆ 出版信息:☆ [作者信息] Vinicius H.S. Durelli , Rodrigo Fraxino ...

    Oracle Database 10g PL-SQL Programming

    This chapter explores how to integrate SQL statements within PL/SQL blocks: - **Cursor Usage**: How cursors work and different types of cursors, including implicit and explicit cursors. - **Dynamic ...

    How to ISAPI_Hikvision_HikvisionISAPI_

    How to integrate with Hikvision LPR function via ISAPI

    Big Data SMACKBig Data SMACK(Apress,2016)

    This book is about how to integrate full-stack open source big data architecture and how to choose the correct technology―Scala/Spark, Mesos, Akka, Cassandra, and Kafka―in every layer. Big data ...

    Beginning PHP and MySQL: From Novice to Professional, Third Edition

    Essentially three books in one, readers not only profit from extensive introductions to the core features of each technology, but also learn how to effectively integrate the two in order to build ...

    [Kendo UI] 移动应用开发 Kendo UI Mobile 实现 英文版

    Get started with Kendo UI Mobile and learn how to integrate it with HTTP based services built using ASP NET Web API Overview Learn the basics of developing mobile applications using ...

    PHP & MySQL 最经典的书 (08新版)Beginning PHP and MySQL: From Novice to Professional

    Essentially three books in one, readers not only profit from extensive introductions to the core features of each technology, but also learn how to effectively integrate the two in order to build ...

    Beginning Spring 5: From Novice to Professional

    This book will teach you how to use the Spring Framework to build Java-based applications, web applications, and microservices. You’ll see how Spring has drastically and positively affected the way ...

    Learning Redux

    You are going to learn how to integrate and use Redux DevTools to debug applications, and access external APIs with Redux. You are also going to get acquainted with writing tests for all elements of ...

    Building a Game with Unity and Blender.pdf 0分

    Paperback: 250 pages Publisher: Packt Publishing (November 27, 2015) Language: English ...Learn how to integrate Artificial Intelligence (AI) into your game for sophisticated and engaging gameplay

    How To_ Integrate K2 and UiPath(1).pdf

    本文档讲述了如何将K2和UiPath两个自动化平台进行集成。K2是一个业务流程管理(BPM)和工作流程自动化解决方案,而UiPath是一个领导级的机器人流程自动化(RPA)软件公司。集成这两个平台可以让用户通过K2表单或工作流程...

Global site tag (gtag.js) - Google Analytics