Find the answer to your Linux question:
Results 1 to 4 of 4
I've just gone over to ubuntu on my new laptop, and I've transferred all the java files of a project I was working on on my old computer to this ...
  1. #1
    Just Joined!
    Join Date
    May 2008
    Posts
    3

    Java files from Windows to Linux

    I've just gone over to ubuntu on my new laptop, and I've transferred all the java files of a project I was working on on my old computer to this one. Problem is that it's not working anymore, but simply runs till I terminate it. It's a sorting algorithm, that sorts x elements with y threads, and consists of a buffer, sorting class, and control class. I know this isn't much to go on, but I know problems like these can arise. Has anyone had the same problem? Any clues as to what I should do to fix it?

    thanks,
    Vegard

  2. #2
    Linux Newbie bobescalin2005's Avatar
    Join Date
    Oct 2005
    Posts
    167
    What Java version are you using on Ubuntu and IDE? It gives you an error when you lunch the application?
    Cheers!
    Registered Linux user #471256
    http://counter.li.org
    Don`t give up so easy...
    calin

  3. #3
    Trusted Penguin Cabhan's Avatar
    Join Date
    Jan 2005
    Location
    Seattle, WA, USA
    Posts
    3,230
    I can't think of anything that would necessarily cause this, but it could, I suppose, have to do with threading differences? I imagine that the implementations are different for Windows and Linux threads, but I can't think of any other huge implementation differences.

    In any event, I would suggest the normal debugging process: add assertions, println()s, etc., and see what you can find.
    DISTRO=Arch
    Registered Linux User #388732

  4. #4
    Linux Guru bryansmith's Avatar
    Join Date
    Nov 2004
    Location
    /Ontario/Canada
    Posts
    2,621
    Java runs the same on Windows and Linux (along with OSX and Solaris) and therefore, your program should run no different. Are you using the same Java version across OSes?

    From the sounds of it, your code does not likely involve any complex code that was deprecated or removed recently. Assuming this is not a homework question/school assignment, would you mind posting some of the code if it is not too long?

    Bryan
    Looking for a distro? Look here.
    "There can be no doubt that all our knowledge begins with experience." - Immanuel Kant (Critique of Pure Reason)
    Queen's University - Arts and Science 2008 (Sociology)
    Registered Linux User #386147.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...