Compiling FileBot

Any questions? Need some help?
Post Reply
snake98
Posts: 10
Joined: 19 Jun 2014, 20:54

Compiling FileBot

Post by snake98 »

I'm one of those running Windows 7. I don't mind compiling my own file bot, but I've ran into problems.

Code: Select all

1. I download the https://github.com/filebot/filebot/archive/master.zip
2. Installed ant from https://chocolatey.org/packages/ant
3. Downloaded java 9 development.
4. run ant and then get this: 

PS C:\temp\Filebot> ant
Buildfile: C:\temp\Filebot\build.xml

init:
  [taskdef] Could not load definitions from resource net/filebot/ant/spk/antlib.xml. It could not be found.
  [taskdef] Could not load definitions from resource org/vafer/jdeb/ant/antlib.xml. It could not be found.

revision:

BUILD FAILED
C:\temp\Filebot\build.xml:829: exec returned: 128

Total time: 1 second
PS C:\temp\Filebot>

I realized I'm probably missing some dependency like ivy.  but I couldn't find a list
User avatar
rednoah
The Source
Posts: 22987
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Compiling FileBot

Post by rednoah »

Sorry, I don't do code level support. Applying for access to my private builds would make things easier for you and me. ;)
:idea: Please read the FAQ and How to Request Help.
kim
Power User
Posts: 1251
Joined: 15 May 2014, 16:17

Re: Compiling FileBot

Post by kim »

yes it's not that easy :(
but a hint is
build.xml:829
=
open "build.xml"
look at line "829"
https://github.com/filebot/filebot/blob ... d.xml#L829

(*this is general info)
this will give you more info on what the problem is...
maybe it's not a needed part? then try comment it out

when all else fail... GOOGLE it ;)

btw: check if JDK9 is used ;)
echo %JAVA_HOME%
Wosser1
Posts: 1
Joined: 12 Mar 2018, 17:41

Re: Compiling FileBot

Post by Wosser1 »

I was trying to build a version as well.

Seeing it fails at:

Code: Select all

revision:

BUILD FAILED
You correctly assumed it has to do with the IvyDE dependencies. The ANT script expects to find the additional jars in:

Code: Select all

filebot\lib\ivy
Look at build.xml:735 for the list. I had to install the Apache IvyDE plugin from the eclipse marktplace and then resolve the dependencies using the ivy.xml file.

The rest of the build completes successfully and I am able to use the resulting jar directly.

However, as stated here and here, running filebot with the exe's provided in

Code: Select all

filebot\installer\msi
(like a regular deployment would), results in a Java error saying it cannot run the jar file with JRE1.8.0 (because it was compiled with JDK9.0.4), but it also needs JRE1.8.0 to run (when only having version 9 on the system).
devster
Posts: 417
Joined: 06 Jun 2017, 22:56

Re: Compiling FileBot

Post by devster »

Wait, does this mean that it's actually possible to have access to the private builds?
Reading the license I'm allowed to build FileBot packages as long as it's not for MacOS or Windows, maybe not publish them.
I'm definitely not sure about the instructions.

I've also noticed that recently there's been some major restructuring in the way rednoah builds the thing and it requires a lot more configuration than before, especially since I don't use Eclipse and I wanted to automate it from Jenkins or similar.
I only work in black and sometimes very, very dark grey. (Batman)
Post Reply