• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

What about OS ?

 
Ranch Hand
Posts: 68
IBM DB2 Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ?
....
 
Saloon Keeper
Posts: 7585
176
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ?
 
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Saloon Keeper
Posts: 7585
176
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
" - " this is coming from unicode

\u002d

 
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.


 
Marshal
Posts: 79178
377
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Sheriff
Posts: 3837
66
Netbeans IDE Oracle Firefox Browser
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Bartender
Posts: 11497
19
Android Google Web Toolkit Mac Eclipse IDE Ubuntu Java
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.

 
Rancher
Posts: 4803
7
Mac OS X VI Editor Linux
  • Likes 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 4803
7
Mac OS X VI Editor Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Marshal
Posts: 79178
377
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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!
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic