BTW: My last project had me reading shapefiles in Java from scratch, and drifted into various topological processing functions to detect and correct topology errors (including correctly handling antemeridian crossing by polygons). Java has improved in performance from the mid-to-late 90's (when I last used it), to the point that I no longer have a slant against it! (But I still don't want to code a GIS from scratch with it.)
First off, you shouldn't ever connect to an ArcSDE instance as 'sde' (and you shouldn't ever use 'sde' as the password). The 'sde' user should only be used to administer the ArcSDE installation, and the password should be closely held to prevent damage to the database instance. Instead you should create additional tablespaces and users to own and access the data loaded into those tablespaces.
You also shouldn't start using the ArcSDE API with a Direct Connect in Java. Start with an application service connection, so you can be sure your class path is correct to find the ArcSDE jarfiles, then you can move on to the arcane. If you haven't used Java before, you should spend several weeks working on language basics before attempting to use a third party API.
Using either of the ArcSDE APIs is an advanced skill, which is much easier to do after you've been using an instance with ArcGIS for 6-8 months. The learning curve on the lightly documented ArcSDE API is rather brutal -- expect it to take 3-6 weeks to learn how to do anything useful (anything that's going to involve a "featureCollection"). Starting with an empty database is the most difficult way to learn the API -- the start-up cost increases to 3-6 months if you're going to try to create data from scratch.
I'm facing the same issue when I run the Java program from Linux environment to Arc SDe 10.1. The same code works fine If I run from UNix (Solaris) environment to Arc SDE9.3 or to ArcSDe 10.1 from RAD setup in PC. Purpose of my program is to access a point layer and make deletions based on certain criteria.
I'm using jpe_sdk.jar, icu4j_3_2.jar, jsde_sdk.jar & concurrent.jar. from Arc SDE 9.3. Is there a different set of Jars that I should use for Arc SDE 10.1 ? Below is the error I get.
Exception in thread "main" java.lang.UnsatisfiedLinkError: no sdejavautil in java.library.path at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1738) at java.lang.Runtime.loadLibrary0(Runtime.java:823) at java.lang.System.loadLibrary(System.java:1028) at com.esri.sde.sdk.client.JGsrvr.<clinit>(Unknown Source) at com.esri.sde.sdk.client.SeConnection.x(Unknown Source) at com.esri.sde.sdk.client.SeConnection.<init>(Unknown Source) ...... The code I use is SeConnection conn=null; conn = new SeConnection(dbServer, dbPort, null, dbUser, dbPass); return true;