Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Java program not working using newer version of scheduler (AutoSys)

855125Apr 13 2011 — edited Apr 20 2011
A little background: I'm in the middle of trying to upgrade our AutoSys server (scheduler) to the latest version (version R4 to R11) and have to do regression testing to ensure our jobs will work in the new version. There's a small java program that is not working supposedly due to the following error:

Exception in thread "Main Thread" java.lang.NoClassDefFoundError: com/f1j/swing/common/JDKAdapter
at com.f1j.swing.common.Adapter.<clinit>(Adapter.java:86)
at com.f1j.swing.engine.ss.JBook.<init>(JBook.java:3032)
at com.f1j.swing.engine.ss.JBook.<init>(JBook.java:3096)
at com.test.Foo.performScan(Foo.java:122)
...

So in the old version (R4), it runs fine. In R11, I get the exception above. The CLASSPATH matches and I've verified that by echoing it in the shell script that calls the java program. Here's how it's called in the shell script.

echo $CLASSPATH
${JAVA_HOME}/bin/java com.test.Foo

So the Foo class was written by me, which makes use of this external library called f1j11swing.jar (for spreadsheet creation).

The source of the error is from this line in Foo (line 122):

book = new com.f1j.swing.engine.ss.JBook();

The funny part is JDKAdapter (the missing class) is in the same jar file as JBook, so it definitely finds the library in the classpath. But for some reason, this new AutoSys version is spitting out this error. I've exhausted many approaches to resolving this, but I'm still stuck.

Here's the layout of how things are called (should be same for R4 and R11):

1. AutoSys server logs into client machine XYZ as user arnold
2. arnold (AutoSys client) on XYZ executes shell script to call java program

The only significant difference I see is that the AutoSys server in R4 is HP while the R11 server is Sun. However, it shouldn't matter because the client server they're logging into to execute the script is the same linux server.

Does anyone have any ideas? I've already started dialogue with the vendor and it seems kind of in limbo at the moment. Please let me know if you need more info. Thanks.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 18 2011
Added on Apr 13 2011
5 comments
1,458 views