Re: AW: cannot use cayenneModeler

From: Holger Hoffstätte (holge..izards.de)
Date: Fri Jan 03 2003 - 16:02:30 EST

  • Next message: Dave Paules: "n:m relationship problem. Primary key violations. Query mis-count s"

    Andrus Adamchik wrote:
    > From the exception you sent it is clear that MySQL Driver is not accessible
    > to CayenneModeler (more precisely - to the JVM that started Modeler). I know
    > on Windows sometimes both JDK and JRE are installed in separate locations (I
    > am not sure if this is still the case). So I guess we are getting closer.

    This is still the case (in fact the JRE is installed *twice* - once with
    the JDK and once alone, for WebStart and the browser plugin) and a
    constant source of unnecessary confusion - just because the people at
    JavaSoft are so terribly careless. Maybe they don't want Java to be easy,
    it's a real pity.
    The JDK contains a JRE with a lib/ext directory that _most likely will not
    be used_. The one that _will_ be used is most likely in
    C:\Programs\Java\Java Runtime Environment or something like that. Which
    JRE is used is determined by a bunch of registry keys under
    "HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment".

    ** Cool trick to make life easier for developers **

    - make sure you have the SDK installed, not just the JRE
    - delete the standalone JRE in Programs\Java\Java Runtime Environment or
    whatever it's called
    - hunt the registry for all (now stale) C:\Programs\Java\.. references and
    point them to the JRE in the JDK installation location instead

    ..et voilá: a JRE and lots of paths less to worry about. I totally hate
    doing this every time I install a new SDK but it really makes life easier
    for me.

    -h



    This archive was generated by hypermail 2.0.0 : Fri Jan 03 2003 - 16:02:51 EST