Trying to run the installer does nothing on my computer.
Mac OSX Mavericks 10.9, just updated by JRE:
$ java -version
java version "1.7.0_45"
Java(TM) SE Runtime Environment (build 1.7.0_45-b18)
Java HotSpot(TM) 64-Bit Server VM (build 24.45-b08, mixed mode)
Double-clicking on the file seems to have little effect. If I try to run from the command line:
$ java -cp . bfg-1.11.1.jar
Error: Could not find or load main class bfg-1.11.1.jar
I tried downloading the source, but I have no idea what build system this thing uses.
Hi @nathanieltagg - you should be fine if you check The BFG's usage instructions:
$ java -jar bfg.jar --strip-biggest-blobs 500 some-big-repo.git
Specifically, the flag is -jar, not -cp - hope that helps!
I'm getting Unable to access jarfile bfg.jar and it's very frustrating.
Full system paths worked:
sudo java -jar /Users/thomas/Desktop/project/bfg.jar --replace-text /Users/thomas/Desktop/project/banned.txt /Users/thomas/Desktop/project/.git
Sorry to hear about your difficulty getting the BFG running - I'm glad you got it working! Ideally, I don't think you need the sudo though.
If you're a Mac user and a little unfamilar with how to run Java, you could use Homebrew to install the BFG, which would let you run it like this:
$ bfg --replace-text Desktop/project/banned.txt Desktop/project/.git`
Although I'm not personally responsible for the Homebrew package of the BFG, I _do_ update it from time to time.
This works brilliantly brew install bfg :)
i too get 'Unable to access jarfile bfg.jar' after running 'brew install big'.
Any ideas one what is going wrong?
OS X
java version "1.6.0_65"
Java(TM) SE Runtime Environment (build 1.6.0_65-b14-468-11M4833)
Java HotSpot(TM) 64-Bit Server VM (build 20.65-b04-468, mixed mode)
Not sure that this addresses your problem @v3nt , but note that per https://rtyley.github.io/bfg-repo-cleaner/
The Java Runtime Environment (Java 7 or above - BFG v1.12.3 was the last version to support Java 6)
... so you will at least need to fix that default JDK, run v7 minimum if you want to run the latest BFG.
I installed Homebrew, then BFG and still having the message in Terminal Error: Unable to access jarfile bfg.jar, Any ideas
Is bfg.jar in the directory you are running in? If not, provide the full path to it.
I seem to. Have fixed the error,
Thanks
Liz
On Apr 24, 2017, at 6:54 PM, Brett Randall notifications@github.com wrote:
Is bfg.jar in the directory you are running in? If not, provide the full path to it.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub https://github.com/rtyley/bfg-repo-cleaner/issues/33#issuecomment-296833194, or mute the thread https://github.com/notifications/unsubscribe-auth/AQj07yfSnlT0c9whEpMML8yG_uhU_oysks5rzRoPgaJpZM4BpXDC.
Most helpful comment
This works brilliantly
brew install bfg:)