• Member Avatar for JamesCherrill
    JamesCherrill

    Replied To a Post in Moving files problem

    Maybe you have an earlier version of the code that started executing but has not terminated for some reason? Check your task manager for running versions of java.exe or javaw.exe …
  • Member Avatar for JamesCherrill
    JamesCherrill

    Replied To a Post in Understanding undocumented code

    Oh yes, far too often. 2 times out of 3 it seemed begtter to guess the external spec and re-code from scratch, 1 time in 3 try to fix it. …
  • Member Avatar for JamesCherrill
    JamesCherrill

    Replied To a Post in jList

    You really are not trying. Google JList tutorial. Go to the official Oracle tutorial. Go to the section called "Adding Items to and Removing Items from a List"
  • Member Avatar for JamesCherrill
    JamesCherrill

    Replied To a Post in Change File path by code

    The new Java IO classes (Path & Files) include a method to do exactly that. https://docs.oracle.com/javase/8/docs/api/java/nio/file/Files.html#move-java.nio.file.Path-java.nio.file.Path-java.nio.file.CopyOption...- You may need a little time to understand the differences between NIO ("New I/O") …
  • Member Avatar for JamesCherrill
    JamesCherrill

    Replied To a Post in Change File path by code

    Do you mean you want to MOVE the file from C: to D: ?
  • Member Avatar for JamesCherrill
    JamesCherrill

    Replied To a Post in Junit testing

    Maybe created a class with the same name as a JRE class that was imported with a .* ?
  • Member Avatar for JamesCherrill
    JamesCherrill

    Replied To a Post in How to use lock objects between 2 different applications

    Oh. Yes. You're right. My mistake - I apologise. Maybe it's slow because you are thrashing the file system with 1000 requests per second. Depending on your latency requirements you …
  • Member Avatar for JamesCherrill
    JamesCherrill

    Replied To a Post in how to calculate

    OK Mark this one "solved" and start a new thread for a new question. J
  • Member Avatar for JamesCherrill
    JamesCherrill

    Replied To a Post in how to calculate

    "I get a syntax error stating that it might not be initialized." There's the answer. It tells you which variable you forgot to calculate.
  • Member Avatar for JamesCherrill
    JamesCherrill

    Replied To a Post in how to calculate

    Well, yes. Your calcs are a bit of a mess to be honest. Start by tidying up your variables. For example - the user's input goes into `hrswrk`, but in …
  • Member Avatar for JamesCherrill
    JamesCherrill

    Replied To a Post in How to use lock objects between 2 different applications

    That sleeps even if the file is available. Maybe better like while (true) { try { get filestream break; } catch ... { sleep 1 } )
  • Member Avatar for JamesCherrill
    JamesCherrill

    Replied To a Post in how to calculate

    They look kinda importatnt to me. Maybe you should be using them rather than deleting them.
  • Member Avatar for JamesCherrill
    JamesCherrill

    Replied To a Post in how to calculate

    You calculate values on lines 28,29,30 but you don't use them in the following calculations.
  • Member Avatar for JamesCherrill
    JamesCherrill

    Replied To a Post in how to calculate

    You know the rules: try to do it yourslef. Post your best attempt and we'll help from there.
  • Member Avatar for JamesCherrill
    JamesCherrill

    Replied To a Post in Void

    More formally: public void move(void) is not a valid Java method signature, so all this post adds to the previous answers is a mistake.
  • Member Avatar for JamesCherrill
    JamesCherrill

    Replied To a Post in How to use lock objects between 2 different applications

    Maybe you could use a 1 byte file and open it for exclusive access for use as a system-wide lock?
  • Member Avatar for JamesCherrill
    JamesCherrill

    Gave Reputation to karthick_2 in pirates

    give me programes for these problems its urgent
  • Member Avatar for JamesCherrill
    JamesCherrill

    Replied To a Post in Reading all text files from a folder

    `catch(Exception e) {}` **Never** do that. Maybe there's an exception being thrown, but you have supressed it. Change it to `catch(Exception e) {e.printStackTrace();}` and try again Also. think about what …
  • Member Avatar for JamesCherrill
    JamesCherrill

    Replied To a Post in Driver error

    Also, you need to find some more up to date sources of Java code! `classForName` has been obsolete for many years now, so ignore any tutorial that uses it (Oracle's …
  • Member Avatar for JamesCherrill
    JamesCherrill

    Replied To a Post in Driver error

    Which line of the code is throwing that Exception?
  • Member Avatar for JamesCherrill
    JamesCherrill

    Replied To a Post in Exceptions

    Which line is throwing the Exception?
  • Member Avatar for JamesCherrill
    JamesCherrill

    Replied To a Post in java program bank account

    OK, I created that class. Now would you like me to send it directly to your teacher on your behalf, or would you prefer to try to do it yourself?
  • Member Avatar for JamesCherrill
    JamesCherrill

    Replied To a Post in Void

    "Java" includes the API, and the standard API includes a class `Void` It's no different from "class" vs "Class" https://docs.oracle.com/javase/8/docs/api/java/lang/Void.html
  • Member Avatar for JamesCherrill
    JamesCherrill

    Replied To a Post in Name for project

    I like BlMath2015 It also establishes a system for naming future releases...
  • Member Avatar for JamesCherrill
    JamesCherrill

    Replied To a Post in Java program

    Read the [DaniWeb rules](https://www.daniweb.com/community/rules) If you want help you must show effort Post in full-sentence English Now... start again
  • Member Avatar for JamesCherrill
    JamesCherrill

    Replied To a Post in write text inside a .txt file in java

    Use a [PrintStream](http://docs.oracle.com/javase/8/docs/api/java/io/PrintStream.html) Just create a PrintStream using your File and print to it just like you print to System.out Something like: File out = new File( etc etc); PrintStream …
  • Member Avatar for JamesCherrill
    JamesCherrill

    Replied To a Post in A Taste of Swift part 2

    Apple OSX only runs on Macintoshes, and comes as standard with every Mac, so you never need to buy it. All the upgrades are also free (at least for now).
  • Member Avatar for JamesCherrill
    JamesCherrill

    Replied To a Post in Java

    DaniWeb Member Rules (which you agreed to when you signed up) include: "Do provide evidence of having done some work yourself if posting questions from school or work assignments" http://www.daniweb.com/community/rules …
  • Member Avatar for JamesCherrill
    JamesCherrill

    Replied To a Post in WindowConstants' Constants, or JFrame's Constants?

    I don't understand! Why mention WindowListener? The question was about the constant values defined in the two classes.
  • Member Avatar for JamesCherrill
    JamesCherrill

    Replied To a Post in just need a boost to start

    DLL files are undesirable, especially because they prevent you running the application on a different platform. You are asking all the wrong questuions in the wrong order. 1. Document your …
  • Member Avatar for JamesCherrill
    JamesCherrill

    Replied To a Post in Java program

    You just copy/pasted your assignment without even a moment taken to explain what help you need. That's highly disrepestectful to the many people who give their time to help others …
  • Member Avatar for JamesCherrill
    JamesCherrill

    Replied To a Post in Reading all text files from a folder

    You are trying to open an input stream on the directory `filedir` itself, which cannot work. I suspect you wanted to open the stream on each `file` in that loop. …
  • Member Avatar for JamesCherrill
    JamesCherrill

    Replied To a Post in select item from jtable in netbeans & click a jbutton to cast a vote(mysql)

    In your action event handler: see which candidate they voted for run an SQL UPDATE command to update the datbase accordingly
  • Member Avatar for JamesCherrill
    JamesCherrill

    Edited Java Script

    Help please? ineed to make a program. A program that calculates the average grade of the 3 quizzes taken by the student. Ask the user to enter his/her grades. The …
  • Member Avatar for JamesCherrill
    JamesCherrill

    Replied To a Post in just need a boost to start

    "what the use of dll files in our java project" Since we have zero information about your project there is no possible way to answer that question. Are you just …
  • Member Avatar for JamesCherrill
    JamesCherrill

    Replied To a Post in select item from jtable in netbeans & click a jbutton to cast a vote(mysql)

    If you need Java code for your homework then you have to write it yourself; nobody here will do your homework for you. If you make an effort, and get …
  • Member Avatar for JamesCherrill
    JamesCherrill

    Replied To a Post in Automatically export data in different folders

    Are you storing the data in a SQL database, or in files inside a directory???
  • Member Avatar for JamesCherrill
    JamesCherrill

    Replied To a Post in Reading all text files from a folder

    Line 16 is a blank line. Exactly which line of code is throwing the exception and what exactly are the contents of the filelist?
  • Member Avatar for JamesCherrill
    JamesCherrill

    Replied To a Post in Reading all text files from a folder

    Not quite. When you say "the second one" are you referring to `listOfFiles[1]` ? What exactly are the values in listOfFiles when the exception is thrown. You still didn't say …
  • Member Avatar for JamesCherrill
    JamesCherrill

    Replied To a Post in GUI Input transfer?

    public static double getResult(){ return getResult(); } As soon as you call this method you will get a stack overflow. getResult calls getResult in an infinite recursive loop. I guess …
  • Member Avatar for JamesCherrill
    JamesCherrill

    Replied To a Post in Reading all text files from a folder

    What was the exact file/path that you were processing for the second one?
  • Member Avatar for JamesCherrill
    JamesCherrill

    Replied To a Post in Creating a program to send information to server about game activity

    Obviously you would want to use a cross-platform language for the communications etc, but the monitoring for game apps starting/stopping would presumably be completely different
  • Member Avatar for JamesCherrill
    JamesCherrill

    Replied To a Post in Creating a program to send information to server about game activity

    The reporting and messaging is not difficult at all. Identifying when a game is started or closed could be more difficult, depending on what the operating system is, and whether …
  • Member Avatar for JamesCherrill
    JamesCherrill

    Replied To a Post in Reading all text files from a folder

    On which line did it throw the exception? What was the file/path that you were processing at the time?
  • Member Avatar for JamesCherrill
    JamesCherrill

    Replied To a Post in just need a boost to start

    Please read my previous post.
  • Member Avatar for JamesCherrill
    JamesCherrill

    Replied To a Post in just need a boost to start

    Use your debugger (or lots of print statements) to trace the execution of both the server and the client so you can see what is happening.
  • Member Avatar for JamesCherrill
    JamesCherrill

    Replied To a Post in select item from jtable in netbeans & click a jbutton to cast a vote(mysql)

    Exactly what help do you need?
  • Member Avatar for JamesCherrill
    JamesCherrill

    Replied To a Post in Automating Excel Formula For Multiple Columns

    Why a loop? Why not just create a sum formula with one relative bound and one absolute, eg cell f1 =sum(f1:$O1) and replicate that by dragging it across the remaining …
  • Member Avatar for JamesCherrill
    JamesCherrill

    Replied To a Post in Relying on Try-Catch enough to ensure the Process was successfully started?

    I think that will catch problems where the OS was not able to load and start the process. I think it will not catch any problems that the new process …
  • Member Avatar for JamesCherrill
    JamesCherrill

    Replied To a Post in WindowConstants' Constants, or JFrame's Constants?

    JFrame's DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, HIDE_ON_CLOSE are inherited from WindowConstants (`JFrame implements WindowConstants`) EXIT_ON_CLOSE seems a historical oddity - it was first implemented in JFrame in Java 1.3, but then added to …

The End.