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 ...
- 05-10-2008 #1Just 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
- 05-10-2008 #2
What Java version are you using on Ubuntu and IDE? It gives you an error when you lunch the application?
Cheers!
- 05-10-2008 #3
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
- 05-10-2008 #4
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?
BryanLooking 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.


Reply With Quote