Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Usage in the README #2

Open
ELLIOTTCABLE opened this issue Aug 4, 2013 · 1 comment
Open

Usage in the README #2

ELLIOTTCABLE opened this issue Aug 4, 2013 · 1 comment

Comments

@ELLIOTTCABLE
Copy link

There's no indication in the README of how to use this from the command-line. I'm a Ruby, JavaScript, and C programmer; I have no experience with Java, and I have no idea how to run the commands described in the README using a .jar file.

A basic “how to download, and example commands I can run at the shell's command-line” section in the REAMDE would be welcome.

@GinjaNinja32
Copy link
Owner

Download by clicking the binary download links in the readme (assuming as you're not a Java coder you won't want to compile from source). Jar files are run from command line with "java -jar [jarfile].jar" (your Java install must be on your PATH, otherwise either add it or use the full path e.g. "'C:\Program Files\Java\jre7\bin\java' -jar [jarfile].jar'), just put the arguments after that like you would with any other command-line program.

For example, if you had the 1.1 binary ("cli-nbt-1.1.jar") and an uncompressed NBT file (nbt.nbt) you wanted to edit:
$ java -jar cli-nbt-1.1.jar nbt.nbt
If nbt.nbt is GZIP compressed:
$ java -jar cli-nbt-1.1.jar -g nbt.nbt

Sorry for the late reply, I've been away for the last 2 weeks with no Internet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants