Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

What about OS ?

 
Neeraj Dhiman
Ranch Hand
Posts: 68
IBM DB2 Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i don't know where to post this topic so i am posting here.
Question is: i have done my all programming in windows environment. should i change my OS to some how UNIX based ?
....
 
Tim Moores
Bartender
Posts: 2845
46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What prompted this question? If you feel productive on Windows, why are you considering switching? Remember that we know nothing about your circumstances.
 
Neeraj Dhiman
Ranch Hand
Posts: 68
IBM DB2 Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
it is just we have shift our server from windows to linux. and we got some problem in our application. May be that was our mistake that we code like windows environment or wrong coding practice. that's i want to find.
but still we are using windows to code ? should i ?
 
Jaikiran Pai
Marshal
Pie
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Which programming language are you working on? And what exact problem did you run into when your application was moved to *nix platform?
 
Neeraj Dhiman
Ranch Hand
Posts: 68
IBM DB2 Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I work on java technology.
The problem are,like :
During writing on files "-" is treated as " – " .
ResultSet Closed which is working fine on widows..
etc...

These are some programming issues. but works fine on windows.
So *nix is better solution for avoiding such mistake.?
 
Tim Moores
Bartender
Posts: 2845
46
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Might be an encoding problem. Windows and Unix use different platform default encodings, so if there's an operation somewhere where the code relies on that (by not specifying the encoding), there might be trouble.
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Neeraj Dhiman wrote:During writing on files "-" is treated as " – " .

Where did you get the dash? If someone did a copy-and-paste from a Word document, then the dash is not a dash (ASCII 0x2D) but is rather some other character. And yes such characters can cause unpredictable results. Ditto for single and double quotes. I recently corrected a number of Java sources where comments were copied from Word documents; the resulting Java sources compiled just fine under Windows but gate the OpenJDK on Linux fits.
 
Neeraj Dhiman
Ranch Hand
Posts: 68
IBM DB2 Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
" - " this is coming from unicode
\u002d
 
Carlo Moore
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Where in your code are you using the dash?

Many people develop in windows and run their code on unix.

If you copy a text file from windows to unix, from a shared folder for instance, you may get some problems.
But for packaged jars or ears I've never had a problem.


 
Campbell Ritchie
Sheriff
Pie
Posts: 49397
62
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
. . . and a dash (&#x002d; = -) is < 0x80 (=128), so it is a plain ASCII character. Even a Windows®/DOS command line can display that. There is something wrong if it displays as â€. Are you sure you are using the ASCII (\u002d) version?
 
Martin Vajsar
Sheriff
Posts: 3752
62
Chrome Netbeans IDE Oracle
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As has already been said, this is probably an encoding issue. I'd say you should find and correct the issue, rather than switching to Unix just because of that.

If you want just to be able to test your application on Unix, you might consider VMWare Workstation or some other virtualization technology (maybe a free alternative exists). We're doing exactly that - developing on Windows, deploying onto Linux; we've got Linux in a VMWare for testing and packaging.
 
Maneesh Godbole
Saloon Keeper
Posts: 11070
13
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Martin Vajsar wrote:... you might consider VMWare Workstation or some other virtualization technology (maybe a free alternative exists).

Sure does!
 
Neeraj Dhiman
Ranch Hand
Posts: 68
IBM DB2 Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi, Sorry for late reply.
Yes now i have a Linux testing environment to test the application.

this was the encoding problem.

Thanks All. I am still on windows.

 
Pat Farrell
Rancher
Posts: 4678
7
Linux Mac OS X VI Editor
  • Likes 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Linux is easy to install. It will happily live as a dual boot on a Windows box. Or take an old PC that is too slow for modern windows and install Linux on it.

Everyone should have some hands on experience with a non-Windows OS, so they will be ready when the world stops running Windows.
 
Neeraj Dhiman
Ranch Hand
Posts: 68
IBM DB2 Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

It is really a good suggestion for using *nix . i have little bit experience on Linux in my college time but its not enough.
So its time to learn some think like this side by side.
its a really a valuable suggestion.

Thanks Farrell,
 
Neeraj Dhiman
Ranch Hand
Posts: 68
IBM DB2 Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have one more Question: which "Linux" i have to install which is good with java programming ?
 
Pat Farrell
Rancher
Posts: 4678
7
Linux Mac OS X VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Which Linux is a question that can only be answered over lots of beers and a fair amount of pizza.

A few years ago, I'd answer "Ubuntu" but I hate "unity" their GUI. So I'd recommend Linux Mint.

I run Debian on most of my Linux boxes, but Mint and Ubuntu are more user friendly.

The strongest recommendation that I can give is:

Use the distro that your buddy uses, so you can buy him/her a beer when you need help.

All other differences are minor.
 
Campbell Ritchie
Sheriff
Pie
Posts: 49397
62
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you think Unity is bad that means you have never tried Gnome3! At least with Gnome3 there are some tweaks to turn it back into a desktop. And googling, I have just found there may be ways to tweak Unity.
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Pat Farrell wrote:Use the distro that your buddy uses, so you can buy him/her a beer when you need help.

Always good advice, and the reason I always recommend the distro I use to family and friends!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic