I am a new Java developer and would like to know if it is possible to write Java code on Windows using Eclipse, and the code really compiles and runs on Linux. I need to write a java program for Linux (Ubuntu), but I'm used to Windows for development.
I am thinking of using Samba for file sharing, so I can use Windows to access the source code, which is located in Ubuntu. But when I compile the code, it actually uses the Windows JVM, not the Ubuntu JVM, will it matter? Also, when I need to enable external JAR libraries that are in Ubuntu, the path actually looks like E: \ home \ java \ project \ abc.jar, where E: drive is a mapped network drive from Samba. so when I ran the program on Ubuntu there would no longer be D: drive.
So, I'm a little confused and wonder if this is possible at all. any help would be really appreciated
source
share