Search:
Type: Posts; User: jlczuk
Search: Search took 0.07 seconds.
- 04-28-2012, 10:09 PM
Thread: JNI, C DLL and glassfish
by jlczuk- Replies
- 13
- Views
- 1,031
Re: JNI, C DLL and glassfish I'll remind Rik of this original post:
- 04-27-2012, 10:05 PM
Thread: Sum of primes have some trouble!
by jlczuk- Replies
- 9
- Views
- 731
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...
- 04-27-2012, 09:53 PM
Thread: JNI, C DLL and glassfish
by jlczuk- Replies
- 13
- Views
- 1,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.
- 04-27-2012, 12:13 PM
Thread: Skipe line if text in array?
by jlczuk- Replies
- 7
- Views
- 451
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)) {
... - 04-27-2012, 12:11 PM
Thread: Sum of primes have some trouble!
by jlczuk- Replies
- 9
- Views
- 731
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.
- 04-27-2012, 01:56 AM
Thread: Compiling a Class into a Package Problem -
by jlczuk- Replies
- 4
- Views
- 352
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...
- 04-27-2012, 01:38 AM
Thread: Pls help "For Loop" Statement example
by jlczuk- Replies
- 10
- Views
- 893
Re: Pls help "For Loop" Statement example The for Statement
- 04-27-2012, 01:34 AM
Thread: How to approach this problem?
by jlczuk- Replies
- 16
- Views
- 541
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 ...
- 04-27-2012, 01:26 AM
Thread: Compiling a Class into a Package Problem -
by jlczuk- Replies
- 4
- Views
- 352
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:
- 04-27-2012, 12:37 AM
Thread: JNI, C DLL and glassfish
by jlczuk- Replies
- 13
- Views
- 1,031
Re: JNI, C DLL and glassfish Cool, learn something new every day! Thank you.
- 04-27-2012, 12:33 AM
- Replies
- 6
- Views
- 420
Re: Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException There's nothing wrong with doing it that way at all.
- 04-26-2012, 10:20 PM
Thread: JNI, C DLL and glassfish
by jlczuk- Replies
- 13
- Views
- 1,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...
- 04-26-2012, 10:12 PM
Thread: Exception java.lang.NumberFormatException
by jlczuk- Replies
- 4
- Views
- 611
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.
- 04-26-2012, 10:11 PM
- Replies
- 6
- Views
- 420
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...
- 04-26-2012, 09:46 PM
- Replies
- 6
- Views
- 420
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...
- 04-26-2012, 07:54 PM
Thread: Binary Cache
by jlczuk- Replies
- 10
- Views
- 618
Re: Binary Cache That makes MUCH more sense. Ok, back to my questions to help you get your head around the problem.
- 04-26-2012, 06:41 PM
Thread: ClassNotFoundException from jar file
by jlczuk- Replies
- 9
- Views
- 664
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...
- 04-26-2012, 04:58 PM
Thread: Binary Cache
by jlczuk- Replies
- 10
- Views
- 618
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... - 04-26-2012, 04:54 PM
Thread: ClassNotFoundException from jar file
by jlczuk- Replies
- 9
- Views
- 664
Re: ClassNotFoundException from jar file There's no time like the present! Please edit that post and add them. :)-:
- 04-26-2012, 04:22 PM
Thread: ClassNotFoundException from jar file
by jlczuk- Replies
- 9
- Views
- 664
Re: ClassNotFoundException from jar file Please put
tags around your Java code. - 04-26-2012, 04:21 PM
Thread: Binary Cache
by jlczuk- Replies
- 10
- Views
- 618
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...
- 04-26-2012, 04:11 PM
Thread: How to approach this problem?
by jlczuk- Replies
- 16
- Views
- 541
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,...
- 04-26-2012, 04:01 PM
Thread: Binary Cache
by jlczuk- Replies
- 10
- Views
- 618
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? ...
- 04-26-2012, 03:48 PM
Thread: Binary Cache
by jlczuk- Replies
- 10
- Views
- 618
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... - 04-26-2012, 03:40 PM
Thread: Sum of primes have some trouble!
by jlczuk- Replies
- 9
- Views
- 731
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



Size Reduced for Images in PDF &...
05-15-2013, 05:53 PM in Java Software