• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

testing cross platform

 
Jim Thompson
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is there a program that would show if a java program would run correctly on different platforms, like Sun, Linux, Mac, that I can run on Windows. I don't have access to test my program on these machines.
The specs for the developer say to tell what platform your project was developed on; perhaps they won't ding you if it doesn't work on a Sun machine.
 
Satish Avadhanam
Ranch Hand
Posts: 697
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Jim, I don't think we need to test the application of different platforms. We need to document on which platform we did and I think that is all what they expect.
 
George Marinkovich
Ranch Hand
Posts: 619
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Jim,
Originally posted by Jim Thompson:
The specs for the developer say to tell what platform your project was developed on; perhaps they won't ding you if it doesn't work on a Sun machine.

I think Satish is right about this. I suspect the purpose of the version.txt file is so your submission can be forwarded to an examiner who can test your application on the same platform on which it was developed.
I believe someone on the forum has previously mentioned a Unix emulator that runs on Windows but I'm sorry to say I can't remember the name (maybe searching the forum for "Unix" or "Windows" will find this reference). If this is really a concern to you, you could install Linux as a second operating system on you Windows platform.
I don't think you need to be concerned about this (I didn't test my application on anything other than Windows). If you have the opportunity to test on another platform then you should be all means. I would also suggest that you use:

Also avoid the Windows-specific "\" file separator when coding any paths in your application. See System.getProperties(file.separator) to do so in a platform independent way.
 
Andrew Monkhouse
author and jackaroo
Marshal Commander
Pie
Posts: 12007
215
C++ Firefox Browser IntelliJ IDE Java Mac Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Jim,
Originally posted by George Marinkovich:
I believe someone on the forum has previously mentioned a Unix emulator that runs on Windows

That may have been me when I mentioned a product I use a lot: VMWare. However it is not a Unix emulator, it is a virtual "intel" computer that runs on Windows and Linux operating systems. When you are running it you get a virtual computer as an application on your normal computer. So you could run Linux or Solaris (the complete operating system) inside an "application" on your Windows desktop. You still need the installation CDs for whatever operating system you are going to run, but at least you don't need a spare computer / hard drive / partitiion.
Having said all that: I don't believe it is necessary to test on multiple platforms. It is a good idea if you can, but as long as you don't have any operating system specific code in your assignment, you should be fine.
Regards, Andrew
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic