开发者

Problems getting SvnKit to work on 64 bit Windows 7

开发者 https://www.devze.com 2023-01-23 10:00 出处:网络
I\'m having a problem getting SvnKit working on 64 bit Windows 7. I open a shell and type jsvn and i get...

I'm having a problem getting SvnKit working on 64 bit Windows 7. I open a shell and type jsvn and i get...

The system cannot find the path specified.

It doesn't say what path. Its not the launcher script as I've checked all the paths. It must be within one of the svnkit jars or a dependent jar.

This is the 1.3.4.6888 standalone version. My installed JRE is 1.6.0_22.

Has anyone seen this problem on 64 bit Windows 7?

Edited to show launcher script:

It seems that java isn't even getting called from the jsvn.bat file.

Here is the contents of that file...

set DEFAULT_SVNKIT_HOME=%~dp0

if "%SVNKIT_HOME%"=="" set SVNKIT_HOME=%DEFAULT_SVNK开发者_开发知识库IT_HOME%

set SVNKIT_CLASSPATH="%SVNKIT_HOME%svnkit.jar";"%SVNKIT_HOME%svnkit-cli.jar";"%SVNKIT_HOME%trilead.jar";"%SVNKIT_HOME%jna.jar";"%SVNKIT_HOME%sqljet.1.0.3.jar";"%SVNKIT_HOME%antlr-runtime-3.1.3.jar"
set SVNKIT_MAINCLASS=org.tmatesoft.svn.cli.svn.SVN
set SVNKIT_OPTIONS=-Djava.util.logging.config.file="%SVNKIT_HOME%logging.properties"

"%JAVA_HOME%\bin\java" %SVNKIT_OPTIONS% -cp %SVNKIT_CLASSPATH% %SVNKIT_MAINCLASS% %*

So somewhere a bad path exists and the script never invokes the java command. If I turn on echo and observe the console output and then enter the java command by hand it works.

I'm stumped.


I got this working finally. The problem was with the JAVA_HOME variable being set incorrectly for the shell session. I have several shell environments for different tasks and the wrong one was being used. Yup. Human error!

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号