xiaoxing tech

January 21, 2009

run Groovy’s groovyConsole.bat, got SecurityException: Prohibited package name: java.lang

Filed under: Java, groovy — xiaoxing @ 12:38 pm

java groovy

Solution:
My system’s CLASSPATH variable contains this entry: C:\midp2.0fcs\classes
Delete it then groovyConsole.bat will work.
Other entries in the CLASSPATH don’t matter.

January 16, 2009

use Mail Server Pro to send email to myself, on localhost

Filed under: Java, app, email, server — xiaoxing @ 12:47 pm

email, java, server, app

1. Install Mail Server Pro (one month trial). A windows service (SMTP Server Service) will be installed.
    Change settings: Authentication is not required.
                               IP Range Lists, add “1×2.1x.6.x9″ local ip address.
                               Local Domains add chao.com
                               Domain Users add “richie” and “xing”
2. Outlook add account: richie@zhao.com; POP3 incoming server “1×2.1x.6.x9″; SMTP localhost; user name “richie@zhao.com”
3. In java code (-context.xml): sender (JavaMailSenderImpl)’s host property: localhost

Blog at WordPress.com.