Problem: I am developing a tool that does some file operations in Unix environment, but my development environment being Windows, how can I test what i am doing.
Is there any way I can simulate my program running in a Unix environment only for testing purpose?
You can run a virtual machine such as VMware installed with Linux to test your program.
If you are on the same network as a Linux machine you can VNC into one and test your program remotely.
Java is cross-platform (thanks to the JVM), so you don't need to worry about OS-specific details, with one exception: Directory separators. Windows uses \\
and Unix uses /
. In order to ensure full compatibilty, you'll want to use the separator in File .
You can run Ubuntu without install it. Run it from disk or even USB .
You can:
install the Linux on virtual machine
download some distribution that can run in live cd
;
install the Linux on your hard disk(that's a good thing :-) ), in multi boot
;
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.