Welcome, Guest. Please login or register.

Login with username, password and session length

 
Advanced search

11991 Posts in 1587 Topics- by 3507 Members - Latest Member: PienueDut

26. May 2012, 01:22:26 pm
Xith3D CommunityGeneral CategoryGeneral Discussion (Moderators: Marvin Fröhlich, 'n ddrylliog)Svn problem
Pages: [1]
Print
Author Topic: Svn problem  (Read 1238 times)
elijah
Enjoying the stay
*
Offline Offline

Posts: 72


View Profile
« on: 05. January 2010, 01:17:49 pm »

Hi everybody,

I'm having this problem when I tried to compile the B1779. I'm receiving this error
Code:

D:\DEVELOPMENT_LIBRARY\DEVELOPMENT_2009_XITH_HISTORY_WORKSPACE\XITH_06_DEC_2009_B1779\xith-tk\build.xml:76:
java.lang.NullPointerException
        at org.tigris.subversion.svnant.commands.WcVersion.getWorkingCopySumary(Unknown Source)
        at org.tigris.subversion.svnant.commands.WcVersion.execute(Unknown Source)
        at org.tigris.subversion.svnant.commands.SvnCommand.executeCommand(Unknown Source)
        at org.tigris.subversion.svnant.SvnTask.execute(Unknown Source)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
        at sun.reflect.GeneratedMethodAccessor45.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
        at org.apache.tools.ant.Task.perform(Task.java:348)
        at org.apache.tools.ant.Target.execute(Target.java:357)
        at org.apache.tools.ant.Target.performTasks(Target.java:385)
        at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
        at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
        at org.apache.tools.ant.module.bridge.impl.BridgeImpl.run(BridgeImpl.java:278)
        at org.apache.tools.ant.module.run.TargetExecutor.run(TargetExecutor.java:498)
        at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:151)

at line 76 I have this

        <svn javahl="false" svnkit="true"><wcversion path="${project.xith3d}" prefix="svn."/></svn>

When I google the recommendation is to to change
       
        javahl="false" svnkit="true"

As you can see its already being set. But I still get the same problem.

How do I solve this probleam as I'm not good in ant script. I'm using netbean 6.8 and netbean 6.7. both produced the same result.

Thanks in advanced
Logged
horati
Global Moderator
Getting respectable
*****
Offline Offline

Posts: 393


View Profile
« Reply #1 on: 05. January 2010, 01:28:43 pm »

Have you installed svnkit?  I do not (and will never again) use NetBeans; however, I know that svnkit is a downloadable installation for Eclipse.

Yeah, javaHL is a royal pain so it is best turned off.
Logged

Kevin
"It may not seem like a big deal, but ignorance of character encoding issues leads to insidious code rot akin to y2k."
http://stackoverflow.com/users/3474/sylvarking
elijah
Enjoying the stay
*
Offline Offline

Posts: 72


View Profile
« Reply #2 on: 06. January 2010, 05:05:15 am »

Thanks I will try using eclipse. I will net you know how i went later in the week.
Logged
horati
Global Moderator
Getting respectable
*****
Offline Offline

Posts: 393


View Profile
« Reply #3 on: 06. January 2010, 12:45:53 pm »

I wasn't suggesting that you switch to Eclipse if you prefer NetBeans.  I was just saying that I use Eclipse and refuse to use NetBeans because of several bad experiences at client projects.

If you do switch to Eclipse, use the Subclipse and SVNkit plugins.  Using Subclipse to browse the Xith repository, it will detect that Marvin checked in an Eclipse project.  Because it detects the repository contains an Eclipse project, it will check it out as a new one in your workspace and everything will work.  The only thing you need to change is the Project -> Project Properties -> Java Build Path -> Libraries -> <lib name> -> Natives Location attribute.  Marvin runs on Linux so the project he checked in uses Linux native libraries.

Of course, no changes needed if you run Linux.  There is a bug in the Mac OS implementation of SWT that drives Eclipse and prevents launching Xith applications directly from Eclipse.  On Mac OS, you have to launch from the command line.
Logged

Kevin
"It may not seem like a big deal, but ignorance of character encoding issues leads to insidious code rot akin to y2k."
http://stackoverflow.com/users/3474/sylvarking
Marvin Fröhlich
Xith Lord
Administrator
Guru
*****
Offline Offline

Posts: 4381


May the 4th, be with you...


View Profile
« Reply #4 on: 06. January 2010, 06:43:17 pm »

On windows and recent Linux distros JavaHL should work. It is recommended and I didn't have problems when I last tried it. So I suggest to give JavaHL a try. If it doesn't work, you should be fine with SVNKit.

Marvin
Logged
elijah
Enjoying the stay
*
Offline Offline

Posts: 72


View Profile
« Reply #5 on: 08. January 2010, 06:40:45 pm »

I have the same experience as you have with netbean. I only used netbean to run and compile the examples. It's a shame for me to ask this question How do you compile the xith-tk and xith3d in eclipse  Huh Huh In netbean its so easy.

Have anybody take notice that the installation link for netbean is missing. Its a good write up.
Logged
elijah
Enjoying the stay
*
Offline Offline

Posts: 72


View Profile
« Reply #6 on: 09. January 2010, 07:30:58 am »

I have found the problem. Here are the steps to compile xith3d in eclipse

1. INSTALL THE SVNKIT FOR ECLIPSE  http://svnkit.com/download.php (    http://eclipse.svnkit.com/1.3.x/ )
2. DOWNLOAD THE STANDALONE VERSION OF THE SVNKIT http://svnkit.com/download.php
3. DOWNLOAD JDK
4. SET path environment to the location of the JDK bin directory C:\GUI_IDE\JDK_6_17\bin;
5. SET THE JAVA_HOME ENVIRONMENT TO C:\GUI_IDE\JDK_6_17\bin
6. Restart Computer
7. AT DOS-PROMPT type javadoc.exe to make sure the path is correct.
8. Eclipse->Window->Preference->Ant->Runtime->ClassPath->GlobalEntries->Add Folder ( Add the folder where the SVNKIT IS INSTALLED ).
    If you running the ant script and found it returns null pointer or no javahl or svnkit not found. This problems lies on step 8.
9. Eclipse->Window->Preference->Ant->Runtime->ClassPath->GlobalEntries->Add External Jar ( Add the path where the tool.jar is located from step 3 ).
    If running the ant script and found no JAVA_HOME or Path not found is because it has not found the tools.jar file.
10. Restart Eclipse
11. At the package Explorer -> xith-tk ->  Right Click the Mouse -> Run As -> Ant Build No 2

Hope this is helpful for every body
Logged
Marvin Fröhlich
Xith Lord
Administrator
Guru
*****
Offline Offline

Posts: 4381


May the 4th, be with you...


View Profile
« Reply #7 on: 09. January 2010, 04:09:29 pm »

It is a lot easier using eclipse. Follow the instructions at the bottom of this page to install the Eclipse SVN plugin "Subclipse" and to checkout the two projects. Eclipse will automatically compile the projects. You don't need to do anything further.

Marvin
Logged
Pages: [1]
Print
Jump to:  

Theme orange-lt created by panic