This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
I'm having an issue getting a JAVA Application Client to run and would welcome any suggestions or input to resolve this problem. I'm not a developer, just the builder/deployer of the applications. There are two developers looking at this problem too, but they are stumped too. It complains that it can't find sun/jdbc/rowset/CachedRowSet, which is contained in the rowset.jar - which is in the classpath. I've put all the supporting information below, if you need additional information please let me know and I'll provide it.
***** ERRORS FROM RUNNING SCRIPT BELOW ***** *** NOT Using Verbose: *** Exception in thread "main" java.lang.NoClassDefFoundError: sun/jdbc/rowset/CachedRowSet *** Using Verbose (only included the output with the error): *** [Loading superclasses of com/actuate/schemas/SubmitJobResponse] [Loaded java.sql.SQLException from /usr/java130/jre/lib/rt.jar] [Loading superclasses of java/sql/SQLException] [Signaling in VM: java/lang/NoClassDefFoundError, message: sun/jdbc/rowset/CachedRowSet] Exception in thread "main" java.lang.NoClassDefFoundError: sun/jdbc/rowset/CachedRowSet[Loaded sun.i o.UnknownCharacterException from /usr/java130/jre/lib/rt.jar] [Loading superclasses of sun/io/UnknownCharacterException] [Preparing sun/io/UnknownCharacterException]
is the error occurring at compile time or runtime? i'm not sure if this applies to linux/unix, but on windows the jar files have to also be in the java runtime folder. for example, to add a jar file, the jar file must be in the JAVA_HOME\jre\lib\ext as well as being in the C:\Program Files\JavaSoft\JRE\1.3.1_06\lib\ext I noticed in your class path you added the rt.jar file under the /usr directory, so this might be a good place to start looking. someone wiser than me in the ways of *nix may have better advice.
use the [CODE] tags - it makes it much easier for people to help you.
Joined: Feb 19, 2003
The error is at runtime. I'll try what you suggested and let you know. What are [code] tags? Lisa
Originally posted by lisa phillips: The error is at runtime. I'll try what you suggested and let you know. What are [code] tags? Lisa
There are several buttons below the text area where you type your messages to this board. These all help you enter special kinds of text into your message. One of the buttons says "CODE". When you click on it, it inserts the CODE tags into your message. (If you are familiar with HTML tags, these are very similar. The only difference is that they use [ ] instead of < >.) Once the tags are inserted into your message. Paste your code in between them. The tags change the font and preserve your spacing in order to make your code more readable. Keep coding! Layne
I placed the rowset.jar into the lib/ext directory and got a little further. I then placed all the jar files that were previously in my home dir lib (that is where I pointed to from the classpath) and then it worked! That was great. I later found out that when using the -jar command on the command line it didn't use the classpath. So, all is well and I actually learned a lot with this exercise. Thank you! Lisa