Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

installjava issue with ASE 15.5

55 views
Skip to first unread message

Doug Hubbard

unread,
Sep 20, 2010, 3:41:44 PM9/20/10
to
I am working on a migration from Solaris to Linux ASE (as well as
moving to 15.5 from 12.5).
Got the server up and running, however in trying to install my UDF
classes I am getting the following error.

Server Message: pocono - Msg 10795, Level 16, State 1:
The file 'CustomerPowerFunctions.class' contained in the jar does not
represent a valid Java class file.

I get the same error with all 3 classes which were compiled as
follows.

/usr/bin/javac CustomerPowerFunctions.java

/usr/bin/jar cvf0 CustomerPowerFunctions.jar
CustomerPowerFunctions.class

installjava -f ./CustomerPowerFunctions.jar -update -D mydb -U$SYBUSER
-P$SYBPASS -S$DSQUERY

A google search returns the Sybase response of

Explanation:

Command failed due to invalid or illegal request. Check syntax,
semantics, and permissions. Take any corrective action indicated by
message.

However there are no indications in the message of what to do......

Here is the output of a jar -tf on one of the jar files.
jar -tf /data/home/doug/Java/CustomerPowerFunctions.jar
META-INF/
META-INF/MANIFEST.MF
CustomerPowerFunctions.class


Sybase Java vars are set to

SYBASE_JRE6=/etc/alternatives/jre
SYBASE_JRE6_64=/etc/alternatives/jre
which is the jre building things


These classes all compile and run fine on the Solaris 12.5 systems and
if I recall correctly they worked fine on the Solaris 15.5 system (it
is currently down)

What am I doing wrong here?

Doug Hubbard

unread,
Oct 7, 2010, 4:04:58 PM10/7/10
to

some follow up
The jars install just fine on Solaris 15.5 (without even a recompile).
System is 64 bit and I have tried building the jars with both 32 and
64 bit (no joy either way).

Any ideas as to what might be going on here?

0 new messages