Dynamic Classpath for Batch File
From Hapi, a great way to set the classpath for a batch file:
@echo off for %%I IN (..\lib\*.jar) DO SET CP=!CP!;%%I java -cp %CP% com.example.Launcher
And also for shell scripts:
#! /bin/bash CP="." for i in ../lib/*.jar; do CP=$i:$CP; done java -cp $CP com.example.Launcherview post
Posted at 9pm on 06/29/11 | no comments | Filed Under: General
Power Management Settings on a Mac
There’s a wonderful command line utility on Macs called pmset. You can run the following command to see a log of what happens when your computer goes to sleep and wakes up…
pmset -g log
Using this, I was able to see the following entry that was slowing things down……[continued]
view post
Posted at 1pm on 05/01/11 | no comments | Filed Under: Commentary