1

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?

2
  • why can't you install java on your Unix and port your codebase and test it there? Commented Jul 19, 2012 at 19:35
  • I guess you are developing at home. Try if Linux does your work. Commented Jul 19, 2012 at 19:35

4 Answers 4

6

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.

Sign up to request clarification or add additional context in comments.

Comments

4

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.

1 Comment

If you use forward slashes in Java it will work under windows as well.
4

You can run Ubuntu without install it. Run it from disk or even USB.

Comments

1

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;

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.