Was trying to build hafen project downloaded from git in Eclipse, but always getting new errors after finding new & new solution to fix them, but tired of getting them all the time...
Can someone please describe how to properly build project in Eclipse or IDEA? (I'm .net coder and never used such IDE for java...)
-
shubla
- Posts: 13041
- Joined: Sun Nov 03, 2013 11:26 am
- Location: Finland
Re: How to compile client?
Maybe send us your build.xml ?
If you just say " I have problem "
Its quite hard to solve
If you just say " I have problem "
Its quite hard to solve

I'm not sure that I have a strong argument against sketch colors - Jorb, November 2019
http://i.imgur.com/CRrirds.png?1
Join the moderated unofficial discord for the game! https://discord.gg/2TAbGj2
Purus Pasta, The Best Client
-
GladiatoR
- Posts: 213
- Joined: Fri Aug 28, 2015 11:04 pm
Re: How to compile client?
I have used build.xml from Armber client (https://github.com/romovs/amber)
-
GladiatoR
- Posts: 213
- Joined: Fri Aug 28, 2015 11:04 pm
Re: How to compile client?
shubla wrote:If you just say " I have problem "
Its quite hard to solve
Atm errors in Eclipse:
Code: Select all
Exception in thread "main" java.lang.ExceptionInInitializerError
at haven.MainFrame.<clinit>(MainFrame.java:41)
Caused by: java.lang.RuntimeException: Delayed error in resource gfx/icons/bram (v-1), from local res source
at haven.Resource$Pool$Queued.get(Resource.java:338)
at haven.Resource$Pool$Queued.get(Resource.java:1)
at haven.Loading.waitforint(Loading.java:87)
at haven.Loading.waitfor(Loading.java:99)
at haven.Resource$Pool.loadwait(Resource.java:603)
at haven.Resource$Pool.loadwait(Resource.java:607)
at haven.Resource.loadtex(Resource.java:1651)
at haven.Config$1.<init>(Config.java:174)
at haven.Config.<clinit>(Config.java:173)
... 1 more
Caused by: haven.Resource$LoadException: Load error in resource gfx/icons/bram(v-1), from local res source
at haven.Resource$Pool.handle(Resource.java:395)
at haven.Resource$Pool.access$5(Resource.java:376)
at haven.Resource$Pool$Loader.run(Resource.java:524)
at java.lang.Thread.run(Unknown Source)
Caused by: java.io.FileNotFoundException: Could not find resource locally: gfx/icons/bram
at haven.Resource$JarSource.get(Resource.java:188)
at haven.Resource$Pool.handle(Resource.java:379)
... 3 more-
shubla
- Posts: 13041
- Joined: Sun Nov 03, 2013 11:26 am
- Location: Finland
Re: How to compile client?
GladiatoR wrote:shubla wrote:If you just say " I have problem "
Its quite hard to solve
Atm errors in Eclipse:Code: Select all
Exception in thread "main" java.lang.ExceptionInInitializerError
at haven.MainFrame.<clinit>(MainFrame.java:41)
Caused by: java.lang.RuntimeException: Delayed error in resource gfx/icons/bram (v-1), from local res source
at haven.Resource$Pool$Queued.get(Resource.java:338)
at haven.Resource$Pool$Queued.get(Resource.java:1)
at haven.Loading.waitforint(Loading.java:87)
at haven.Loading.waitfor(Loading.java:99)
at haven.Resource$Pool.loadwait(Resource.java:603)
at haven.Resource$Pool.loadwait(Resource.java:607)
at haven.Resource.loadtex(Resource.java:1651)
at haven.Config$1.<init>(Config.java:174)
at haven.Config.<clinit>(Config.java:173)
... 1 more
Caused by: haven.Resource$LoadException: Load error in resource gfx/icons/bram(v-1), from local res source
at haven.Resource$Pool.handle(Resource.java:395)
at haven.Resource$Pool.access$5(Resource.java:376)
at haven.Resource$Pool$Loader.run(Resource.java:524)
at java.lang.Thread.run(Unknown Source)
Caused by: java.io.FileNotFoundException: Could not find resource locally: gfx/icons/bram
at haven.Resource$JarSource.get(Resource.java:188)
at haven.Resource$Pool.handle(Resource.java:379)
... 3 more
For me it looks like youre not even running build.xml
![Trollface ¦]](./images/smilies/troll.gif)

I'm not sure that I have a strong argument against sketch colors - Jorb, November 2019
http://i.imgur.com/CRrirds.png?1
Join the moderated unofficial discord for the game! https://discord.gg/2TAbGj2
Purus Pasta, The Best Client
-
GladiatoR
- Posts: 213
- Joined: Fri Aug 28, 2015 11:04 pm
Re: How to compile client?
I have added existing project to eclipse, then right clicked on build.xml and used Build As -> 1 Ant Build. After that it build:
But when Im trying to run it it's says:

Then I trying to debug it and saw this error that I posted before.
Code: Select all
Buildfile: C:\Workspace\hafen\build.xml
build-env:
hafen-client:
buildinfo:
lib-classes:
jar:
res-jar:
jars:
deftgt:
BUILD SUCCESSFULBut when Im trying to run it it's says:

Then I trying to debug it and saw this error that I posted before.
-
borka
- Posts: 9965
- Joined: Thu Feb 03, 2011 7:47 pm
- Location: World of Sprucecap
Re: How to compile client?
Caused by: java.io.FileNotFoundException: Could not find resource locally: gfx/icons/bram
Do you have
Code: Select all
amber-res.jar-> amber-res.jar\res\gfx\icons\bram.res
in amber build.xml you'll find amber-res.jar "build instructions" from line 68 on
a fast try to fix would be to grab amber-res.jar from precompiled build ...
-
pedorlee
- Posts: 1321
- Joined: Sat Feb 04, 2012 10:36 pm
Re: How to compile client?
Why eclipse?
I hate it.
I hate it.
-
lachlaan
- Posts: 488
- Joined: Sat Apr 06, 2013 9:32 pm
Re: How to compile client?
Apache ant is pretty straightforward to use as well. Either way both mediums should easily point to what's wrong. Just practice reading into the error codes and what they might mean. Didn't quite get if you're trying to compile the default client with the Amber client's build.xml and if so why? o.o Or at least why without checking for discrepancies first.
-
stya
- Posts: 1037
- Joined: Wed May 21, 2014 3:13 pm
Re: How to compile client?
GladiatoR wrote:Was trying to build hafen project downloaded from git in Eclipse, but always getting new errors after finding new & new solution to fix them, but tired of getting them all the time...
Can someone please describe how to properly build project in Eclipse or IDEA? (I'm .net coder and never used such IDE for java...)
For IDEA : download, run the ant build
Ok I had an encoding error on my machine, something about UTF-8 not being recognized/used but it was easy to fix and it might be a windows specific error (was too lazy to open my linux VM, mea culpa)
