Netbeans RapidSVN和存储库 [英] Netbeans RapidSVN and respositories

查看:93
本文介绍了Netbeans RapidSVN和存储库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个包含所有目录结构的Netbeans项目,依此类推.我将Netbeans项目导入了一个在线存储库.以上都是使用Windows pc完成的.

I had a Netbeans project with all the directory structure and so forth. I imported my Netbeans project to an online repository. The above was all done with a windows pc.

现在,使用Ubuntu和RapidSVN(GUI svn客户端),我将存储库签出到NetBeansProjects目录中.

Now, with Ubuntu and RapidSVN (a GUI svn client) I checked out my repository to the NetBeansProjects Directory.

加载NetBeans时,出现未找到类的异常提示:

When I load NetBeans I get a class not found exception saying:

A java.lang.NoClassDefFoundError exception has occurred.
However, the system should continue working without further problems.
Click Show Details for the stack trace.

以下是详细信息:

java.lang.ClassNotFoundException: org.tigris.subversion.javahl.SVNClientInterface
    at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
        ...
        ...

因此,我现在可以查看我的所有文件并进行编辑.但是,每当我进行更改然后测试并运行程序时,它似乎总是运行已加载到存储库的版本.

So, I now can look at all my files and edit them. However, whenever I make changes and then test and run my program it appears to always run the version that was loaded to the repository.

同样,它似乎并没有保存我的任何更改.当我关闭并打开Netbeans时,刚从存储库编辑的项目不会出现在左侧的项目面板中.

In the same vein, it appears that it does not save any of my changes. When I close and open Netbeans the project that I was just editing from the repository does not appear in the projects panel off to the left.

  1. 如何让Netbeans将其保留为项目并保存更改?
  2. 我使用RapidSVN错误吗?
  3. 我使用我的存储库有误吗?

如果您有其他建议或需要更多详细信息,请告诉我.

Let me know if you have any other suggestions or need any more details.

推荐答案

您使用什么版本的NetBeans和RapidSvn?服务器上正在运行什么版本的Subversion? NetBeans 7支持SVN 1.7,而RapidSVN并非最新.

What Version of NetBeans and RapidSvn do you use? What version of Subversion is running on the server? NetBeans 7 supports SVN 1.7, while RapidSVN isn't up to date.

进行更改后,请执行 commit ,以便将当前文件上传到SVN中.

After you have made changes do a commit so the current files get uploaded into the SVN.

您可以尝试以下操作:

  • 使用NetBeans( Team -> Subversion -> Checkout )来结帐
  • 使用NB进行 commit ,如果这样做不起作用,请进行 upddate (也适用于NB)
  • 您有权编写目录吗?如果您以 sudo 的身份运行RapidSVN,有什么区别?
  • 在NB中检查以下设置: Tools -> Options -> Miscellaneous -> Versioning -> Subversion :推荐的客户端(您在这里拥有什么?如果尚未设置:请尝试使用 SvnKit )
  • Checkout your with NetBeans (Team -> Subversion -> Checkout)
  • Make a commit using NB, if this doesn't work make an upddate (NB too)
  • Do you have rights to write the directory? Any difference if you ran RapidSVN as sudo?
  • Check these settings in NB: Tools -> Options -> Miscellaneous -> Versioning -> Subversion: Preffered Client (What do you have here? If not set yet: try with SvnKit)

如果全部失败,请查看以下(免费)备用客户端:

If all fails, have a look at following (free) alternate clients:

  • SmartSVN (Linux / Win)
  • TortoiseSVN (Win only)
  • eSvn (Linux / Win)

请参阅: NetBeans常见问题解答-SVN客户端

这篇关于Netbeans RapidSVN和存储库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆