System.out.println() problem

When I use operator + for concatenate the following Strings

md.getDriverName() + md.getDriverVersion()

as follow in a try block:

try {

con = DriverManager.getConnection(sourceURL,user,pass);

md = con.getMetaData();

System.out.println(md.getDriverName().+md.getDriverVersion());

}

when I have tried run java -cp postgresql.jar errors message appers :

Exception in thread "main" java.lang.NoClassDefFoundError: while resolving class: conx

at java.lang.VMClassLoader.transformException(java.lang.Class, java.lang.Throwable) (/usr/lib/libgcj.so.6.0.0)

at java.lang.VMClassLoader.resolveClass(java.lang.Class) (/usr/lib/libgcj.so.6.0.0)

at java.lang.Class.initializeClass() (/usr/lib/libgcj.so.6.0.0)

at java.lang.Class.forName(java.lang.String, boolean, java.lang.ClassLoader) (/usr/lib/libgcj.so.6.0.0)

at gnu.java.lang.MainThread.run() (/usr/lib/libgcj.so.6.0.0)

Caused by: java.lang.ClassNotFoundException: java.lang.StringBuilder not found in gnu.gcj.runtime.SystemClassLoader{urls=[file:postgresql.jar,file:./], parent=gnu.gcj.runtime.ExtensionClassLoader{urls=[], parent=null}}

at java.net.URLClassLoader.findClass(java.lang.String) (/usr/lib/libgcj.so.6.0.0)

at java.lang.ClassLoader.loadClass(java.lang.String, boolean) (/usr/lib/libgcj.so.6.0.0)

at java.lang.ClassLoader.loadClass(java.lang.String) (/usr/lib/libgcj.so.6.0.0)

at java.lang.Class.forName(java.lang.String, boolean, java.lang.ClassLoader) (/usr/lib/libgcj.so.6.0.0)

But when I have used netBeans IDE v 4.0 it works fine.

Might somebody help me for solve it.

[1699 byte] By [Miguel231152a] at [2007-10-2 8:41:09]
# 1

> Caused by: java.lang.ClassNotFoundException:

java.lang.StringBuilder not found in

gnu.gcj.runtime.SystemClassLoader{urls=[file:postgresql.jar,file:./],

As I noted in your other post, your computer is configured to use gnu.gcj, not Sun's Java - and it appears that gcj doesn't have the StringBuilder class; it was added to Sun Java in Java 5.

ChuckBinga at 2007-7-16 22:43:07 > top of Java-index,Developer Tools,Debugging and Profiling Tool APIs...
# 2
Thanks for all but I don't know what I must do ... I don't how I can solve it because I need run my app into a clean environment in a terminal normal under linux. Could you send me your opinion please ?Thanks
Miguel231152a at 2007-7-16 22:43:07 > top of Java-index,Developer Tools,Debugging and Profiling Tool APIs...
# 3
If you want to use code that requires Sun's Java version 1.5, then you need to install it and configure your computer to use it, not gcj.If you can't install it, then you'll have to only use features that gcj supports.
ChuckBinga at 2007-7-16 22:43:07 > top of Java-index,Developer Tools,Debugging and Profiling Tool APIs...