Search:

Type: Posts; User: 2k.

Search: Search took 0.29 seconds.

  1. Replies
    10
    Views
    1,244

    Re: Problems connecting to mysql database on network

    I have got it working (well i have got it working to the point that the server rejects the request) by setting $CLASSPATH with the following



    CLASSPATH=.:../:/usr/share/java/mysql-jdbc/*...
  2. Replies
    10
    Views
    1,244

    Re: Problems connecting to mysql database on network

    I'm using a text editor and bash rather than a full blown IDE to do this as my book doesn't cover any editors and they look a bit scary!
  3. Replies
    10
    Views
    1,244

    Re: Problems connecting to mysql database on network

    Thanks for everyones help so far

    It seems that it is an issue with the jdbc driver not being in the classpath. Now to work out how to get around this problem, there seems to be some debate as to...
  4. Replies
    10
    Views
    1,244

    Re: Problems connecting to mysql database on network

    right I think i get it

    I have changed the code to show the following


    catch (ClassNotFoundException e)
    {
    System.out.println(e.getMessage());
    e.printStackTrace();
    ...
  5. Replies
    10
    Views
    1,244

    Re: Problems connecting to mysql database on network

    how do I go about doing that? sorry to sound thick!
  6. Replies
    10
    Views
    1,244

    Problems connecting to mysql database on network

    Hi there,

    I'm currently teaching myself Java from a for dummies book. However I have currently got stuck on the section to connect to a mysql database, in the book it assumes that the database is...
  7. Replies
    5
    Views
    360

    Re: issues with a float

    cheers for the replies
    by changing to


    tdartave = 501.0f / nthrows;


    I get the result 55.666668 which is perfect for the time being, having it rounding down to 55 the three dart average was...
  8. Replies
    5
    Views
    360

    Re: issues with a float

    hmm this is puzzling,

    I have change the line
    tdartave = (501 / nthrows);

    to the following
    tdartave = (501.0 / nthrows);

    and i'm now getting this error
  9. Replies
    5
    Views
    360

    issues with a float

    Hi there,

    I have decided to learn java programming, rather than working though a book which i find very dull i have just dived in by writing (trying to write) an application.

    my application is...
Results 1 to 9 of 9