[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#510150: marked as done (sun-java6-jre: -classpath is ignored)

Your message dated Thu, 11 Feb 2010 09:45:02 +0100
with message-id <1265877902.5160.2460.camel@korcula.inria.fr>
and subject line 
has caused the Debian Bug report #510150,
regarding sun-java6-jre: -classpath is ignored
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org

510150: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=510150
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: sun-java6-jre
Version: 6-07-4
Severity: normal


It seems as if the latest version of the JRE ignores the -classpath.

folkert@mauer:~$ java -classpath /usr/share/java/mysql-connector-java-5.1.6.jar  -jar testmysql.jar
exception: java.lang.ClassNotFoundException: com.mysql.jdbc.Driver
Library path: /usr/lib/jvm/java-6-sun-

if -classpath expects a path, it doesn't work either:

folkert@mauer:~$ java -classpath /usr/share/java  -jar testmysql.jar
exception: java.lang.ClassNotFoundException: com.mysql.jdbc.Driver
Library path: /usr/lib/jvm/java-6-sun-

import java.util.*;
import java.sql.*;

class testmysql
        static public void main(String [] args)

                        System.out.println("  mysql connect");
                        Connection con = DriverManager.getConnection("jdbc:mysql://mauer:3306/posbook", "pos", "pospw");
                        System.out.println("  mysql connected!");

                        String query = "SELECT (avg(white) + avg(black)) / 2.0 AS scaler FROM book";
                        Statement stmt = con.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY);
                        ResultSet rs = stmt.executeQuery(query);
                        if (rs.next())
                                System.out.println("result: " + rs.getDouble("scaler"));
                                System.out.println("nothing returned");
                catch(Exception e)
                        System.out.println("exception: " + e);
                        System.out.println("Library path: " + System.getProperty("java.library.path"));

Main-Class: testmysql

jar creation commandline:
jar cmf testmysql-manifest.txt testmysql.jar testmysql.class

-- System Information:
Debian Release: 5.0
  APT prefers testing
  APT policy: (500, 'testing'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.26-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1)
Shell: /bin/sh linked to /bin/bash

Versions of packages sun-java6-jre depends on:
ii  debconf [debconf-2.0]         1.5.24     Debian configuration management sy
ii  java-common                   0.30       Base of all Java packages
ii  locales                       2.7-16     GNU C Library: National Language (
ii  sun-java6-bin                 6-07-4     Sun Java(TM) Runtime Environment (

Versions of packages sun-java6-jre recommends:
pn  gsfonts-x11                   <none>     (no description available)

Versions of packages sun-java6-jre suggests:
pn  sun-java6-fonts               <none>     (no description available)
pn  sun-java6-plugin | ia32-sun-j <none>     (no description available)
pn  ttf-arphic-uming              <none>     (no description available)
pn  ttf-baekmuk | ttf-unfonts | t <none>     (no description available)
pn  ttf-kochi-gothic | ttf-sazana <none>     (no description available)
pn  ttf-kochi-mincho | ttf-sazana <none>     (no description available)

-- debconf information:
  sun-java6-jre/stopthread: true
* shared/accepted-sun-dlj-v1-1: true
* shared/present-sun-dlj-v1-1:

--- End Message ---
--- Begin Message ---

--- End Message ---

Reply to: