Java

Java was the main language taught while I was studying at TCD. I've been programming in Java since 2007. Working on development of eclipse plugins. Recently started working with Spring and Hibernate.

Run Play Application With bat File

I recently had to develop a tool to be deployed on local windows servers, that could be run using a bat file. So I had to strip down Play to the bare bones. Below is the directory structure I used.

    play
      - application
       - application files
      - server
        - framework
        - python 
        - play
        - play.bat
    
     - play.jar
     - start.bat
     - stop.bat
    
    

    start.bat

    SET JAVA_HOME=%JAVA_HOME%
    cd "application/myApp"
    del server.pid
    cd ../..
    cd server
    play start "../application/myApp" -Dprecompiled=true
    exit

    stop.bat

    cd server
    play stop "../application/myApp"
    exit
    blog comments powered by Disqus