<tfoot id='iZpMg'></tfoot>

<small id='iZpMg'></small><noframes id='iZpMg'>

  • <legend id='iZpMg'><style id='iZpMg'><dir id='iZpMg'><q id='iZpMg'></q></dir></style></legend>
        <bdo id='iZpMg'></bdo><ul id='iZpMg'></ul>
    1. <i id='iZpMg'><tr id='iZpMg'><dt id='iZpMg'><q id='iZpMg'><span id='iZpMg'><b id='iZpMg'><form id='iZpMg'><ins id='iZpMg'></ins><ul id='iZpMg'></ul><sub id='iZpMg'></sub></form><legend id='iZpMg'></legend><bdo id='iZpMg'><pre id='iZpMg'><center id='iZpMg'></center></pre></bdo></b><th id='iZpMg'></th></span></q></dt></tr></i><div id='iZpMg'><tfoot id='iZpMg'></tfoot><dl id='iZpMg'><fieldset id='iZpMg'></fieldset></dl></div>

      1. Apache Derby Eclipse 插件去哪儿了?

        Where did the Apache Derby Eclipse plug-in go?(Apache Derby Eclipse 插件去哪儿了?)
        • <bdo id='FSQiL'></bdo><ul id='FSQiL'></ul>
              <tbody id='FSQiL'></tbody>

            <small id='FSQiL'></small><noframes id='FSQiL'>

            1. <tfoot id='FSQiL'></tfoot>
            2. <i id='FSQiL'><tr id='FSQiL'><dt id='FSQiL'><q id='FSQiL'><span id='FSQiL'><b id='FSQiL'><form id='FSQiL'><ins id='FSQiL'></ins><ul id='FSQiL'></ul><sub id='FSQiL'></sub></form><legend id='FSQiL'></legend><bdo id='FSQiL'><pre id='FSQiL'><center id='FSQiL'></center></pre></bdo></b><th id='FSQiL'></th></span></q></dt></tr></i><div id='FSQiL'><tfoot id='FSQiL'></tfoot><dl id='FSQiL'><fieldset id='FSQiL'></fieldset></dl></div>
                  <legend id='FSQiL'><style id='FSQiL'><dir id='FSQiL'><q id='FSQiL'></q></dir></style></legend>

                1. 本文介绍了Apache Derby Eclipse 插件去哪儿了?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  编辑:根据Derby 社区 Eclipse 插件不会在 Derby 项目中自动维护或构建.

                  Edit: According to the Derby community the Eclipse plug-in won't be maintained nor built automatically along the Derby project.

                  但是还有人在使用这个插件吗?因为如果是这样,他/她是否有发布实际构建的地方-(希望)可以在 Eclipse Juno 下运行?

                  But is there anybody still using this plug-in? Because if so, is there a place he/she publishes the actual builds - which (hopefully) would run under Eclipse Juno?

                  或者,如果这是一个真正的死胡同,还有哪些选择?

                  Or, if this is a real dead end, what are the alternatives?

                  原来的问题

                  使用

                  • jdk1.7.0_03
                  • Eclipse IDE for Java EE Developers (Win32) 版本 Juno(从 2012 年 6 月 14 日开始构建)
                  • derby-core-plugin 10.8.2 和 -ui-plugin 1.1.3(因为最新版本 10.9.1.0 没有 eclipse 插件)

                  问题
                  尝试添加新的 derby 特性时(右键单击 java 项目 -> Apache Derby" -> 添加 Apache Derby 特性")我只收到以下消息:

                  Problem
                  When trying to add a new derby nature (right-click on the java project -> "Apache Derby" -> "Add Apache Derby nature") I only get the following message:

                  Apache Derby Ui Plug-in
                  Error adding Derby jars to the project:
                  org.eclipse.ui.internal.WorkbenchWindow cannot be cast to
                  org.eclipse.jface.window.ApplicationWindow
                  

                  有什么想法吗?

                  推荐答案

                  Apache Derby db-derby-10.9.1.0-src/Eclipse 4.2.1 (Juno)/Java 7

                  Apache Derby db-derby-10.9.1.0-src / Eclipse 4.2.1 (Juno) / Java 7

                  某种修复.需要更多的研究,但这会奏效.

                  Some kind of fix. Needs more research but this will work.

                  参考:
                  db-derby-10.9.1.0-src/BUILDING.html
                  db-derby-10.8.1.2-src/plugins/eclipse/Readme.txt

                  References:
                  db-derby-10.9.1.0-src/BUILDING.html
                  db-derby-10.8.1.2-src/plugins/eclipse/Readme.txt

                  下载 Apache Derby 源 zip.
                  解压压缩包.
                  切换到源目录.
                  db-derby-10.9.1.0-src

                  Download the Apache Derby source zip.
                  Extract the zip.
                  Change to the source directory.
                  db-derby-10.9.1.0-src

                  执行以下 ant 目标.
                  蚂蚁 - 安静的破坏者
                  ant -quiet 构建源
                  ant -quiet buildjars

                  Perform the following ant targets.
                  ant -quiet clobber
                  ant -quiet buildsource
                  ant -quiet buildjars

                  构建核心插件.
                  蚂蚁插件

                  Build the core plugin.
                  ant plugin

                  您现在应该在 db-derby-10.9.1.0-src/jars/sane 目录中有一个 derby_core_plugin_10.9.1.zip 文件.

                  You should now have a derby_core_plugin_10.9.1.zip file in the db-derby-10.9.1.0-src/jars/sane directory.

                  注意:您的 Eclipse IDE 不应运行.提取上面 ant 插件任务创建的 derby 核心插件,并将内容复制到您的 Eclipse 插件目录.

                  Note: Your Eclipse IDE should not be running. Extract the derby core plugin created by the ant plugin task above and copy the contents to your Eclipse plugins directory.

                  运行 Eclipse.

                  Run Eclipse.

                  从源代码树中导入 org.apache.derby.ui.
                  (导入 > 常规 > 现有项目到工作区)

                  Import the org.apache.derby.ui from the source tree.
                  (Import > General > Existing Projects into Workspace)

                  打开plugin.xml文件

                  Open the plugin.xml file

                  在概览"选项卡上,将版本号提高到 1.1.4.

                  On the Overview tab, bump up the version number to let's say 1.1.4.

                  保存文件.

                  错误在...
                  1.) 包 org.apache.derby.ui.popup.actions.AddDerbyNature.java
                  2.) 包 org.apache.derby.ui.popup.actions.RemoveDerbyNature.java

                  The bug(s) are in ...
                  1.)package org.apache.derby.ui.popup.actions.AddDerbyNature.java
                  2.)package org.apache.derby.ui.popup.actions.RemoveDerbyNature.java

                  在这两个单元中调用 .setStatus 方法的地方.

                  Where the .setStatus method are called in these two units.

                  注意:(来自ApplicationWindow的javadoc)

                  Note: ( from the javadoc of ApplicationWindow )

                  void org.eclipse.jface.window.ApplicationWindow.setStatus(字符串消息)

                  void org.eclipse.jface.window.ApplicationWindow.setStatus(String message)

                  设置或清除此窗口状态行中显示的消息(如果有 >one).如果窗口没有状态行,则此方法无效.

                  Sets or clears the message displayed in this window's status line (if it has >one). This method has no effect if the window does not have a status line.

                  参数:
                  message 状态消息,或 null 清除它

                  Parameters:
                  message the status message, or null to clear it

                  假设 IDE 没有状态行,因此根据 Java 文档,此调用无效.

                  So let's assume the IDE doesn't have a status line, so this call has no effect according to the Java doc.

                  Commenting out these method calls from:  
                  AddDerbyNature.java  
                  //((ApplicationWindow) window).setStatus(Messages.ADDING_NATURE);  
                  //((ApplicationWindow) window).setStatus(Messages.DERBY_NATURE_ADDED);  
                  
                  RemoveDerbyNature.java  
                  //((ApplicationWindow)window).setStatus(Messages.REMOVING_NATURE);  
                  //((ApplicationWindow)window).setStatus(Messages.DERBY_NATURE_REMOVED);  
                  

                  测试:
                  作为 Eclipse 应用程序运行.

                  Test(s):
                  Run As Eclipse Application.

                  创建一个项目.也许称它为org.apache.derby.ui.test".

                  Create a project. Maybe call it "org.apache.derby.ui.test".

                  右键单击项目/选择添加 Apache Derby 性质
                  没有错误.

                  Right Click on project / Select Add Apache Derby nature
                  No error.

                  右键单击项目/选择删除 Apache Derby 性质
                  没有错误.

                  Right Click on project / Select Remove Apache Derby nature
                  No error.

                  再次添加性质以测试其他菜单项.
                  右键单击项目/选择添加 Apache Derby 性质

                  Add the nature again to test the other menu items.
                  Right Click on project / Select Add Apache Derby nature

                  右键单击项目/选择启动 Derby Network Server
                  没有错误,服务器已启动.

                  Right Click on project / Select Start Derby Network Server
                  No error, server was started.

                  从控制台日志...Sun Jan 27 17:51:29 EST 2013:使用基本服务器安全策略安装的安全管理器.2013 年 1 月 27 日星期日 17:51:29 EST:Apache Derby 网络服务器 - 10.9.1.0 -(未版本控制的目录)已启动并准备好接受端口 1527 上的连接

                  From the console log ... Sun Jan 27 17:51:29 EST 2013 : Security manager installed using the Basic server security policy. Sun Jan 27 17:51:29 EST 2013 : Apache Derby Network Server - 10.9.1.0 - (Unversioned directory) started and ready to accept connections on port 1527

                  注意:不确定 Unversioned 目录消息的含义

                  Note: Not sure what the Unversioned directory message means

                  右键单击项目/选择停止 Derby 网络服务器
                  没有错误,服务器已停止.
                  2013 年 1 月 27 日星期日 17:53:32 EST:Apache Derby 网络服务器 - 10.9.1.0 -(未版本化目录)关闭

                  Right Click on project / Select Stop Derby Network Server
                  No error, server was stopped.
                  Sun Jan 27 17:53:32 EST 2013 : Apache Derby Network Server - 10.9.1.0 - (Unversioned directory) shutdown

                  启动服务器备份……
                  右键单击项目/选择 Start Derby Network Server

                  Start the server back up …
                  Right Click on project / Select Start Derby Network Server

                  创建一个 sql 文件夹.
                  创建一个 test.sql 文件

                  create a sql folder.
                  create a test.sql file

                  我的测试 sql 文件.

                  my test sql file.

                  connect 'jdbc:derby://localhost:1527/TESTDB;create=true;user=test;password=test;';  
                  -- drop User Indexes - ignore error if first time creating   
                  drop index UserNameIdx1;  
                  -- drop the table if it exists - ignore error if first time creating  
                  drop table TEST_USER;  
                  -- create the table  
                  create table TEST_USER (  
                      ID integer generated by default as identity,  
                      USER_NAME varchar(255) not null,  
                      FIRST_NAME varchar(255),  
                      LAST_NAME varchar(255),  
                      PASSWORD varchar(255),  
                      ENABLED integer,  
                      CREATED_STAMP timestamp,  
                      CREATED_TX_STAMP timestamp,  
                      LAST_UPDATED_STAMP timestamp,  
                      LAST_UPDATED_TX_STAMP timestamp,  
                      constraint TEST_USER_PK primary key (ID)  
                  );  
                  -- insert some data -- oops --- will mess with the ID generator, see the alter table restart line below.  
                  insert into TEST_USER values(0, 'admin','admin','admin','admin',1,'2013-01-18 12:00:00.000','2013-01-18 12:00:00.000','2013-01-18 12:00:00.000','2013-01-18 12:00:00.000');  
                  -- make the USER_NAME unique  
                  create unique index UserNameIdx1 on TEST_USER(USER_NAME);  
                  -- reset the generator  
                  alter table TEST_USER alter column ID restart with 1;  
                  

                  右键单击文件 > Apache Derby > 使用 'ij' 运行 SQL 脚本

                  Right click on file > Apache Derby > Run SQL Script using 'ij'

                  刷新项目工作区,现在应该有一个 TESTDB 文件夹.

                  Refesh the projects workspace, now there should be a TESTDB folder.

                  数据库已创建.行.

                  创建一个拉链.

                  右键项目>导出

                  点击插件开发 > 可部署的插件和片段.
                  目的地标签
                  存档文件
                  /derby_ui_plugin_1.1.4-fix.zip
                  选项标签
                  取消选择包插件作为单独的 JAR 档案

                  Click on Plug-in Development > Deplyable plug-ins and fragments.
                  Destination Tab
                  Archive file
                  /derby_ui_plugin_1.1.4-fix.zip
                  Options Tab
                  Unselect Package plugins as individual JAR archives

                  点击完成.

                  关闭/退出测试实例.
                  退出 Eclipse.

                  Close / Exit the test instance.
                  Exit Eclipse.

                  从上面提取您刚刚创建的 zip.

                  Extract the zip that you just created from above.

                  将其内容复制到插件目录到您的 Eclipse (Juno) 插件目录中.

                  Copy it's contents to the plugins directory to your Eclipse (Juno) plugins directory.

                  重启 Eclipse.创建一个新项目.

                  Restart Eclipse. Create a new project.

                  您应该能够将 Apache Derby (10.9.1) 特性安装到您的项目中.

                  You should be able to install an Apache Derby (10.9.1) nature onto your projects.

                  注意:如果您使用 Java 7 构建它,不要期望它适用于任何较小的 JVM 版本.

                  Note: if you built this with Java 7, don't expect it to work for any lesser JVM version.

                  这篇关于Apache Derby Eclipse 插件去哪儿了?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  Cannot load 64-bit SWT libraries on 32-bit JVM ( replacing SWT file )(无法在 32 位 JVM 上加载 64 位 SWT 库(替换 SWT 文件))
                  How can I specify the default JVM arguments for programs I run from eclipse?(如何为从 Eclipse 运行的程序指定默认 JVM 参数?)
                  Class JavaLaunchHelper is implemented in both ... libinstrument.dylib. One of the two will be used. Which one is undefined(JavaLaunchHelper 类在... libinstrument.dylib 中都实现了.将使用两者之一.哪个是未定义的) - IT屋-程序员软件开发技术分享
                  Running Eclipse on Windows 7 JRE and JDK not found(找不到在 Windows 7 JRE 和 JDK 上运行 Eclipse)
                  StringBuilder vs. .concat vs. quot;+quot; Operator relative performance different in eclipse than command line?(StringBuilder vs. .concat vs. “+eclipse中的操作员相对性能与命令行不同?)
                  Is there a maximum number you can set Xmx to when trying to increase jvm memory?(尝试增加 jvm 内存时,您可以将 Xmx 设置为最大数量吗?)

                2. <tfoot id='zwsK2'></tfoot>
                  <i id='zwsK2'><tr id='zwsK2'><dt id='zwsK2'><q id='zwsK2'><span id='zwsK2'><b id='zwsK2'><form id='zwsK2'><ins id='zwsK2'></ins><ul id='zwsK2'></ul><sub id='zwsK2'></sub></form><legend id='zwsK2'></legend><bdo id='zwsK2'><pre id='zwsK2'><center id='zwsK2'></center></pre></bdo></b><th id='zwsK2'></th></span></q></dt></tr></i><div id='zwsK2'><tfoot id='zwsK2'></tfoot><dl id='zwsK2'><fieldset id='zwsK2'></fieldset></dl></div>
                3. <legend id='zwsK2'><style id='zwsK2'><dir id='zwsK2'><q id='zwsK2'></q></dir></style></legend>

                      • <bdo id='zwsK2'></bdo><ul id='zwsK2'></ul>
                        1. <small id='zwsK2'></small><noframes id='zwsK2'>

                              <tbody id='zwsK2'></tbody>