Companies seem to move away from Solaris to much cheaper versions (Linux etc), for these skills the opportunities become less and less. Java usage is growing and there will be more and more opportunities.
Similar lines, there will be more with Java skills than solaris admin skills, so more competition. I would lean toward Java developer, you should also consider which one naturally appeals to you.
I am having just 2 yrs exp..so i can not give u the guidance but i can tell u the present scenario.
Though people saying Java/J2EE field is growing but same time Pay is not as good as compare to other technologies .But every thing has its pros and cons. Java/J2EE having large market so u can easily switch you job while Sun Solaris having limited market so u have to find hardly...but definately if u r good techie then u should go for Solaris ...so u can get better money there.
Now a days ppl paying 3.50-4.0 for 2+ J2EE ppl nd 5-7L for 5+ J2EE ppl. Same time one person from my company got job at PCS (NOT A PAYMASTER),he is having 5+ exp in Sun Solaris and his package is 11L...
//now solaris 10 is open source and i heard article that solaris 10 is a Linux better than a Linux // and I heard that In the world 80% of sys admin are in USA, if u r a alien in USA ur salary will be low.