# change working directory to location of Java 1.5.0 classes.jar cd /System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Classes # work as root - when prompted for password, enter your login password; be very careful from this point on sudo bash # save original classes.jar in case anything goes wrong cp -np classes.jar classes.jar.SAVED # create directory for source code mkdir -p javax/swing/filechooser # move source code to that directory mv $HOME/Desktop/FileNameExtensionFilter.java javax/swing/filechooser # compile it javac -g javax/swing/filechooser/FileNameExtensionFilter.java # add it to classes.jar jar uf classes.jar javax/swing/filechooser/FileNameExtensionFilter.class # all done exit exit
Please enter a valid email to subscribe
We need to confirm your email address.
To complete the subscription, please click the link in the
email we just sent you.
Thank you for subscribing!
via Egeo 16