Postgresql-jdbc on Suse Linux

Hi,
I am writing a Java Swing application on Suse Linux and want to add Embedded SQL to it. The application should interact with a PostgreSQL database running on my local machine. The compiler complains that it cannot find the org.postgresql package included in the code. I'm guessing the problem is that the classpath is not set properly. But when I try to add the postgresql-jdbc driver to the classpath using "export CLASSPATH=$CLASSPATH:/usr/share/pgsql/pg73b1jdbc1.jar", the program stops recognizing the other Java files it uses. How do I set the classpath up properly?
Code sample:
import java.awt.*;
import javax.swing*;
import java.sql.*;
import org.postgresql.*;
public class MyClass
public static void main (String [] args)
MyFrame frame = new MyFrame();
MyPanel panel = new MyPanel();
// more code here
MyClass.java:4: package org.postgresql does not exist
import org.postgresql.*;
^
1 error
Any help is much appreciated.
Marina.

Hi, I figured it out - thanks to JimDinosaur's response, although to a different thread. I am posting a reply in case other people had the same question.
So, I had two problems: first, the package wasn't recognized; second, the rest of the Java files used by the code.
Jim suggested to use javac -classpath, listing all the directories needed, for the packages and the files. So I did, with the files directory being my current directory:
javac -classpath /usr/share/pgsql/pg73b1jdbc1.jar:. CloningGUI.java
Jim, you rock! :)

Similar Messages

  • PostgreSql JDBC from Red Hat Linux works on Windows not on Linux

    I started using ODI from a Windows XP box in development and Beta, and was successfully connecting to and loading data from several different database platforms including a PostgreSql database. I copied the PostgreSql JDBC driver to the ODI drivers folder, set up the connection information and it worked. When I moved from Windows XP to "Red Hat Enterprise Linux AS release 4 (Nahant Update 6)", I could no longer connect to this PostgreSql database. I put the same driver jar file "postgresql-8.3-603.jdbc3.jar" in the drivers folder and used the same connection string. All of the other drivers (Oracle, MS SQL, etc.) in that driver folder work correctly on this Linux box. I can even tell ODI to connect to the PostgreSql through the agent on the Windows XP machine and it works. That suggests that the URL must be OK, but for some reason it can't connect from the Linux box. I also tried updating to the newest driver"postgresql-8.3-604.jdbc3.jar" with no success.
    Any Ideas on what I may have missed?

    I started using ODI from a Windows XP box in development and Beta, and was successfully connecting to and loading data from several different database >>>>platforms including a PostgreSql database. I copied the PostgreSql JDBC driver to the ODI drivers folder, set up the connection information and it worked.
    When I moved from Windows XP to "Red Hat Enterprise Linux AS release 4 (Nahant Update 6)", I could no longer connect to this PostgreSql database. I >>>>put the same driver jar file "postgresql-8.3-603.jdbc3.jar" in the drivers folder and used the same connection string.
    All of the other drivers (Oracle, MS SQL, etc.) in that driver folder work correctly on this Linux box. I can even tell ODI to connect to the PostgreSql through >>>>the agent on the Windows XP machine and it works.
    That suggests that the URL must be OK, but for some reason it can't connect from the Linux box. I also tried updating to the newest driver
    "postgresql-8.3-604.jdbc3.jar" with no success.
    Any Ideas on what I may have missed?Hi,
    I'm having a problem in connecting to a PostGreSQL database, I was just wondering how you did it? I'm using a Windows Server 2003 R2 Standard Edition.
    Thanks,
    Randy

  • Installation: Oracle 10g on SUSE Linux 10.1

    Can this be? I sat for hours preparing my all new clean SUSE Linux 10.1 server for the installation of Oracle 10g (Standard Edition)... and when running the installer it simply tells me that SUSE 9 is needed...
    I've found others here in the forum having experienced the same.
    Maybe I just downloaded the wrong version of Oracle?
    The main download page is at:
    http://www.oracle.com/technology/software/products/database/oracle10g/index.html
    I selected entry "Oracle Database 10g Release 2 (10.2.0.1.0) for Linux x86" (the one directly below the Windows version):
    http://www.oracle.com/technology/software/products/database/oracle10g/htdocs/10201linuxsoft.html
    The size of the file^^ is 668,734,007 bytes.
    Or should i have downloaded entry "Oracle Database 10g Release 2 (10.2.0.2) for z/Linux":
    http://www.oracle.com/technology/software/products/database/oracle10g/htdocs/10202zlinuxsoft.html
    The size of the file^^ is 838,518,746 bytes.
    By the way, all these versions on the main page should have some kind of description, something like "This is the Linux Version for most standard 32Bit single and multiprocessor Intel compatible servers."
    Well, since I'm completely stuck now with SUSE 10.1, is there any way to make the Oracle installer go on that SUSE version? Maybe SUSE can pretend to be version 9... but how do I achieve something freaky as this?
    Thanks for any help, comments, suggestions...
    Karsten

    BTW, I think it's bad practice by Oracle not supporting SUSE 10.1.Actually, I think it is good practise for Oracle not to certify the public beta versions of an operating system.
    Please remember that Fedora and SuSE Linux are cycled every 6-8 months, making then truly unstable for commercial purposes. IN addition, they are often desupported by the comminuty within 2-3 years, forcing upgrades. And finally, Both Red Hat and SuSE/Novell publically state that these are 'proving grounds for new features' (meaning they are beta).
    Certification means that Oracle will invest heavily and train people on the specific operating system and work with the operating system supplier, 24x7 if needed, to make sure that customers will continue in production. I am not aware that the SuSE Linux or Fedora supporters are willing to put in 24x7 support they way the Red Hat and SuSE Enterprise groups are.
    This does not imply the public OSs are bad. It just means that Oracle (and I) believe they are unsuited for commercial, business mission critical, immediate support required, environments.
    By the way, I have the combination of Oracle10g and SuSE Linux 10.1 working, and it works well. However, I did need to make sure that the libraries to which Oracle10g was compiled are available in the OS.
    Or maybe Sybase does better.... ;-pNot if the [glibc] libraries are incompatible. Nor does PostgreSQL nor MySQL.

  • R12 EBS Installation on Suse Linux 9.0

    Dear Friends,
    I am doing a dual installation of oracle 12 ebiz on suse linux 9.0 and i my installation hangs on with the following message , having checked metalink, forum notes , i have run the autoconfig and the autoconfig on the application tier
    fails (i have pasted the below this )
    Login Page
    checking URL = http://bhmlx40.uat.itvplc.ads:8010/OA_HTML/AppsLogin
    RW-50016: Error: - {0} was not created:
    File = {1}
    ADX Database Utility
    getConnectionUsingAppsJDBCConnector() -->
    APPS_JDBC_URL=''
    Trying to get connection using SID based connect descriptor
    getConnection() -->
    sDbHost : shmlx43
    sDbDomain : uat.plc.ads
    sDbPort : 1531
    sDbSid : PROD
    sDbUser : APPS
    Trying to connect using SID...
    getConnectionUsingSID() -->
    JDBC URL: jdbc:oracle:thin:@shmlx43.uat.plc.ads:1531:PROD
    Exception occurred: java.sql.SQLException: Io exception: The Network Adapter could not establish the connection
    Trying to connect using SID as ServiceName
    getConnectionUsingServiceName() -->
    JDBC URL: jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=shmlx43.uat.plc.ads)(PORT=1531))(CONNECT_DATA=(SERVICE_NAME=PROD)))
    Exception occurred: java.sql.SQLException: Io exception: The Network Adapter could not establish the connection
    Trying to connect using SID as ServiceName.DomainName
    getConnectionUsingServiceName() -->
    JDBC URL: jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=shmlx43.uat.plc.ads)(PORT=1531))(CONNECT_DATA=(SERVICE_NAME=PROD.uat.plc.ads)))
    Exception occurred: java.sql.SQLException: Io exception: The Network Adapter could not establish the connection
    Connection could not be obtained; returning null
    Can you please help me to resolve the above problem , if someone has come across this problem
    Thanks in advance
    Kind regards
    Sri

    Thanks John, hsawwan
    The problem was actually , i was doing a dual node installation , i didnt have valid entry of my database server on the application server , i mean the fully qualified domain name , i have changed it and the installation went fine . I am having another problem now . I cant login to the user login page from my windows box
    as it ends up with page not displayed message . Once the installation was done
    I had an option of connecting to the URL directly from the installation page itself which went fine but i cant connect the same URL from my windows box , i have made valid entry under hosts file on the window box and i believe it should work
    I am not sure why its not working . I am sure that Apache is up Can one of you help me with this problem
    kind regards
    Sri

  • Oracle JDBC Driver for Linux

    I'm looking for a place to download an Oracle JDBC driver for Linux. I have installed Oracle 8.1.5 for Linux, but don't find the driver either in the installation, nor on the CD. Can anyone point me to someplace I might be able to find it?
    Also, generic help in setting this up to work, JDBC API calls would also be of great help.
    Thanks.

    Luis Claudio Rodrigues da Silveira (guest) wrote:
    : How can I configure JDBC driver in a Suse environment? What
    are
    : the necessary steps?
    : Thanks in advance.
    1) You need classes111.zip usually located at
    $ORACLE_HONE/jdbc/lib.
    2) Add classes111.zip to CLASSPATH and export
    3) If you use thin driver your code should look like:
    Class.forName ("oracle.jdbc.driver.OracleDriver");
    // Connect to the database
    // You must put a database name after the @ sign in the
    connection URL.
    // You can use either the fully specified SQL*net syntax or
    a short cut
    // syntax as <host>:<port>:<sid>. The example uses the
    short cut syntax.
    Connection conn =
    DriverManager.getConnection
    (jdbc:oracle:thin:@hostname:port:ORACLE_SID,
    USER_NAME, PASSWOED);
    null

  • Install of SuSE Linux 9.0 freezes early on

    I recently upgraded to an MSI 865PE Neo2 motherboard, with a P4 2.8 GHz processor.  I've installed Windows XP Professional without difficulty, but I tried to install SuSE Linux 9.0 and it locks up early on in the boot process during "hardware detection."  Opinions on this forum about earlier versions of SuSE and the YaST program were fairly poor, and their own site says that support for the Neo2 is only "partial."  Has anyone gotten Linux to install successfully on this mobo, and if so, which flavor?

    I have a Neo2-S and have mixed success w/ Linux as well.  I just tried SuSe Live 9.2 and it took me about 10 times to get it to boot.  I think the only thing that I changed when it actually booted was the option to make the boot screen verbose.  I hit something like F3 and changed that option.
    Knoppix 3.3 works great for me
    Knoppix 3.4 doesn't boot
    Mandrake Move 10 doesn't boot
    I may have some of the version numbers wrong because I am just typing them off of the top of my head.  I also have only tried the bootable CD version because I don't want to risk any conflicts w/ my Win XP.
    I am also about to get a new 200 GB SATA drive and I know that is going to complicate things even further.  I just wish that the devs would spend more time working on hardware support so n00bs won't have probs when trying out Linux.
    They really need to make all distro's of Linux be able to use all of the IDE/SATA channels in a system.  This is probably dependent on the kernel though.  I don't know that much about Linux.

  • NetWeaver 2004s installation problem on Suse Linux

    Hi,
    I downloaded NetWeaver 2004s 90 days version from SDN and installed on Suse linux. I am not able to execute command to get the license after installation. Here is the line I executed
    add user n4sadm
    unpacking adm_env.tar.bz2
    Changing password for n4sadm.
    New Password:
    Bad password: it is based on a dictionary word
    Reenter New Password:
    Password changed.
    add user sdb
    Changing password for sdb.
    New Password:
    Bad password: it is based on a dictionary word
    Reenter New Password:
    Password changed.
    add user sqdn4s
    unpacking sqd_env.tar.bz2
    Changing password for sqdn4s.
    New Password:
    Bad password: it is based on a dictionary word
    Reenter New Password:
    Password changed.
    unpacking /mnt/iso/server/TAR/x86_64/SAPDB_I.tar.bz2
    unpacking /mnt/iso/server/TAR/x86_64/SAPDB_II.tar.bz2
    unpacking /mnt/iso/server/TAR/x86_64/SAPDB_III.tar.bz2
    unpacking /mnt/iso/server/TAR/x86_64/SAPN4S.tar.bz2
    Service visinet-gui on port 3601/tcp was deactivated...
    Service cpq-tasksmart on port 3201/tcp was deactivated...
    Service netxms-mgmt on port 4701/tcp was deactivated...
    Service iwec on port 4801/tcp was deactivated...
    Service tick-port on port 3200/tcp was deactivated...
    Service netxms-agent on port 4700/tcp was deactivated...
    Service iims on port 4800/tcp was deactivated...
    Update the necessary information in sysctl.conf:
    kernel.shmmax = 23136829430
    kernel.shmall = 5242880
    kernel.msgmni = 1024
    fs.file-max = 32768
    kernel.sem = 1250 256000 100 1024
    Found interface: eth0 . Alias is eth0:0
    ifconfig eth0:0 192.168.155.1 up
    Ok
    n4shost:n4sadm 35> /usr/sap/N4S/SYS/exe/run/saplicense -get
    /usr/sap/N4S/SYS/exe/run/saplicense: Exec format error. Binary file not executable.
    Can any one help me to complete the installation and execute the server successfully. I am very new to linux. Do i need to execute any other commands to complete my installation.

    Dear Rajasekhar,
    this error simply comes, because the architecture of your computer is not the same as the one from the test drive. As I'm not sure, which architecture the N4S test drive uses, we simply have one of the following situations here. Either
    your machine is x86_64 and the N4S is i386 or
    your machine is i386 and the N4S is x86_64.
    Please check!
    Thanks,
      Hannes

  • Oracle 10g Installation Problem on SUSE Linux 10

    Hello Friends,
    I want to install SAP Solution Manager 7.0 with Oracle 10g on SUSE Linux 10.0.
    But, while starting the Installation i am getting following Errors.
    Starting Oracle Universal Installer...
    Checking installer requirements...
    Checking operating system version: must be redhat-3, SuSE-9, redhat-4, UnitedLinux-1.0, asianux-1,
    asianux-2 or SuSE-10
                                          Passed
    All installer requirements met.
    Preparing to launch Oracle Universal Installer from /tmp/OraInstall2009-04-22_03-59-38PM. Please wait ...
    Error in writing to directory /tmp/OraInstall2009-04-22_03-59-38PM. Please ensure that this directory is
    writable and has atleast 60 MB of disk space. Installation cannot continue.
    : Success
    I have checked the Permissions and the Size of /tmp Directory, which is as followed:
    drwxr-xr-x  11 root root    0 2009-04-22 21:19 sys
    drwxrwxrwt  52 root root 1824 2009-04-22 16:00 tmp
    drwxr-xr-x  15 root root  408 2009-04-19 14:43 usr
    Filesystem           1K-blocks      Used Available Use% Mounted on
    /dev/sda10             2104376     73112   2031264   4% /tmp
    I am starting the Oracle 10g Installation within orasm7 User which is a member of dba, users, disk groups.
    The directories which are created upon starting the Oracle Installation in /tmp directory are having the situations as followed:
    drwxr-xr-x 3 orasm7   dba          128 2009-04-21 18:41 OraInstall2009-04-21_06-41-14PM
    drwxr-xr-x 3 orasm7   dba          128 2009-04-21 18:41 OraInstall2009-04-21_06-41-25PM
    drwxr-xr-x 3 orasm7   dba          128 2009-04-22 15:59 OraInstall2009-04-22_03-59-38PM
    The Oracle Installation log is as follwoed:
    Using paramFile: /home/MyData/51031676/database/install/oraparam.ini
    Checking installer requirements...
    Checking operating system version: must be redhat-3, SuSE-9, redhat-4, UnitedLinux-1.0, asianux-1, asianux-2 or SuSE-10
                                          Passed
    All installer requirements met.
    The commandline for unzip:
    /home/MyData/51031676/database/install/unzip -qqq ../stage/Components/oracle.swd.jre/1.4.2.0.8
    /1/DataFiles/\*.jar -d /tmp/OraInstall2009-04-22_03-59-38PM
    I have set DISPLAY variable in this way before starting Installation:
    DISPLAY=$HOSTNAME:0.0
    export DISPLAY
    I tried to search the solution over the internet for this kind of problem, but i am not able to find its solution. Even i tried to start the Orale installation using this parameter: ./runInstaller ignoreSysPrereqs, but still it is giving the same unexpected error.
    I have a doubt on File/Directory permissions which are created for Installation in /tmp. The umask setiing of the system is 0022.
    Please, help me for this issue.
    Thanks & Regards,
    Bhavik G. Shroff

    Hi Markus,
    How are you ?
    Thank you very much for your reply.
    I was executing wrong runInstaller file. RUNINSTALLER is right file for starting the execution. But still i am facing the same error, which is as followed.
    Preparing response files. Please wait:
    ======================================
    Working on /home/MyData/51031676/database/SAP/SVRCUSTOM.RSP
    /home/MyData/51031676/database/SAP/SVRCUSTOM.RSP --> /tmp/.orainst_rsp.27450: Done
    Starting Oracle Universal Installer...
    Checking installer requirements...
    Checking operating system version: must be redhat-3, SuSE-9, redhat-4, UnitedLinux-1.0, asianux-1, asianux-2 or SuSE-10
                                          Passed
    All installer requirements met.
    Preparing to launch Oracle Universal Installer from /home/orasm7/tmpora/OraInstall2009-04-22_05-25-26PM. Please wait ...
    Error in writing to directory /home/orasm7/tmpora/OraInstall2009-04-22_05-25-26PM. Please ensure that
    this directory is writable and has atleast 60 MB of disk space. Installation cannot continue.
    : Success
    SHROFF:~ # cd /home/orasm7/tmpora/
    SHROFF:/home/orasm7/tmpora # ll
    total 0
    drwxr-xr-x 3 orasm7 dba 128 Apr 22 17:25 OraInstall2009-04-22_05-25-26PM
    SHROFF:/home/orasm7/tmpora # cd OraInstall2009-04-22_05-25-26PM/
    SHROFF:/home/orasm7/tmpora/OraInstall2009-04-22_05-25-26PM # ll
    total 4
    drwxr-xr-x 2 orasm7 dba 304 Apr 22 17:25 images
    -rwxr-xr-x 1 orasm7 dba 504 Apr 22 17:25 installActions2009-04-22_05-25-26PM.log
    SHROFF:/home/orasm7/tmpora/OraInstall2009-04-22_05-25-26PM #
    I have a doubt on tmp_netca_file & tmp_dbca_file variable.
    Please give your suggestion for the same.
    Regards,
    Bhavik G. Shroff
    Edited by: Bhavik G. Shroff on Apr 22, 2009 2:10 PM

  • Installation problem Oracle 9i on SuSE Linux 7.2 s390

    Hi all
    I've got a problem after having installed Oracle9i on a S390 box with SuSE linux 7.2. When I launch sqlplus, I've got the following message :
    sqlplus: error while loading shared libraries: libclntsh.so.9.0: cannot load shared object file: No such file or directory
    It appears the shared library libclntsh.so.9.0 was not included in the tarball I've downloaded from the Oracle site.
    Any idea ?
    Thanks
    Frangois Basquin

    Forget my question : I've found the answer in the document ID 158104.1. Even if my problem was not exactly the one mentioned (I hadn't any problem during compile time), the cure was good.
    Frangois

  • 9i and 9ias installation on SuSE linux 7.3

    Hi,
    Are there any known issues involved in installation of 9i
    and 9ias on SuSE linux 7.3 ??
    Also please let me know what are the workarounds for those
    problems and where the patches may be downloaded from ??
    I am asking this question because SuSE 7.3 is not yet
    certified by oracle.
    Thanks,

    For the database, look at
    http://www.suse.com/en/support/oracle/db/9i_73.html

  • Oracle9i Installation on SuSe Linux 7.3 Professional Edition

    Hi,
    I'm trying to Install Oracle 9i Database server on SuSe Linux 7.3 Professional Edition. I have gone throgh the Oracle 9i release notes for the Linux version. In the release notes document, in the OS Software Requirement section ( the following statement is mentioned as below ):
    "The following executables must present in the /usr/bin directory : make, ar, ld, nm"
    But after the Linux insalltion I found that only make executable is present and other doesn't. My doubt is, if I continue with the Oracle Installtion without these files does the installer cause any problems? If so how do I get these executables, as these executables doesn't exist in the "Software Installation" listing of SuSe 7.3 Professional edition?
    Another doubt is, Does SuSe 7.3 Professional edition suitable for Oracle 9i Database server? I checked the Kernal version, it seems to be OK.
    Please help.
    Thanks in advance
    Sriram Subbiah

    Hi,
    I'm trying to Install Oracle 9i Database server on SuSe Linux 7.3 Professional Edition. I have gone throgh the Oracle 9i release notes for the Linux version. In the release notes document, in the OS Software Requirement section ( the following statement is mentioned as below ):
    "The following executables must present in the /usr/bin directory : make, ar, ld, nm"Thats compiler, linker and linktool, install "binutils"!
    Sincerly,
    Christine

  • Developer 6i on suse linux 7.3 INSTALLATION gives me 'rdbms' error ? what can i do ?

    hi
    i am trying to install developer6i release 2 on suse linux 7.3 and before installation get the following error :
    rdbms' software is not available in the current
    distribution source and has not been installed.
    You must obtain and install 'rdbms' software from
    some other source first.
    Note: You may also get this error if the Installer
    registry file has been overwritten
    what can i do to fix this ???

    hi
    i am trying to install developer6i release 2 on suse linux 7.3 and before installation get the following error :
    rdbms' software is not available in the current
    distribution source and has not been installed.
    You must obtain and install 'rdbms' software from
    some other source first.
    Note: You may also get this error if the Installer
    registry file has been overwritten
    what can i do to fix this ???

  • Redhat or suse linux installation on lenovo g560

    Hi,
    I have a linovo g560 with os window xp,now i want to install redhat linux,also tried to install suse linux on my laptop with cd.but after some screen and runnibg kernel the cd drive and hard drive detection gets failed.and the installation mode goes to manual with install driver screen.i tried every driver but cd not get detected setup always say insert cd 1 into drive press any key when ready something this type of message.there are also eject cd button but that don,t work.i tried to text mode also but same situation for that mode also.i am not having more linux experience can anyone please help and suggest me to how to install redhat on my system redhat version 4 enterprise edition i am using for installation i have another cd of suse ver 10 but none of them get install,cd drive detection get failed
    thanks in advance

    If you have a pendrive, you can use Universal USB Installer to copy all files into it, and install Linux.
    Look this page: http://www.pendrivelinux.com/universal-usb-installer-easy-as-1-2-3/
    IPnaSh
    First Spanish Community Guru - Colaborador ad honorem

  • Can not focus or edit on JTextField on SuSe Linux 9.1

    Hi,
    I am trying to debug a strange problem with JTextField on SuSe Linux 9.1.
    The problem is that the mouse click can not gain focus to the JTextField
    in a very high frequency. Once problem occurs, the keyboard tab also
    does not work. The problem does not happen all the time.
    I wrote a simple event listener that dump out events that confirm that
    the TextField got the mouse click event.
    We are using JDK1.4.2_05.
    The same piece of code works fine with Windows XP and RedHat.
    I would greately appreciated if you have any suggestion to debug this
    issue.
    Thanks,

    The first thing to do is identify which of the two rows with the same key value are correctly referenced by rows in other tables.  If all referencing rows relate to only one of the errant pair then you can insert the non-key values from the other
    one into a new row, and then delete the original 'bad' row.  If you find that there are rows in referencing tables which relate to each of the errant pair, then, after copying the non-key values from one into a new row and deleting the 'bad'  original,
    you'll need to change the foreign key values in those rows in any referencing tables which related to the 'bad'  original to the value of the primary key in its replacement row.  You'll need to delete the relationship before doing any of this of
    course.
    Once you've done the above I'd then be inclined to copy the table to a new one under a different name, delete the original table, rename the copy to the original name, and then re-create the enforced relationship.  Finally, compact and repair the database.
    Ken Sheridan, Stafford, England

  • C++ - JNI on a SuSe Linux - Can't seem to find my Java files

    Hi all,
    I have been playing around with the JNI for a bit now on my windows box and got it working fine and all :) Now, however, I need to port my stuff to a SuSe linux, and I have started out really basic - just trying to start the JVM too see how that went... badly, would be the answer to that question, in case you were wondering.
    I made a really simple textbook example (alot of those, when searching this forum - and searched, I have) to just create myself a JVM. I am not even daring to actually try and find any classes, call methods or anything as bold as that yet.
    My example compiles fine, but when I run the program I get this error message:
    "Can't find class java.lang.NoClassDefFoundError. Invalid class path ?"
    Now, please note, this is not the actual NoClassDefFoundError exception being thrown here, but looks to me as if the system wanted to throw that exception object, but couldn't even find the object to throw at me ;-)
    This leads me to believe that there's is something really basic wrong with my Java setup here. I can run "java" just fine from the commandline, but it occurs to me, that the JVM, when invoked via the JNI, can't find it's own stuff.
    Any suggestion what needs to be done here?
    I can post code if that helps, but I doubt that is the problem - as it is really textbook stuff and I can get this stuff to work on Windows. I think the problem is "external" to my code, as it happens before I even try to use the JVM. Maybe some env vars needs to be set? I have manually tried to export a CLASSPATH variable, just to see if that helped - I even tried adding full path to core.jar in my "-Djava.class.path" property ;-)
    I have tried removing and adding the Java RPM's again (Java version 1.4.1 FYI) to no avail aswell.

    Hi,
    As you hv started working on JNI. You must know the following things.
    1. If you want to work on Windows they must hv to hv a .dll file of your c/C++ program while on linux you should have .so file. i.e. shared object file.
    2. On Linux you should set LD_LIBRARY_PATH environment variable to your the path where you have stored your .so file.
    Let me know if you do have above things and still getting error.
    - Uday
    P.S. You will find help on internet abt How to make dll's and .so file?

Maybe you are looking for