Results 1 to 5 of 5

Thread: Java output changes on different computers

  1. #1
    Join Date
    Dec 2009
    Posts
    211

    Java output changes on different computers

    Hello,
    I work on two different computers with the same IDE in Java. My program does not give the same result on both machines. I realized that Java version was slightly different depending on the machine, java 1.5 for one and 1.6 for the other it is also clear that the 1.5 runs on Linux and the 1.6 on windows. What is the most likely reason for my troubles? Any help on this would be great for me. Thanks in advance.

  2. #2
    Join Date
    Apr 2008
    Posts
    264

    Re: Java output changes on different computers

    Hello,
    Even I have a similar kind of a problem with my java code, I have no clue why it is behaving in this manner. My program gives me a result in the tree form. Where it is correct, I have all the knots out, and they form a tree. In the case where the result is false, it is no longer a tree but a graph and also they lack the three-quarter of knots. As before there was a problem copying pointer or structure. Do you have any solution for this, if one then I am the interested one. Thanks in advance.

  3. #3
    Join Date
    Nov 2009
    Posts
    335

    Re: Java output changes on different computers

    Hello,
    What is this graph all about? what have you exactly created in your code, does you code depends on the operating system calls. In the case of files and directories the problem can come from there. In fact management is significantly different in linux and windows. Provided that you have entered your program? Have you check your java versions on the both the operating systems, if not then please upgrade the version of the java on both the operating system.

  4. #4
    Join Date
    Nov 2009
    Posts
    330

    Re: Java output changes on different computers

    Hello,
    I think your graph represents a metabolic network. In fact, based on class some thing like this
    Code:
    (class ModuleTree
    boolean bl = false;
    LinkedList ll = new LinkedList ();
    String lb = "";
    Vertex rep = null;
    I think you should provided an xml file with nodes and edges of the graph metabolic output, after making some decomposition which transforms the graph tree and add some nodes. This would be a good option for you.

  5. #5
    Join Date
    Nov 2009
    Posts
    446

    Re: Java output changes on different computers

    Hello,
    As I see it not too much or is the problem. But what you can already do to put aside the version problem is compiling your application with options source = 1.5 and target = 1.5 on windows to see if the results are always different. There is likely to believe but check if your input files. Xml Linux are formatted unix (dos2unix, or set ff = unix vi). If you say that both the operating system give you a different results then which one is correct, that is which of the operating system gives you the correct result.

Similar Threads

  1. How to get a Java Program output in Tabular format
    By Falgu in forum Software Development
    Replies: 3
    Last Post: 18-07-2012, 04:15 PM
  2. how to increase the number of decimal digits in JAVA program output?
    By Dennis Racket in forum Software Development
    Replies: 2
    Last Post: 19-01-2012, 02:38 PM
  3. Replies: 6
    Last Post: 24-09-2010, 06:25 AM
  4. Input and output arguments in java
    By Ash maker in forum Software Development
    Replies: 5
    Last Post: 09-03-2010, 12:32 PM
  5. Exception in java input/output
    By Aaliya Seth in forum Software Development
    Replies: 5
    Last Post: 22-01-2010, 12:05 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,711,622,472.31641 seconds with 16 queries