[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 208
  • Last Modified:

Shortening Run and Compile Commands in windows

Run: java -cp .;c:\ex1\Game\Snake.jar Snake
compile: javac -classpath %CLASSPATH%;.;C:\ex1\Game\Snake.jar Game.java

These are the commands I am using at the moment to compile and run in  Windows.
I would be grateful if someone could help me in telling me how to create some sort of compile and run script to make the proccesses easier.

Do i need to make .bat files?
0
chocobogo
Asked:
chocobogo
1 Solution
 
CEHJCommented:
REM Save this as snr.bat (run Snake)
@echo off
echo Running Snake...
java -cp .;c:\ex1\Game\Snake.jar Snake

REM Save this as gc.bat (compile Game)
@echo off
echo Compiling Game...
javac -classpath %CLASSPATH%;.;C:\ex1\Game\Snake.jar Game.java
0

Featured Post

The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now