Search:

Type: Posts; User: jlczuk

Page 1 of 6 1 2 3 4

Search: Search took 0.07 seconds.

  1. Replies
    13
    Views
    2,031

    Re: JNI, C DLL and glassfish

    I'll remind Rik of this original post:
  2. Replies
    9
    Views
    1,198

    Re: Sum of primes have some trouble!

    Your threads' run() methods no longer have while(true) so they should end, but they may not. The Syncrhonized.getData() has an untimed wait() call. It will not wake up from that wait until it...
  3. Replies
    13
    Views
    2,031

    Re: JNI, C DLL and glassfish

    So you have coded your JNI to call ?GetDefaultReadername@@YAHPAD@Z. My first inclination would be to code it to just call GetDefaultReadername and see if that works.
  4. Replies
    7
    Views
    838

    Re: Skipe line if text in array?

    Additionally, since String.contains() returns a boolean, you do not need to compare it to anything. The if tests for true or false, so this is cleaner:



    ...
    if (al.contains(text)) {
    ...
  5. Replies
    9
    Views
    1,198

    Re: Sum of primes have some trouble!

    No, that won't do it. You need to read the Processes and Threads Tutorial and learn how to control threads.
  6. Replies
    4
    Views
    573

    Re: Compiling a Class into a Package Problem -

    I wish I could be of more help, but I work in Eclipse, so I don't use javac brute force from a command prompt. Generally, the source tree structure mirrors the package name. So if ProblemServlet is...
  7. Replies
    10
    Views
    1,941

    Re: Pls help "For Loop" Statement example

    The for Statement
  8. Replies
    16
    Views
    907

    Re: How to approach this problem?

    My suggestion is to add the debug tracing back in. For each product, identify the starting number's coordinates in the grid and print out the numbers being multiplied and the answer. You will end ...
  9. Replies
    4
    Views
    573

    Re: Compiling a Class into a Package Problem -

    According to "javac -help", the -d flag requires a directory. You gave it a file. Give it what it wants and I expect it will gladly give you what you want. :D:
  10. Replies
    13
    Views
    2,031

    Re: JNI, C DLL and glassfish

    Cool, learn something new every day! Thank you.
  11. Re: Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException

    There's nothing wrong with doing it that way at all.
  12. Replies
    13
    Views
    2,031

    Re: JNI, C DLL and glassfish

    You certainly can, if you know the interfaces to the DLL. You would use Java Native Methods (JNI as you've correctly identified in your subject). You can learn more about how to do that from the...
  13. Replies
    4
    Views
    1,270

    Re: Exception java.lang.NumberFormatException

    I understand, I'm asking questions in order to help you think about what you did so you better understand.
  14. Re: Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException

    That's exactly what you do. Just define magic and don't initialize it, maybe comment that it gets initialized after you've obtained the input from the user. You are not referencing magic until...
  15. Re: Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException

    That is because of how you created your magic array. Look at the value of N that you used. Arrays have fixed size. You can't use a variable and expect the array to dynamically change with the...
  16. Thread: Binary Cache

    by jlczuk
    Replies
    10
    Views
    1,049

    Re: Binary Cache

    That makes MUCH more sense. Ok, back to my questions to help you get your head around the problem.
  17. Replies
    9
    Views
    1,603

    Re: ClassNotFoundException from jar file

    You must have the Firebird Eclipse plugin installed and your project's build path has been setup to have Firebird included. I would suggest you visit the Firebird homepage and look for their...
  18. Thread: Binary Cache

    by jlczuk
    Replies
    10
    Views
    1,049

    Re: Binary Cache

    Thanks. I'm stumped then. Maybe someone else here knows how a memory cache can be both direct mapped and fully associative. Otherwise, I'd ask your professor about that.

    In the mean time, what...
  19. Replies
    9
    Views
    1,603

    Re: ClassNotFoundException from jar file

    There's no time like the present! Please edit that post and add them. :)-:
  20. Replies
    9
    Views
    1,603

    Re: ClassNotFoundException from jar file

    Please put
    tags around your Java code.
  21. Thread: Binary Cache

    by jlczuk
    Replies
    10
    Views
    1,049

    Re: Binary Cache

    One cache can't be both fully associative and direct mapped, which makes me wonder if your Test input file will tell you which organization to use for that test. That would make more sense because...
  22. Replies
    16
    Views
    907

    Re: How to approach this problem?

    If you have an 20 by 20 two dimensional array, and you are working on the number at x=6, y=6, what values for x and y give you the adjacent numbers in each of the 8 directions? Now break it down,...
  23. Thread: Binary Cache

    by jlczuk
    Replies
    10
    Views
    1,049

    Re: Binary Cache

    It's been a long time since I've had to deal with the details of memory caching, so I brushed up a little. Are you sure that your cache is supposed to be BOTH Direct Mapped AND Fully Associative? ...
  24. Thread: Binary Cache

    by jlczuk
    Replies
    10
    Views
    1,049

    Re: Binary Cache

    Don't worry about how many classes and all that. What is ONE class you KNOW you need?

    While you think about that, you need to read up on how memory caches work. Regarding Direct Mapped and...
  25. Replies
    9
    Views
    1,198

    Re: Sum of primes have some trouble!

    OK, I decided that I would try to run your program after I fixed the compile error for myself (I will leave it to you to figure out what was wrong).

    I also added some System.out.println calls to...
Results 1 to 25 of 137
Page 1 of 6 1 2 3 4