• Post Reply Bookmark Topic Watch Topic
  • New Topic

Need some help...  RSS feed

 
Riddhi Joshi
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Everyone,
I have written a Java program that runs on Windows. I want to know how can I run that program on other environment like Unix, Linux or Mac. I am sure that it is a platform independent language so my program will definitely run. But I am not sure if I have to make some changes in the program.
As a matter of fact, I need to know the shell out commands of Unix, Linux or Mac to make my program functional.
I hope I am clear with my question.
It would be a great help if anyone can get back with an answer.
Thanks.
 
karl koch
Ranch Hand
Posts: 388
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi
no need to change the classes. they run ony any OS with a virtual machine (and the good version of the virtual machine)

k
 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Indeed, there's no need to change your classes but if you happen to do 'Runtime.getRuntime.exec(" ...") stuff, you certainly *do* have to change something if you want to port your code from windows to *nix, OS/400, MacOS or whatever ...
kind regards
 
Riddhi Joshi
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for getting back to me.
Actually I am making use of Runtime().exec(...).
I have handled all the windows environment with this command. But I am not sure which shell out commands should be used in canse of Unix, Linux and Mac.
It would be great if you could help me out with that.
Thanks,
Riddhi
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!