wood burning stoves 2.0*
The moose likes Java in General and the fly likes An application on Unix and Windows Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "An application on Unix and Windows" Watch "An application on Unix and Windows" New topic
Author

An application on Unix and Windows

Suneel Setlur
Ranch Hand

Joined: Nov 26, 2000
Posts: 202
What precautions do I take when I develop a Java Application to run on both Unix and Windows(with respect to code)
Suneel


Suneel
Johnson I
Greenhorn

Joined: Nov 27, 2000
Posts: 6
There will not be any change in the coding aspect, But the Platform independence of your code entirly depends on the JRE installed on your OS.
Johnson I
Greenhorn

Joined: Nov 27, 2000
Posts: 6
There will not be any change in the coding aspect, But the Platform independence of your code entirly depends on the JRE installed on your OS.
Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
You should take care when doing things with the filesystem. For example, be sure to use File.separator in your string representations of file names instead of hard-coding "/" for UNIX or "\" for Windows, both of which would cause your code to fail if ported to the other OS.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: An application on Unix and Windows
 
Similar Threads
Portability of SWT and JFace
whats wrong in my DD ?
Can I run same AWT application both in Windows and Unix machines?
to run a unix script
using Runtime.exec() and the process exitValue = 1