RomRaider Logo

RomRaider

Open Source ECU Tools
 FAQ •  Register •  Login 

RomRaider

Documentation

Community

Developers

It is currently Tue Dec 23, 2025 2:15 pm

All times are UTC - 5 hours [ DST ]





Post new topic Reply to topic  [ 15 posts ] 
Author Message
 Post subject: Compile error with build.xml
PostPosted: Sat Jun 30, 2012 1:00 pm 
Offline
Newbie

Joined: Fri Feb 22, 2008 6:55 pm
Posts: 25
I followed the instructions on the 'Getting Started' page, and with a few tweaks managed to get the workspace loaded into Eclipse (If anyone reads this later, make sure you uninstall ALL previous versions of JRE and JDK and follow the EGIT install instructions here). However when running the 2 ANT build on build.xml I get a failure with the following log:

Code:
Buildfile: C:\Users\Kanos\RomRaider Development\build.xml
-init:
help:
     [echo] help        [Print this message                     ]
     [echo] clean       [Clean generated files                  ]
     [echo] prepare     [Create directories for output files    ]
     [echo]             [  and generate files from templates    ]
     [echo] build       [Compile the Java source files          ]
     [echo] rebuild     [Call the clean and build targets       ]
     [echo] javadoc     [Generate the API documentation of the  ]
     [echo]             [Java source code                       ]
     [echo] dist        [Create the distribution packages       ]
     [echo] all         [Complete rebuild and packaging         ]
-init:
-init:
clean:
   [delete] Deleting directory C:\Users\Kanos\RomRaider Development\build
-init:
prepare:
     [copy] Copying 1 file to C:\Users\Kanos\RomRaider Development\src\com\romraider
-init:
clean:
prepare:
     [copy] Copying 1 file to C:\Users\Kanos\RomRaider Development\src\com\romraider
build:
    [mkdir] Created dir: C:\Users\Kanos\RomRaider Development\build\classes
    [javac] C:\Users\Kanos\RomRaider Development\build.xml:330: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
    [javac] Compiling 359 source files to C:\Users\Kanos\RomRaider Development\build\classes
    [javac]           WARNING
    [javac] The -source switch defaults to 1.7 in JDK 1.7.
    [javac] If you specify -target 1.5 you now must also specify -source 1.5.
    [javac] Ant will implicitly add -source 1.5 for you.  Please change your build file.
    [javac] warning: [options] bootstrap class path not set in conjunction with -source 1.5
    [javac] Note: Some input files use unchecked or unsafe operations.
    [javac] Note: Recompile with -Xlint:unchecked for details.
    [javac] 1 warning
    [mkdir] Created dir: C:\Users\Kanos\RomRaider Development\build\windows\lib
      [jar] Building jar: C:\Users\Kanos\RomRaider Development\build\windows\lib\RomRaider.jar
    [mkdir] Created dir: C:\Users\Kanos\RomRaider Development\build\linux\lib
      [jar] Building jar: C:\Users\Kanos\RomRaider Development\build\linux\lib\RomRaider.jar
rebuild:
-init:
prepare:
     [copy] Copying 1 file to C:\Users\Kanos\RomRaider Development\src\com\romraider
build:
    [javac] C:\Users\Kanos\RomRaider Development\build.xml:330: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
    [javac] Compiling 1 source file to C:\Users\Kanos\RomRaider Development\build\classes
    [javac]           WARNING
    [javac] The -source switch defaults to 1.7 in JDK 1.7.
    [javac] If you specify -target 1.5 you now must also specify -source 1.5.
    [javac] Ant will implicitly add -source 1.5 for you.  Please change your build file.
    [javac] warning: [options] bootstrap class path not set in conjunction with -source 1.5
    [javac] 1 warning

BUILD FAILED
C:\Users\Kanos\RomRaider Development\build.xml:185: The following error occurred while executing this line:
C:\Users\Kanos\RomRaider Development\build.xml:310: Property 'windows.jar.classpath' already set!

Total time: 19 seconds


I'm running Windows 7 x64 with 32 bit versions of JDK 1.7 and Eclipse 4.2


Top
 Profile  
 
 Post subject: Re: Compile error with build.xml
PostPosted: Sat Jun 30, 2012 4:22 pm 
Offline
RomRaider Developer

Joined: Wed May 20, 2009 9:49 pm
Posts: 7314
Location: Canada eh!
If you followed the instructions in the Getting Started guide then you would have installed version 1.6 JDK (not 1.7) and Eclipse for Java Developers (not Classics 4.2).
Also, you would not have had to install EGit after the fact as it comes with Eclipse JDT and the build should function fine on the first try with the tools in the guide. The versions you loaded have not yet been tested as they've just been released.

EDIT:
I followed the guide and installed the latest versions of each application indicated and the build works perfectly fine. I suggest you start over...


Top
 Profile  
 
 Post subject: Re: Compile error with build.xml
PostPosted: Tue Jul 03, 2012 11:57 am 
Offline
Newbie

Joined: Tue Aug 18, 2009 3:11 pm
Posts: 45
I'm getting the same problem using the build.xml with Eclipse for Java Developers and JDK 1.6.0 Build 33:

Code:
Buildfile: C:\Users\Ben\git\RomRaider\build.xml
-init:
help:
     [echo] help        [Print this message                     ]
     [echo] clean       [Clean generated files                  ]
     [echo] prepare     [Create directories for output files    ]
     [echo]             [  and generate files from templates    ]
     [echo] build       [Compile the Java source files          ]
     [echo] rebuild     [Call the clean and build targets       ]
     [echo] javadoc     [Generate the API documentation of the  ]
     [echo]             [Java source code                       ]
     [echo] dist        [Create the distribution packages       ]
     [echo] all         [Complete rebuild and packaging         ]
-init:
-init:
clean:
   [delete] Deleting directory C:\Users\Ben\git\RomRaider\build
-init:
prepare:
     [copy] Copying 1 file to C:\Users\Ben\git\RomRaider\src\com\romraider
-init:
clean:
prepare:
     [copy] Copying 1 file to C:\Users\Ben\git\RomRaider\src\com\romraider
build:
    [mkdir] Created dir: C:\Users\Ben\git\RomRaider\build\classes
    [javac] C:\Users\Ben\git\RomRaider\build.xml:330: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
    [javac] Compiling 359 source files to C:\Users\Ben\git\RomRaider\build\classes
    [javac] C:\Users\Ben\git\RomRaider\src\com\romraider\editor\ecu\ECUEditor.java:44: warning: com.sun.org.apache.xerces.internal.parsers.DOMParser is Sun proprietary API and may be removed in a future release
    [javac] import com.sun.org.apache.xerces.internal.parsers.DOMParser;
    [javac]                                                  ^
    [javac] C:\Users\Ben\git\RomRaider\src\com\romraider\util\SettingsManagerImpl.java:27: warning: com.sun.org.apache.xerces.internal.parsers.DOMParser is Sun proprietary API and may be removed in a future release
    [javac] import com.sun.org.apache.xerces.internal.parsers.DOMParser;
    [javac]                                                  ^
    [javac] C:\Users\Ben\git\RomRaider\src\com\romraider\xml\DOMSettingsBuilder.java:24: warning: com.sun.org.apache.xml.internal.serialize.OutputFormat is Sun proprietary API and may be removed in a future release
    [javac] import com.sun.org.apache.xml.internal.serialize.OutputFormat;
    [javac]                                                 ^
    [javac] C:\Users\Ben\git\RomRaider\src\com\romraider\xml\DOMSettingsBuilder.java:25: warning: com.sun.org.apache.xml.internal.serialize.XMLSerializer is Sun proprietary API and may be removed in a future release
    [javac] import com.sun.org.apache.xml.internal.serialize.XMLSerializer;
    [javac]                                                 ^
    [javac] C:\Users\Ben\git\RomRaider\src\com\romraider\editor\ecu\ECUEditor.java:397: warning: com.sun.org.apache.xerces.internal.parsers.DOMParser is Sun proprietary API and may be removed in a future release
    [javac]             DOMParser parser = new DOMParser();
    [javac]             ^
    [javac] C:\Users\Ben\git\RomRaider\src\com\romraider\editor\ecu\ECUEditor.java:397: warning: com.sun.org.apache.xerces.internal.parsers.DOMParser is Sun proprietary API and may be removed in a future release
    [javac]             DOMParser parser = new DOMParser();
    [javac]                                    ^
    [javac] C:\Users\Ben\git\RomRaider\src\com\romraider\util\SettingsManagerImpl.java:44: warning: com.sun.org.apache.xerces.internal.parsers.DOMParser is Sun proprietary API and may be removed in a future release
    [javac]             DOMParser parser = new DOMParser();
    [javac]             ^
    [javac] C:\Users\Ben\git\RomRaider\src\com\romraider\util\SettingsManagerImpl.java:44: warning: com.sun.org.apache.xerces.internal.parsers.DOMParser is Sun proprietary API and may be removed in a future release
    [javac]             DOMParser parser = new DOMParser();
    [javac]                                    ^
    [javac] C:\Users\Ben\git\RomRaider\src\com\romraider\xml\DOMSettingsBuilder.java:51: warning: com.sun.org.apache.xml.internal.serialize.OutputFormat is Sun proprietary API and may be removed in a future release
    [javac]         OutputFormat of = new OutputFormat("XML", "ISO-8859-1", true);
    [javac]         ^
    [javac] C:\Users\Ben\git\RomRaider\src\com\romraider\xml\DOMSettingsBuilder.java:51: warning: com.sun.org.apache.xml.internal.serialize.OutputFormat is Sun proprietary API and may be removed in a future release
    [javac]         OutputFormat of = new OutputFormat("XML", "ISO-8859-1", true);
    [javac]                               ^
    [javac] C:\Users\Ben\git\RomRaider\src\com\romraider\xml\DOMSettingsBuilder.java:59: warning: com.sun.org.apache.xml.internal.serialize.XMLSerializer is Sun proprietary API and may be removed in a future release
    [javac]             XMLSerializer serializer = new XMLSerializer(fos, of);
    [javac]             ^
    [javac] C:\Users\Ben\git\RomRaider\src\com\romraider\xml\DOMSettingsBuilder.java:59: warning: com.sun.org.apache.xml.internal.serialize.XMLSerializer is Sun proprietary API and may be removed in a future release
    [javac]             XMLSerializer serializer = new XMLSerializer(fos, of);
    [javac]                                            ^
    [javac] Note: Some input files use unchecked or unsafe operations.
    [javac] Note: Recompile with -Xlint:unchecked for details.
    [javac] 12 warnings
    [mkdir] Created dir: C:\Users\Ben\git\RomRaider\build\windows\lib
      [jar] Building jar: C:\Users\Ben\git\RomRaider\build\windows\lib\RomRaider.jar
    [mkdir] Created dir: C:\Users\Ben\git\RomRaider\build\linux\lib
      [jar] Building jar: C:\Users\Ben\git\RomRaider\build\linux\lib\RomRaider.jar
rebuild:
-init:
prepare:
     [copy] Copying 1 file to C:\Users\Ben\git\RomRaider\src\com\romraider
build:
    [javac] C:\Users\Ben\git\RomRaider\build.xml:330: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
    [javac] Compiling 1 source file to C:\Users\Ben\git\RomRaider\build\classes

BUILD FAILED
C:\Users\Ben\git\RomRaider\build.xml:185: The following error occurred while executing this line:
C:\Users\Ben\git\RomRaider\build.xml:310: Property 'windows.jar.classpath' already set!

Total time: 8 seconds


Top
 Profile  
 
 Post subject: Re: Compile error with build.xml
PostPosted: Tue Jul 03, 2012 6:43 pm 
Offline
Experienced
User avatar

Joined: Thu Apr 19, 2012 3:44 am
Posts: 385
Blind stab in dark:

ant clean

first? That only appears once in the build script and doesn't appear on the net. It's like you've got a partial build and it's taking another stab.

110% guesses, though, so likely worth what they cost you :-)

Fred.

_________________
The type of scooby that I most enjoy!


Top
 Profile  
 
 Post subject: Re: Compile error with build.xml
PostPosted: Wed Jul 04, 2012 7:18 am 
Offline
Newbie

Joined: Tue Aug 18, 2009 3:11 pm
Posts: 45
Thanks i'll give that a go this evening and post back.

Why is this happening on my fresh JDK/ECLIPSE/EGIT setup but it's working fine on yours, I followed the "Getting Started" guide word for word (although I've not got no experience with ANT)?

I'm hoping to add some interpolation tools to the map editor....


Top
 Profile  
 
 Post subject: Re: Compile error with build.xml
PostPosted: Wed Jul 04, 2012 9:45 am 
Offline
RomRaider Developer

Joined: Wed May 20, 2009 9:49 pm
Posts: 7314
Location: Canada eh!
I have not clue why this is happening now. I've tried the last two versions of Eclipse JDT on Linux, Win XP and Win 7 64bit and with JDK 1.6 & 1.7 and no combination has presented this problem to me.

I'll go wipe my Vista 64 bit system (with UAC on) and try the Getting Started steps to see what happens.


Top
 Profile  
 
 Post subject: Re: Compile error with build.xml
PostPosted: Wed Jul 04, 2012 10:09 am 
Offline
Newbie

Joined: Tue Aug 18, 2009 3:11 pm
Posts: 45
dschultz wrote:
I have not clue why this is happening now. I've tried the last two versions of Eclipse JDT on Linux, Win XP and Win 7 64bit and with JDK 1.6 & 1.7 and no combination has presented this problem to me.

I'll go wipe my Vista 64 bit system (with UAC on) and try the Getting Started steps to see what happens.


Okay thanks, just so you know I'm running a VM with a fresh installation of Windows 7 32bit (UAC off)....


Top
 Profile  
 
 Post subject: Re: Compile error with build.xml
PostPosted: Wed Jul 04, 2012 10:53 am 
Offline
RomRaider Developer

Joined: Wed May 20, 2009 9:49 pm
Posts: 7314
Location: Canada eh!
So I tried both Eclipse Indigo with Java 1.6_33 and Eclipse Juno with Java 1.7_05 on my Vista x64 system (using x86 versions of Eclipse and Java of course) and I could not reproduce the error you guys are seeing.

Can you try this:
Right-click on build.xml
Run As -> 2 ant build
select the Main tab
enter the option -v in the arguments field
Click Run

Post up the detailed log from the console window please.


Top
 Profile  
 
 Post subject: Re: Compile error with build.xml
PostPosted: Wed Jul 04, 2012 1:04 pm 
Offline
Newbie

Joined: Tue Aug 18, 2009 3:11 pm
Posts: 45
dschultz wrote:
So I tried both Eclipse Indigo with Java 1.6_33 and Eclipse Juno with Java 1.7_05 on my Vista x64 system (using x86 versions of Eclipse and Java of course) and I could not reproduce the error you guys are seeing.

Can you try this:
Right-click on build.xml
Run As -> 2 ant build
select the Main tab
enter the option -v in the arguments field
Click Run

Post up the detailed log from the console window please.


I've attached the verbose log, and I'll try your other suggestion now...

Cheers

Ben


You do not have the required permissions to view the files attached to this post.


Top
 Profile  
 
 Post subject: Re: Compile error with build.xml
PostPosted: Wed Jul 04, 2012 1:18 pm 
Offline
Newbie

Joined: Tue Aug 18, 2009 3:11 pm
Posts: 45
Right I've figured it out, on this step:

* First complete a build using ant. Right-click on build.xml and select Run As → 2 Ant build (this may appear as item 3 in the Java EE version) then select all in the targets tab.

I was selecting all the targets to execute when it should have just been the one target 'all'....

Embarrassed to say the least :oops:, although it may be worth clarifying it in the documentation...


Top
 Profile  
 
 Post subject: Re: Compile error with build.xml
PostPosted: Wed Jul 04, 2012 6:10 pm 
Offline
RomRaider Developer

Joined: Wed May 20, 2009 9:49 pm
Posts: 7314
Location: Canada eh!
Good you found it.
I'll fix the guide.


Top
 Profile  
 
 Post subject: Re: Compile error with build.xml
PostPosted: Wed Jul 04, 2012 6:54 pm 
Offline
RomRaider Developer

Joined: Wed May 20, 2009 9:49 pm
Posts: 7314
Location: Canada eh!
BTW: I noticed your build log was cut off at the beginning. Either you did that on purpose or your Eclipse setting for the console window is limited to a specific number of lines to view.
If it is limited you can change/remove the limit in Preferences -> Run/Debug -> Console and change the 'Limit console output' setting. I un-check this option.


Top
 Profile  
 
 Post subject: Re: Compile error with build.xml
PostPosted: Wed Jul 04, 2012 8:27 pm 
Offline
Experienced
User avatar

Joined: Thu Apr 19, 2012 3:44 am
Posts: 385
Dale, you should add a CLI-only options to the guide. IMO asking them to use menus to do such things is just asking for trouble.

I have one app that I configured that you need Java and Maven for. Once you have those correctly installed, and the repo git cloned, you simply open a console, cmd.exe will do, and type "mvn" and that's it. Not only does it build it, repeatably, every time, it also runs it afterward. Just add arguments to remove the default behaviour and do other things, if you wish.

Eclipse, though good, is a heavy-weight dev tool. A casual hacker who just wants to build the source and fiddle with a few lines in notepad++ would be better off with just ant IMO.

_________________
The type of scooby that I most enjoy!


Top
 Profile  
 
 Post subject: Re: Compile error with build.xml
PostPosted: Wed Jul 04, 2012 11:58 pm 
Offline
RomRaider Developer

Joined: Wed May 20, 2009 9:49 pm
Posts: 7314
Location: Canada eh!
So you are asking for a command line version of tools...
Install JDK
Install Git
Install Ant
Install Notepad++ (Windows needs an editor that can handle <lf> line terminations)
clone repo and run script to launch: ant -all


Top
 Profile  
 
 Post subject: Re: Compile error with build.xml
PostPosted: Thu Jul 05, 2012 5:45 am 
Offline
Experienced
User avatar

Joined: Thu Apr 19, 2012 3:44 am
Posts: 385
Right, but in the guide :-)

_________________
The type of scooby that I most enjoy!


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 15 posts ] 

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Style based on FI Subsilver by phpBBservice.nl