This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes IDEs, Version Control and other tools and the fly likes migrate codes generated in windows IDE to unix environment Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "migrate codes generated in windows IDE to unix environment" Watch "migrate codes generated in windows IDE to unix environment" New topic

migrate codes generated in windows IDE to unix environment

Steve Mutanson
Ranch Hand

Joined: Apr 15, 2003
Posts: 67
I am a unix guy. These days I learn to use some IDEs on windows. I like some convenient features of them but I am frustrated by the migration problems. Here are some questions ---

First of all, my production environment is set on UNIX, so I use windows IDE to create and test codes, then migrate to unix. That's my goal. Now,

1. For simple java codes, there is no problem to miagrate the .class , .jar files, write once, run anywhere.

2. For web application(servlet/jsp) using jdbc, there are some problems. For instance, you need a web container to test your code, for some IDE, it doesn't have web container, so how do you test them ? you can't even compile them unless you install some external .jar for servlet compiling, even you can compile your codes in IDE, you can't test. You can only create some ".war" that you have no idea if it works, and move to unix to test. If fails, go back to windows to modify and move back to unix for re-test. This doesn't make sense to use the IDE...

3. If my production is on unix and it has its own appliction server, when you want to test some EJB, JDBC on windows IDE, how can you utilize my unix machine's application server ? Some IDE is shipped with its own web container or application server for testing. But the feature and setting requirement for such embedded container are quite different from the actual appliction server on unix, so if you want to migrate your EJB codes to unix, you need to make LOT of change, it is not like moving EAR...

4. If the application requires using some external file on a file system, then how can you migrate a code generated on windows, it doesn't know your unix file system structure that you need to use. So this requires code change if you migrate.

Based on the above problems, I am wondering how unix guys can take advantage of windows IDE if the application involves application server, database link, external file dependency. Please share your experience.

Do you think it is worthwhile to use windows IDE if your production is a J2EE application server on unix ?
Jeanne Boyarsky
author & internet detective

Joined: May 26, 2003
Posts: 32481

You don't just deploy code to production now, do you? I'd like to assume you have some sort of test or pre-production server.

2) You need to have a local web container. What server are you using in production? For example, we use WSAD to Websphere. However, Tomcat is free. In a previous job I had, we developed in emacs and had to push the jsps to the server using a script. (which is hardly better than moving it from windows to unix.)

3) You could create an ant script to jar/war/ear up your application and push it to the unix box. The settings for an embedded container shouldn't be too different if you are using the J2EE standards. (yes, i realize everyone has add ons.)

4) This is an easy one. It is a good practice to put all paths in a properties file and reference it with a relative path (like /config/ This is a good idea even if you are only deploying on one OS. It lets you easily change paths at runtime. It also lets you use different paths for testing and production.

Do you think it is worthwhile to use windows IDE if your production is a J2EE application server on unix ?


[OCA 8 book] [Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
Have you checked out Aspose?
subject: migrate codes generated in windows IDE to unix environment
It's not a secret anymore!