Search Results

Showing results 1 to 32 of 32
Search took 0.01 seconds.
Search: Posts Made By: Kate Albany ; Forum: Java and child forums
Forum: Java Apr 24th, 2006
Replies: 3
Views: 6,733
Posted By Kate Albany
uth,


You can create a new thread at any time. Then if you so desire, let the 'main' thread die by letting the 'public static main' function return. If the thread you created is a 'daemon'...
Forum: Java Feb 1st, 2006
Replies: 2
Views: 1,905
Posted By Kate Albany
Poornima,

This sample program is trying to use the OCI (Oracle Call Interface) JDBC driver. This is a platform dependant driver. I would strongly recommend researching how to use the Oracle Thin...
Forum: Java Dec 5th, 2005
Replies: 9
Views: 2,234
Posted By Kate Albany
I know, I saw this problem myself. But it wasn't what you were asking for help with so I didn't address it, besides I wanted to see how far you could get with this by yourself. If you analyze the...
Forum: Java Dec 4th, 2005
Replies: 9
Views: 2,234
Posted By Kate Albany
Ghost,

First a rant, then I will help you and then maybe some more ranting.

You have not been forthcoming with the details of your problem and the things you have tried to solve it thus far....
Forum: Java Nov 16th, 2005
Replies: 17
Views: 13,587
Posted By Kate Albany
As I was editing an Ant build.xml file today at work it occurred to me that although it seems easy enough, it might in fact be more difficult for a beginner to get to grips with Ant then the standard...
Forum: Java Nov 16th, 2005
Replies: 17
Views: 13,587
Posted By Kate Albany
Iamthwee,

Netbeans uses the Apache Ant build tool to do it's compilation. The Ant build.xml file Netbeans uses should create a jar in a directory called 'dist' under the project folder.

As you...
Forum: Java Oct 23rd, 2005
Replies: 13
Views: 3,872
Posted By Kate Albany
Hi,

No, the -cp flag works just the same under Linux. This problem is not classpath related though.

Kate
Forum: Java Oct 23rd, 2005
Replies: 13
Views: 3,872
Posted By Kate Albany
Hello,

Background

The reason you are receiving the 'UnsupportedClassVersionError' is because the 'bash' shell is finding the default installed 'java' bundled with MDK (Mandrake) 10. You can...
Forum: Java Oct 15th, 2005
Replies: 6
Views: 1,852
Posted By Kate Albany
Hi,

There are still several problems in the code, please see comments below:

// You do not need to pass in the length, a String object already knows its own length
// Also you appear to be...
Forum: Java Sep 24th, 2005
Replies: 2
Views: 2,219
Posted By Kate Albany
source: http://java.sun.com/j2se/1.5.0/docs/tooldocs/solaris/java.html

Please also see:
http://java.sun.com/j2se/1.5.0/docs/guide/vm/server-class.html...
Forum: Java Sep 21st, 2005
Replies: 7
Views: 17,199
Posted By Kate Albany
If you don't want duplicates, why not use a Set. Like the HashSet. A Set enforces no duplicates.

For further information on all Java Collections, please read:...
Forum: Java Sep 11th, 2005
Replies: 2
Views: 4,420
Posted By Kate Albany
This will help you with Set's/List's/Queue's/Map's (Collections) etc ...

http://java.sun.com/docs/books/tutorial/collections/index.html
Forum: Java Sep 10th, 2005
Replies: 8
Views: 8,086
Posted By Kate Albany
I may be wrong here but do you need to 'escape' the path deliminators, like this:

String imageFilePath = "C:\\MyDocuments\\MemoryGame\\woodTable.gif";
The '\\' is not a typo. The first '\'...
Forum: Java Aug 31st, 2005
Replies: 7
Views: 3,612
Posted By Kate Albany
If you are going to override the equals/hascode methods, please read the following artical first.

'How to avoid traps and correctly override methods from java.lang.Object'
...
Forum: Java Aug 29th, 2005
Replies: 9
Views: 1,606
Posted By Kate Albany
Hi Richard,


It is used as a path delimiter. Without it multiple specified paths would be parsed as one location.

For instance, to include two jars in the classpath to support your application...
Forum: Java Aug 29th, 2005
Replies: 9
Views: 1,606
Posted By Kate Albany
Hi Nate,

I understand what '.' and '..' represent. Did you not see the first line of my post:


----------------------

When I say:
Forum: Java Aug 28th, 2005
Replies: 9
Views: 1,606
Posted By Kate Albany
Hi,

You say you are running this code from the JProc folder. Why then include '.' in your classpath? as in this case '.' and 'C:\WINDOWS\Desktop\JProc\' will be one and the same thing. I am just...
Forum: Java Aug 24th, 2005
Replies: 11
Views: 2,700
Posted By Kate Albany
Another excellent editor is VIM (http://www.vim.org/about.php) (http://www.vim.org/about.php%29), think VI with buffers (multiple files) and syntax highlighting etc ... I couldn't be without it....
Forum: Java Aug 13th, 2005
Replies: 9
Views: 2,088
Posted By Kate Albany
Hi,

I think something has been overlooked here. I am curious as to what a 1GB 'Object' looks like? What is the structure of this 'Object'?

How would you instantiate it? What kind of...
Forum: Java Aug 12th, 2005
Replies: 9
Views: 2,088
Posted By Kate Albany
Hi again,

I see this is also in another thread. I believe Jwenting has it right. I completly missed that you are not flushing the buffer, try:

while ((len = in.read(buffer1)) > 0) {
...
Forum: Java Aug 12th, 2005
Replies: 9
Views: 2,088
Posted By Kate Albany
Hi,

Have you tried increasing the JVM's Heap spaces? Research the '-Xms' & '-Xmx' command line parameters. Example:

Java -Xms65536k -Xmx65536k .....

Also '-XX:NewSize', '-XX:MaxNewSize',...
Forum: Java Aug 9th, 2005
Replies: 2
Views: 1,498
Posted By Kate Albany
Hi Richard,

Unfortunately I don't believe this is possible. You cannot output 9 bits to the Parallel Port using java.io.OutputStream.write(int b)


As you say, even using the overloaded byte[]...
Forum: Java Jul 16th, 2005
Replies: 3
Views: 2,823
Posted By Kate Albany
Morning Richard,

Now that has me rather confused. You should never have seen the output from:

System.out.println("You have returned");
As this should be an 'Unreachable Statement'. The...
Forum: Java Jul 15th, 2005
Replies: 3
Views: 2,823
Posted By Kate Albany
Hi Richard,

The JOptionPane.showInputDialog should NOT return until the user closes the Dialog, I quote from the JOptionPane API Class documentation:


Have you tried doing a System.out.println...
Forum: Java Jul 15th, 2005
Replies: 4
Views: 8,459
Posted By Kate Albany
Thanks jwenting,

Yes I have set the 'eden' heap sizes, using the '-Xms' & '-Xmx' arguments:

-Xms16384k
-Xmx16384k

I have also reduced the 'new' heap sizes:

-XX:NewSize=12288k
Forum: Java Jul 14th, 2005
Replies: 4
Views: 8,459
Posted By Kate Albany
Well I have an idea, I am working on creating a 'slave' process which will start and stop processes by spawning them into a new Thread ... So in essence each 'Process' will be running within its own...
Forum: Java Jul 14th, 2005
Replies: 4
Views: 8,459
Posted By Kate Albany
Forum: Java Jun 30th, 2005
Replies: 10
Views: 2,050
Posted By Kate Albany
I guess that through me then

---------------

Mike, use another JTextField or JLabel to display the message, as your doing for the answer ... it is the simplest way
Forum: Java Jun 30th, 2005
Replies: 10
Views: 2,050
Posted By Kate Albany
The string "Division by zero not allowed" will not be displayed on the applet, it will be displayed in the console. You can see this messege by opening the Java Console while the applet is running...
Forum: Java Jun 29th, 2005
Replies: 10
Views: 2,050
Posted By Kate Albany
As red_evolve has already mentioned, there appears to be no definition for 'zero' in the code you have posted. Since you have already parsed the denominatorField (TextField) into denominator (double)...
Forum: Java Jun 25th, 2005
Replies: 4
Views: 8,459
Posted By Kate Albany
Hi,

I am running a system which consists of eight concurrent Java processes. All these processes run on the same box and are backend daemon processes which means they are designed to be started...
Forum: Java Jun 24th, 2005
Replies: 8
Views: 3,345
Posted By Kate Albany
There is an error in the classpath you have specified. You have a '\' after QTJava.zip, you need a ';' (semi colon) there.

Like this:
...
Showing results 1 to 32 of 32

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC