Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

java compilation

i am not a java developer so is it possible for me to develop java code on windows and then deploy the windows compiled .class files to a solaris server...would it run..

like image 811
kd. Avatar asked Dec 07 '22 04:12

kd.


2 Answers

Yes, it should.

However, watch out for the most common pitfalls like:

  • version incompatibility (e.g. class file version, runtime environment)
  • system dependent resource descriptors (e.g. file paths)
like image 183
Dieter Avatar answered Dec 09 '22 16:12

Dieter


Yes, that is specifically the premise behind Java's Write Once Run Anywhere motto

like image 33
Kevin Avatar answered Dec 09 '22 17:12

Kevin