#Trying to build an old Java program using ant with 0 experience, almost there but need help.

18 messages · Page 1 of 1 (latest)

topaz vortex
#

So I am trying to build a program called "srcdemo2" on github for linux, it's an old program that still has downloadable launchers available for windows but it's apparently compatible with linux. I've done a lot of work to get the dependencies in place, make sure I have the correct (older) version of Java in order to build some of those, sorted through errors in ant, but now I've hit a dead end. I run ant, either "package-linux" or any of the options I'm given, it builds most of the program and then it's giving me these errors:

[compile] Compiling 628 source files to /home/peter/srcdemo2/build/classes [compile] /home/peter/srcdemo2/src/net/srcdemo/userfs/FuseUserFS.java:44: error: cannot find symbol [compile] return info == null ? -ErrorCodes.ENOENT : 0; [compile] ^ [compile] symbol: variable ENOENT [compile] location: class ErrorCodes [compile] /home/peter/srcdemo2/src/net/srcdemo/userfs/FuseUserFS.java:73: error: cannot find symbol [compile] return -ErrorCodes.ENOMEM; [compile] ^ [compile] symbol: variable ENOMEM [compile] location: class ErrorCodes

With my limited experience I can't figure out what files are now causing the error, I took a look at the lines it's referring to but I can't make sense of it. Thanks!

wise nexusBOT
#

This post has been reserved for your question.

Hey @topaz vortex! Please use /close or the Close Post button above when your problem is solved. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.

TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.

steady quartz
#

Class ErrorCodes does not contain a variable call ENOENT

topaz vortex
#

Could this mean I need to switch to an older version of java still? Or is it calling for depreciated variables from that Class?

steady quartz
#

I don't know of any java class called ErrorCodes

chrome wren
#

i don't see it on the standardlib javadocs

#

so i suppose it's from that project

topaz vortex
#

Ok, thanks for your help, there is an ErrorCodes.java in one of the submodule folders that does have reference to ENOENT

wise nexusBOT
shell geyser
#

I looked at the code, because the pipeline at work doesn't work and found this import net.fusejna.ErrorCodes;

#

So it's probably a wrong version of the library.

shell geyser
#

Lol, this thing uses git submodules for dependency management.

#

Did you build fusejna first?

topaz vortex
#

Lol thanks for looking through it, I figured it was probably a version issue since it's old and I had to downgrade java for some of the dependancies to build.

wise nexusBOT
topaz vortex
#

I did build fusejna with gradle version 4 or something like that, and it did say it worked without errors so all the dependancies should be build correctly right now

#

built* but I cant be sure :/