don't know about java but yea you can do it easily in VC++ but if you can do inVC++ then using jini you can do it is java too