Running Java in CICS TS 1.3
Need a little help trying to make the HelloWorld application (got the following output):
SYSPTWM:/usr/lpp/cicsmnt/samples/dfjcics: >make
-DMAKESTARTUP=/samples/startup.mk HelloWorld.mak jvm
`HelloWorld.mak' is up to date
Making java bytecode samples for use in JVM
Running HelloWorld.mak
javac -O -deprecation-classpath
.:/classes/dfjcics.jar:/lib/classes.zip examp
les/HelloWorld/HelloWorld.java
examples/HelloWorld/HelloWorld.java:4: Superclass java.lang.Object of
class exam
ples.HelloWorld.HelloWorld not found.
public class HelloWorld
Have you any clues?
Thanks Tom.
[672 byte] By [
MelicanT] at [2007-9-27 19:23:30]

Running HelloWorld.mak
javac -O -deprecation -classpath
.:/classes/dfjcics.jar:/lib/classes.zip examp
les/HelloWorld/HelloWorld.java
examples/HelloWorld/HelloWorld.java:4: Superclass java.lang.Object of
class exam
ples.HelloWorld.HelloWorld not found.
public class HelloWorld
Your clue is right here in this error message. No need to know what version. Two things to consider. 1) SETTING THE CORRECT CLASS PATH 2) java.lang.Object is missing or cannot be find during compile time.
1) SETTING THE CORRECT CLASSPATH
Basically, you are telling the compiler the location of all your library of classes. That includes the Object class that Java is looking for. Do some research with the threads on this site on how to set the classpath. TIP: "try using a '.' (period) to indicate the classpath along with all the library of classes.
2) Object class at java.lang.*
This is an abstract class. Object class is the 'superclass' which is a general defination of an Object. It is a general class where all Objects stem from. Whether it is a String class, Math class, or Any class. Without this file, you cannot declare any objects. The 'java.lang.Object' just tells you the source of the code is suppose to be.