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?
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?