jimporter / bfg9000

bfg9000 - build file generator
https://jimporter.github.io/bfg9000
BSD 3-Clause "New" or "Revised" License
76 stars 21 forks source link

Support installing Java binaries #72

Closed jimporter closed 7 years ago

jimporter commented 8 years ago

Right now, Java binaries will probably get installed in weird places that break things. Fix this (once I figure out where they're supposed to go).

refi64 commented 8 years ago

They kinda don't go anywhere. AFAIK, since all Java programs are just libraries with a main function, the "binary" jar gets installed like a library, and a shell script in /usr/bin calls the JVM to run it.

jimporter commented 8 years ago

Well, right now they get installed like native programs, so "executables" go in /usr/local/bin and libraries go in /usr/local/lib, but that messes up the relative Class-Paths for linking to libs built alongside the executable (Class-Paths currently assume that everything is in the same root dir). In the end, they'll probably go in the same dir, but I haven't decided how to do that.

Or, as an alternative, I could do the same thing patchelf does and modify the Class-Paths during the installation step.