aspose file tools*
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


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
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
Author

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
internet detective
Marshal

Joined: May 26, 2003
Posts: 30352
    
150

Steve,
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/Paths.properties). 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 ?

Yes!


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: migrate codes generated in windows IDE to unix environment