Skip to content

Instantly share code, notes, and snippets.

@CansecoDev
Created November 29, 2018 01:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save CansecoDev/e63fdb346204eea0ea5697f8e1a00c25 to your computer and use it in GitHub Desktop.
Save CansecoDev/e63fdb346204eea0ea5697f8e1a00c25 to your computer and use it in GitHub Desktop.
Simple bat script to launch java bytecodes on a console (by drag and drop the working directory)
@ECHO OFF
TITLE Java Console
PROMPT :
CD %1
SET CLASSPATH=%~1
CMD
@CansecoDev
Copy link
Author

  • Usage: Just drag and drop into the script the directory where your .class files are located and run them with java.

Don't forget to set your JAVA_HOME and/or PATH environment variables before using this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment