Hi,
I'm trying to learn glade. autogen.sh failed on my first try; giving the error
below:
./configure: line 4068: syntax error near unexpected token `PACKAGE,'
./configure: line 4068: `PKG_CHECK_MODULES(PACKAGE, $pkg_modules)'
Then i learned that i had to install pkgconfig; i did so; but this time
autogen gave the following error:
checking for gtk+-2.0 >= 2.0.0... Package gtk+-2.0 was not found in the
pkg-config search path.
Perhaps you should add the directory containing `gtk+-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gtk+-2.0' found
configure: error: Library requirements (gtk+-2.0 >= 2.0.0) not met; consider
adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a
nonstandard prefix so pkg-config can find them.
How do i have to set PKG_CONFIG_PATH environment variable?
Thanks in advance.
Dear my friends...
I am developing a database application with Adabas D Database Server and Sun Java. The connection between the Adabas D and my application will be built by JDBC (adabasd.jar).
My DBROOT is : /usr/sag/aad/v1201
The JDBC driver of Adabas D is under : /usr/sag/aad/v1201/lib
Here is my code :
===
import java.sql.*;
public class konek
{
public static void main(String[] args)
{
System.out.println("Hallo Indonesia");
try {
Class.forName("de.sag.jdbc.adabasd.aDriver");
} catch (ClassNotFoundException e){
system.out.println("JDBC driver for Adabas D not found");
};
try {
java.sql.Connection con = java.sql.DriverManager.getConnection("jdbc:adabasd://susefujitsu/iamsoft", "control", "duisburg");
} catch (java.sql.SQLException e) {
system.out.println("Error " + e.getErrorCode() + " " + e.getMessage());
}
}
}
===
But If I compile it with this command : "javac konek.java" than I will get this error message :
"
konek.java:12:package system does not exist
<----> system.out.println("JDBC driver for Adabas D not found");
konek.java:17:package system does not exist
<----> system.out.println("Error" + e.getErrorCode() + " " + e.getMessage());
"
Where is the problem ?
---------------------------------
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
Class.forName(driver_class) is the standard way to load the driver.
But no matter where you put the jar whith the driver, you always have to add
the path(jar included) to your classpath.
When you run the application:
java -classpath /usr/sag/aad/v1201/lib/adabasd.jar:.:other_jars_and_path
myapp
-----Mensaje original-----
De: Prabu Subroto [mailto:prabu_subroto@yahoo.com]
Enviado el: Monday, June 30, 2003 4:22 PM
Para: Suse Programming Milis
Asunto: [suse-programming-e] Understanding JDBC to Adabas D
Dear my friends...
I found this codes in the "internet guide" of Adabas D for doing the
connection with JDBC to Adabas D : === import java.sql.*; public class konek
{
public static void main(String[] args)
{
System.out.println("Hallo Indonesia");
try {
Class.forName("de.sag.jdbc.adabasd.aDriver");
} catch (ClassNotFoundException e){
system.out.println("JDBC driver for Adabas D not found");
};
try {
java.sql.Connection con =
java.sql.DriverManager.getConnection("jdbc:adabasd://susefujitsu/prabusoft",
"control", "duisburg");
} catch (java.sql.SQLException e) {
system.out.println("Error " + e.getErrorCode() + " " + e.getMessage());
}
}
}
===
I put my JDBC driver under "/usr/sag/aad/v1201/lib/adabasd.jar".
I don't understand this line :
"
Class.forName("de.sag.jdbc.adabasd.aDriver");
"
Is it different on my my case? I mean, how should I do it on my case? Is
there no difference? Where should I define the location of my JDBC Driver?
and should I load it?
Sorry pal, I am absolutely new in JDBC.
---------------------------------
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
Hi,
That's because you wrote system, not System when you catch the exception...
-----Mensaje original-----
De: Prabu Subroto [mailto:prabu_subroto@yahoo.com]
Enviado el: Monday, June 30, 2003 4:12 PM
Para: Suse Programming Milis
Asunto: [suse-programming-e] JDBC + Adabas D + SuSE 8.2 (first time)
Dear my friends...
I am developing a database application with Adabas D Database Server and Sun
Java. The connection between the Adabas D and my application will be built
by JDBC (adabasd.jar).
My DBROOT is : /usr/sag/aad/v1201
The JDBC driver of Adabas D is under : /usr/sag/aad/v1201/lib
Here is my code :
===
import java.sql.*;
public class konek
{
public static void main(String[] args)
{
System.out.println("Hallo Indonesia");
try {
Class.forName("de.sag.jdbc.adabasd.aDriver");
} catch (ClassNotFoundException e){
system.out.println("JDBC driver for Adabas D not found");
};
try {
java.sql.Connection con =
java.sql.DriverManager.getConnection("jdbc:adabasd://susefujitsu/iamsoft",
"control", "duisburg");
} catch (java.sql.SQLException e) {
system.out.println("Error " + e.getErrorCode() + " " + e.getMessage());
}
}
}
===
But If I compile it with this command : "javac konek.java" than I will get
this error message : " konek.java:12:package system does not exist <---->
system.out.println("JDBC driver for Adabas D not found");
konek.java:17:package system does not exist <---->
system.out.println("Error" + e.getErrorCode() + " " + e.getMessage()); "
Where is the problem ?
---------------------------------
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
Dear my friends...
I found this codes in the "internet guide" of Adabas D for doing the connection with JDBC to Adabas D :
===
import java.sql.*;
public class konek
{
public static void main(String[] args)
{
System.out.println("Hallo Indonesia");
try {
Class.forName("de.sag.jdbc.adabasd.aDriver");
} catch (ClassNotFoundException e){
system.out.println("JDBC driver for Adabas D not found");
};
try {
java.sql.Connection con = java.sql.DriverManager.getConnection("jdbc:adabasd://susefujitsu/prabusoft", "control", "duisburg");
} catch (java.sql.SQLException e) {
system.out.println("Error " + e.getErrorCode() + " " + e.getMessage());
}
}
}
===
I put my JDBC driver under "/usr/sag/aad/v1201/lib/adabasd.jar".
I don't understand this line :
"
Class.forName("de.sag.jdbc.adabasd.aDriver");
"
Is it different on my my case? I mean, how should I do it on my case? Is there no difference? Where should I define the location of my JDBC Driver? and should I load it?
Sorry pal, I am absolutely new in JDBC.
---------------------------------
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
I think the problem with the replies is that they are all subjective (which is natural).
Whilst I don't have any problems with QT, here is what I would say is the "other side" to give a balanced view.
1. I have to say that I emailed Julian Smart, the creator of wxwindows a few times (I too had lots of questions) and was very impressed with the replies; disregarding technical merit for the moment, I would recommend wxwindows politically.
2. I know you said "apart from the licence", but I also found this to be an important factor. Basically, if you want to create free software (libre) and distribute it, then you can. However if you want to create commercial software, you can with wxwindows but can't with QT unless you buy the full product (expensive).
3. I personally think (subjective!) that the C++ implementation is cleaner in wxwindows and doesn't need things such as MOC. It also promises to be as platform independant as possible.
I think that a lot of people are enthusiastic about QT because it is used by the "darling" crowd for KDE. I have no objections with KDE (I use it about 50% of the time) or QT, but like I said earlier we need to stay as objective as we can.
Mit freundlichem Gruß / Best regards
-----Ursprüngliche Nachricht-----
Von: Praise [mailto:praisetazio@tiscalinet.it]
Gesendet: Freitag, 20. Juni 2003 21:08
An: suse-programming-e(a)suse.com
Betreff: [suse-programming-e] wxwindows or qt?
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi all,
I will be starting a project for a multi-platform chat client within a month.
Supported platforms will be Linux and Windows. I thought I was going to use
qt, when I discovered the free wxwindows.
So here it is my question:
apart from license, what is better? qt or wxwindows?
Just looking for your experiences and thoughts.
Praise
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2-rc1-SuSE (GNU/Linux)
iD8DBQE+81ui6v3ZTabyE8kRAvDGAKDRtLLSOTmKdANU7+1qBEyayTeC3gCdGW+M
iYwtaJeP6Q3YjpqmN1lIP1g=
=0jQB
-----END PGP SIGNATURE-----
--
To unsubscribe, email: suse-programming-e-unsubscribe(a)suse.com
For additional commands, email: suse-programming-e-help(a)suse.com Archives can be found at: http://lists.suse.com/archive/suse-programming-e
In SuSE 8.1 with the same layout, the program gtkterm configures
and
makes without problems.
from config.log...... I made the symlinks
/usr/include/gtk-2.0/gtk ->
/usr/include/gtk etc.
configure:7086: checking for pkg-config
configure:7104: found /usr/bin/pkg-config
configure:7117: result: /usr/bin/pkg-config
configure:7138: checking for GTK+ - version >= 2.0.0
configure:7284: result: no
configure:7318: gcc -o conftest -g -O2 conftest.c >&5
In file included from /usr/include/gdk/gdkcolor.h:4,
from /usr/include/gdk/gdk.h:30,
from /usr/include/gtk/gtk.h:31,
from configure:7370:
/usr/include/gdk/gdktypes.h:32:18: glib.h: No such file or directory
/usr/include/gdk/gdktypes.h:33:25: pango/pango.h: No such file or
directory
/usr/include/gdk/gdktypes.h:34:25: glib-object.h: No such file or
directory
/usr/include/gdk/gdktypes.h:51:23: gdkconfig.h: No such file or
directory
In file included from /usr/include/gdk/gdkcolor.h:4,
from /usr/include/gdk/gdk.h:30,
from /usr/include/gtk/gtk.h:31,
from configure:7370:
/usr/include/gdk/gdktypes.h:76: error: parse error before "GdkWChar"
/usr/include/gdk/gdktypes.h:89: error: parse error before
"GdkNativeWindow"
/usr/include/gdk/gdktypes.h:168: error: parse error before "data"
/usr/include/gdk/gdktypes.h:172: error: parse error before "data"
/usr/include/gdk/gdktypes.h:176: error: parse error before "gint"
/usr/include/gdk/gdktypes.h:182: error: parse error before "gint"
/usr/include/gdk/gdktypes.h:184: error: parse error before "width"
/usr/include/gdk/gdktypes.h:185: error: parse error before "height"
/usr/include/gdk/gdktypes.h:190: error: parse error before "gint"
/usr/include/gdk/gdktypes.h:192: error: parse error before "x2"
/usr/include/gdk/gdktypes.h:193: error: parse error before "y2"
/usr/include/gdk/gdktypes.h:198: error: parse error before "gint"
/usr/include/gdk/gdktypes.h:200: error: parse error before "width"
In file included from /usr/include/gdk/gdk.h:30,
from /usr/include/gtk/gtk.h:31,
from configure:7370:
/usr/include/gdk/gdkcolor.h:19: error: parse error before "guint32"
/usr/include/gdk/gdkcolor.h:21: error: parse error before "green"
/usr/include/gdk/gdkcolor.h:22: error: parse error before "blue"
/usr/include/gdk/gdkcolor.h:41: error: parse error before "GObject"
/usr/include/gdk/gdkcolor.h:50: error: parse error before
"windowing_data"
/usr/include/gdk/gdkcolor.h:55: error: parse error before "GObjectClass"
/usr/include/gdk/gdkcolor.h:59: error: parse error before
"gdk_colormap_get_type"
/usr/include/gdk/gdkcolor.h:59: error: parse error before "G_GNUC_CONST"
/usr/include/gdk/gdkcolor.h:62: error: parse error before "gboolean"
from /usr/include/gtk/gtk.h:31,
from configure:7370:
/usr/include/gdk/gdkcolor.h:19: error: parse error before "guint32"
/usr/include/gdk/gdkcolor.h:21: error: parse error before "green"
/usr/include/gdk/gdkcolor.h:22: error: parse error before "blue"
/usr/include/gdk/gdkcolor.h:41: error: parse error before "GObject"
/usr/include/gdk/gdkcolor.h:50: error: parse error before
"windowing_data"
/usr/include/gdk/gdkcolor.h:55: error: parse error before "GObjectClass"
/usr/include/gdk/gdkcolor.h:59: error: parse error before
"gdk_colormap_get_type"
/usr/include/gdk/gdkcolor.h:59: error: parse error before "G_GNUC_CONST"
/usr/include/gdk/gdkcolor.h:62: error: parse error before "gboolean"
/usr/include/gdk/gdkcolor.h:76: error: parse error before
"gdk_colormap_get_system_size"
/usr/include/gdk/gdkcolor.h:82: error: parse error before "gint"
/usr/include/gdk/gdkcolor.h:85: error: parse error before
"gdk_colormap_alloc_colors"
/usr/include/gdk/gdkcolor.h:87: error: parse error before "gint"
/usr/include/gdk/gdkcolor.h:91: error: parse error before
"gdk_colormap_alloc_color"
/usr/include/gdk/gdkcolor.h:93: error: parse error before "gboolean"
/usr/include/gdk/gdkcolor.h:97: error: parse error before "gint"
/usr/include/gdk/gdkcolor.h:99: error: parse error before "gulong"
/usr/include/gdk/gdkcolor.h:106: error: parse error before
"gdk_color_parse"
/usr/include/gdk/gdkcolor.h:106: error: parse error before '*' token
/usr/include/gdk/gdkcolor.h:108: error: parse error before
"gdk_color_hash"
/usr/include/gdk/gdkcolor.h:109: error: parse error before
"gdk_color_equal"
/usr/include/gdk/gdkcolor.h:112: error: parse error before
"gdk_color_get_type"
/usr/include/gdk/gdkcolor.h:118: error: parse error before "gint"
/usr/include/gdk/gdkcolor.h:119: error: parse error before
"gdk_color_white"
/usr/include/gdk/gdkcolor.h:121: error: parse error before
"gdk_color_black"
/usr/include/gdk/gdkcolor.h:123: error: parse error before
"gdk_color_alloc"
/usr/include/gdk/gdkcolor.h:125: error: parse error before
"gdk_color_change"
/usr/include/gdk/gdkcolor.h:131: error: parse error before
"gdk_colors_alloc"
/usr/include/gdk/gdkcolor.h:132: error: parse error before "gboolean"
/usr/include/gdk/gdkcolor.h:138: error: parse error before "gulong"
In file included from /usr/include/gdk/gdk.h:31,
from /usr/include/gtk/gtk.h:31,
from configure:7370:
/usr/include/gdk/gdkcursor.h:100: error: parse error before "guint"
/usr/include/gdk/gdkcursor.h:106: error: parse error before
"gdk_cursor_get_type"
/usr/include/gdk/gdkcursor.h:117: error: parse error before "gint"
In file included from /usr/include/gdk/gdkevents.h:6,
from /usr/include/gdk/gdkdisplay.h:28,
from /usr/include/gdk/gdk.h:32,
from /usr/include/gtk/gtk.h:31,
I have all the development stuff installed for glib and gtk+, but I
get
this whenever I try to configure anything needing gtk+. I even made a
symlink /usr/lib/libgtk-x11-2.0.so to /usr/lib/libgtk+-2.0.so.
checking for pkg-config... /usr/bin/pkg-config
checking for GTK+ - version >= 2.0.0... no
*** Could not run GTK+ test program, checking why...
*** The test program failed to compile or link. See the file
config.log
for the
*** exact error that occured. This usually means GTK+ is incorrectly
installed.
configure: error: *** GTK >= 2.0 not installed ***
Help appreciated.
Regards
Sid.
--
Sid Boyce ... hamradio G3VBV ... Cessna/Warrior Pilot
Linux only shop
(Sorry about the previous post of this message in the 'wxwindws or qt thread')
Hello,
I tried to use the Java comm API under Suse8.0, I got the RXTX libs and
installed it, got the Solaris comm API and installed it (following this
document :
http://wass.homelinux.net/howtos/Comm_How-To.shtml
When i compile a simple test program everything is OK, the compile gives no
errors.
When i try to run the program an error occurs :
Caught java.lang.ClassCastException: gnu.io.RXTXCommDriver while loading
driver gnu.io.RXTXCommDriver
Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no
SolarisSerialParallel in java.library.path
Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver
com.sun.comm.SolarisDriver
I know that this has got something to do with Java being unable to find the
object files of the comm library.
I also know that it has got something to with the 'javax.comm.properties'
file, if i rename this file the message changes to the following :
Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no
SolarisSerialParallel in java.library.path
Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver
com.sun.comm.SolarisDriver
Error loading SolarisSerial: java.lang.UnsatisfiedLinkError: no
SolarisSerialParallel in java.library.path
Caught java.lang.UnsatisfiedLinkError: readRegistrySerial while loading driver
com.sun.comm.SolarisDriver
What i don't know however is how to correct this!!.
So, my actual questions are :
1) Is anyone using the java.com API and how did you get it installed.
2) Is there a way to correct my errors ??
Grtz Dries Pruimboom
--
<End of message>
--
<End of message>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi all,
I will be starting a project for a multi-platform chat client within a month.
Supported platforms will be Linux and Windows. I thought I was going to use
qt, when I discovered the free wxwindows.
So here it is my question:
apart from license, what is better? qt or wxwindows?
Just looking for your experiences and thoughts.
Praise
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2-rc1-SuSE (GNU/Linux)
iD8DBQE+81ui6v3ZTabyE8kRAvDGAKDRtLLSOTmKdANU7+1qBEyayTeC3gCdGW+M
iYwtaJeP6Q3YjpqmN1lIP1g=
=0jQB
-----END PGP SIGNATURE-----