Search:

Type: Posts; User: CAF

Page 1 of 2 1 2

Search: Search took 0.09 seconds.

  1. Replies
    62
    Views
    7,132

    Re: Writing Path name to configure Java

    What do you mean by the Plot and PlotFrame class definitions?
  2. Replies
    62
    Views
    7,132

    Re: Writing Path name to configure Java

    What do you mean by the Plot class and PlotFrame class defintions? I am able to run the code by referencing the plot.jar and plotapplication.jar in the classpath when compiling. Is there something...
  3. Replies
    62
    Views
    7,132

    Re: Writing Path name to configure Java

    But why would it run 500 times even when setVisible was within the loop - I thought the 500 only gave the number of points to be plotted?



    Missing code? Here is exactly what I am working with:...
  4. Replies
    62
    Views
    7,132

    Re: Writing Path name to configure Java

    Where about in the code am I setting the frame visible 500 times? I thought that the statement 'int points = 500;' was only an indication of the number of points that I want plotted on the graph?
    ...
  5. Replies
    62
    Views
    7,132

    Re: Writing Path name to configure Java

    I'll post an SSCCE tomorrow (although by reading your attached link, I am not sure I fully understand what it actually is) since it is getting quite late here. Could you explain why the setVisible...
  6. Replies
    62
    Views
    7,132

    Re: Writing Path name to configure Java

    When I don't put system.exit in, I get the graph but lose access of the terminal. When I put it in the loop, I don't get the graph and I get points number of 'Graph created' messages (which...
  7. Replies
    62
    Views
    7,132

    Re: Writing Path name to configure Java

    Here is an updated code:


    import java.io.Console;
    import java.io.*;
    import java.lang.Math;
    import java.lang.Boolean;
    import ptolemy.plot.*;

    public class Edisc1 {
  8. Replies
    62
    Views
    7,132

    Re: Writing Path name to configure Java

    Ah you're too quick! I edited my post when I reread it. See above
  9. Replies
    62
    Views
    7,132

    Re: Writing Path name to configure Java

    I thought the 500 I set was the number of points that would be plotted on the graph (obviously this is not the case). For some reason, when I run the program now, the graph instantaneously appears...
  10. Replies
    62
    Views
    7,132

    Re: Writing Path name to configure Java

    Here is the updated code:


    import java.io.Console;
    import java.io.*;
    import java.lang.Math;
    import java.lang.Boolean;
    import ptolemy.plot.*;

    public class Edisc1 {
  11. Replies
    62
    Views
    7,132

    Re: Writing Path name to configure Java

    When I put in a println statement, I have the contents of that statement displayed a large number of times in the command terminal, so I think that the loop is going over and over again. Is there a...
  12. Replies
    62
    Views
    7,132

    Re: Writing Path name to configure Java

    Can you see anywhere in my code where I created an infinite loop?
  13. Replies
    62
    Views
    7,132

    Re: Writing Path name to configure Java

    Yes, I forgot to reference the other jar file - it now works albeit my graph looks a bit strange (but I should be able to fix this via changing the plotframe size etc..) Everytime I run though and...
  14. Replies
    62
    Views
    7,132

    Re: Writing Path name to configure Java

    Hi jps,

    Yes, sure here it is:



    import java.io.Console;
    import java.io.*;
    import java.lang.Math;
    import java.lang.Boolean;
  15. Replies
    62
    Views
    7,132

    Re: Writing Path name to configure Java

    Hi PhHein,
    I managed to finally get the code to compile and I fixed the code to correct the remaining errors as you anticipated. I went to run it using the command:
    java -cp .;"C:\Program...
  16. Replies
    62
    Views
    7,132

    Re: Writing Path name to configure Java

    That didn't work either. I'll try again later, although I would not be sure what else to try. I did not think it would take so long to just configure this package and all of the tutorials I have...
  17. Replies
    62
    Views
    7,132

    Re: Writing Path name to configure Java

    No, it is C:/ProgramFiles/Java/jdk1.7.0_21/ptplot5.8/ptolemy/plot/plot.jar
  18. Replies
    62
    Views
    7,132

    Re: Writing Path name to configure Java

    I am not sure I understand. I see a plot 'executible JAR file' in the file folder plot but I also see the file folder 'plotml' in 'plot' which contains the 'executible JAR file' plotml
  19. Replies
    62
    Views
    7,132

    Re: Writing Path name to configure Java

    Input:
    package ph;

    import ptolemy.plot.*;

    public class PLTest{
    public static void main(String[] args){
    System.out.println("Jap");
    Plot p = new Plot();
    p.setName("phh");
  20. Replies
    62
    Views
    7,132

    Re: Writing Path name to configure Java

    Ok, thanks. I'd prefer to find why I can't get the Ptolemy.plot package to be found before I worry about getting the code to actually work. I don't know what else to try though - everything you...
  21. Replies
    62
    Views
    7,132

    Re: Writing Path name to configure Java

    All the errors that appeared were to do with this apparent non existence of the ptolemy.plot (there were 7 errors in total). Where are the other errors and why does the compiler not pick them up?
  22. Replies
    62
    Views
    7,132

    Re: Writing Path name to configure Java

    Do you mean there are errors in the code?
  23. Replies
    62
    Views
    7,132

    Re: Writing Path name to configure Java

    Here is my full source code:



    import java.io.Console;
    import java.io.*;
    import java.lang.Math;
    import java.lang.Boolean;
    import ptolemy.plot.*;
  24. Replies
    62
    Views
    7,132

    Re: Writing Path name to configure Java

    I see - in post #10 I missed out \ptolemy\. That was just a typo. Is it not the same as in 12 then? (except I added on more jar files). When I enter what you wrote in 16, I still have this...
  25. Replies
    62
    Views
    7,132

    Re: Writing Path name to configure Java

    Is that not what I tried in post #10?
Results 1 to 25 of 34
Page 1 of 2 1 2