I was wondering if there was a way to see more detail. Here's the
results -- it seems to find everything except testjava:
class load: java/lang/Object
class load: java/lang/J9VMInternals
class load: java/io/Serializable
class load: java/lang/reflect/GenericDeclaration
class load: java/lang/reflect/Type
class load: java/lang/reflect/AnnotatedElement
class load: java/lang/Class
class load: java/lang/Cloneable
class load: java/lang/Comparable
class load: java/lang/CharSequence
class load: java/lang/String
class load: java/util/Comparator
class load: java/lang/String$CaseInsensitiveComparator
class load: java/io/ObjectStreamField
class load: java/lang/Class$CacheKey
class load: java/lang/ref/ReferenceQueue
class load: java/lang/ref/Reference
class load: java/lang/ref/PhantomReference
class load: sun/misc/Cleaner
class load: java/lang/ClassLoader
class load: com/ibm/oti/vm/VM
class load: java/security/cert/Certificate
class load: java/lang/ref/SoftReference
class load: java/lang/Runnable
class load: java/lang/Class$ReflectRef
class load: java/lang/Thread
class load: java/lang/Thread$UniqueIdLock
class load: java/lang/StackTraceElement
class load: java/lang/Throwable
class load: java/lang/Error
class load: java/lang/VirtualMachineError
class load: java/lang/OutOfMemoryError
class load: sun/reflect/MagicAccessorImpl
class load: sun/reflect/ConstructorAccessor
class load: sun/reflect/ConstructorAccessorImpl
class load: sun/reflect/MethodAccessor
class load: sun/reflect/MethodAccessorImpl
class load: java/lang/Thread$UncaughtExceptionHandler
class load: java/lang/ThreadGroup
class load: java/lang/ThreadGroup$ChildrenGroupsLock
class load: java/lang/ThreadGroup$ChildrenThreadsLock
class load: java/lang/Thread$ThreadLock
class load: java/lang/System
class load: java/lang/Runtime
class load: java/lang/Math
class load: com/ibm/jvm/Util
class load: java/lang/Exception
class load: java/lang/ClassNotFoundException
class load: java/lang/Number
class load: java/lang/Double
class load: java/util/Dictionary
class load: java/util/Map
class load: java/util/Hashtable
class load: java/util/Properties
class load: java/util/Enumeration
class load: java/util/Hashtable$EmptyEnumerator
class load: java/util/Iterator
class load: java/util/Hashtable$EmptyIterator
class load: java/util/Map$Entry
class load: java/util/MapEntry
class load: java/util/Hashtable$Entry
class load: com/ibm/oti/util/Util
class load: java/lang/StringCoding
class load: java/lang/ThreadLocal
class load: java/lang/ThreadLocal$ThreadLocalMap
class load: java/lang/ref/WeakReference
class load: java/lang/ThreadLocal$ThreadLocalMap$Entry
class load: java/lang/StringCoding$EncoderCache
class load: java/security/PrivilegedAction
class load: java/lang/StringCoding$4
class load: java/security/AccessController
class load: java/security/PrivilegedExceptionAction
class load: java/lang/StringCoding$EncoderCache$1
class load: sun/io/CharToByteConverter
class load: sun/io/Converters
class load: sun/security/action/GetPropertyAction
class load: java/lang/Appendable
class load: java/lang/StringBuilder
class load: sun/io/CharToByteISO8859_1
class load: java/lang/StringCoding$DecoderCache
class load: java/lang/StringCoding$2
class load: java/lang/StringCoding$DecoderCache$1
class load: sun/io/ByteToCharConverter
class load: sun/io/ByteToCharISO8859_1
class load: sun/io/CharacterEncoding
class load: java/util/AbstractMap
class load: java/util/HashMap
class load: java/lang/Float
class load: java/util/HashMap$Entry
class load: java/lang/Integer
class load: java/util/Collections
class load: java/util/Random
class load: java/lang/Iterable
class load: java/util/Collection
class load: java/util/AbstractCollection
class load: java/util/Set
class load: java/util/AbstractSet
class load: java/util/Collections$EmptySet
class load: java/util/List
class load: java/util/AbstractList
class load: java/util/RandomAccess
class load: java/util/Collections$EmptyList
class load: java/util/Collections$EmptyMap
class load: java/util/Collections$ReverseComparator
class load: java/util/Collections$UnmodifiableMap
class load: java/util/Locale
class load: java/lang/Character
class load: java/lang/CharacterDataLatin1
class load: sun/io/ByteToCharUTF8
class load: sun/misc/VM
class load: java/io/Closeable
class load: java/io/Flushable
class load: java/io/OutputStream
class load: java/io/FilterOutputStream
class load: java/io/BufferedOutputStream
class load: java/io/FileOutputStream
class load: java/io/FileDescriptor
class load: java/io/PrintStream
class load: com/ibm/jvm/io/ConsolePrintStream
class load: java/io/InputStream
class load: java/io/FilterInputStream
class load: com/ibm/jvm/io/LocalizedInputStream
class load: java/util/zip/ZipConstants
class load: java/util/zip/ZipFile
class load: sun/security/action/LoadLibraryAction
class load: java/io/File
class load: java/io/FileSystem
class load: java/io/UnixFileSystem
class load: java/io/ExpiringCache
class load: java/util/LinkedHashMap
class load: java/io/ExpiringCache$1
class load: java/util/LinkedHashMap$Entry
class load: sun/misc/JavaIODeleteOnExitAccess
class load: java/io/File$1
class load: sun/misc/SharedSecrets
class load: sun/misc/Unsafe
class load: sun/reflect/Reflection
class load: java/util/Collections$SynchronizedMap
class load: java/util/Vector
class load: java/util/zip/ZipFile$ZipFileInputStream
class load: com/ibm/jvm/io/LocalizedInputStream$1
class load: java/io/Writer
class load: java/io/OutputStreamWriter
class load: sun/nio/cs/StreamEncoder
class load: sun/nio/cs/StreamEncoder$ConverterSE
class load: java/io/BufferedWriter
class load: com/ibm/misc/SystemIntialization
class load: com/ibm/oti/vm/AbstractClassLoader
class load: com/ibm/oti/vm/BootstrapClassLoader
class load: com/ibm/oti/vm/AbstractClassLoader$CacheLock
class load: com/ibm/oti/vm/AbstractClassLoader$ManifestLock
class load: java/util/Arrays
class load: com/ibm/oti/vm/BootstrapClassLoader$FindClassLock
class load: java/lang/ClassLoader$AssertionLock
class load: java/lang/ClassLoader$LazyInitLock
class load: sun/misc/Launcher
class load: java/lang/Package
class load: java/util/Hashtable$HashtableCacheHashEntry
class load: java/net/URLStreamHandlerFactory
class load: sun/misc/Launcher$Factory
class load: java/security/SecureClassLoader
class load: java/net/URLClassLoader
class load: sun/misc/Launcher$ExtClassLoader
class load: sun/security/util/Debug
class load: java/util/StringTokenizer
class load: sun/misc/Launcher$ExtClassLoader$1
class load: java/io/FilenameFilter
class load: sun/misc/JarFilter
class load: java/util/ArrayList
class load: java/lang/reflect/Array
class load: java/io/ExpiringCache$Entry
class load: sun/net/www/ParseUtil
class load: java/util/BitSet
class load: java/net/URL
class load: java/net/URL$Lock
class load: java/net/Parts
class load: java/net/URLStreamHandler
class load: sun/net/www/protocol/file/Handler
class load: com/ibm/jvm/util/HashMapRT
class load: com/ibm/jvm/util/HashMapRT$Entry
class load: com/ibm/oti/shared/Shared
class load: com/ibm/oti/shared/Shared$Monitor
class load: com/ibm/oti/util/PriviAction
class load: sun/misc/URLClassPath
class load: java/util/Stack
class load: sun/net/www/protocol/jar/Handler
class load: java/security/AccessControlContext
class load: java/security/Guard
class load: java/security/Permission
class load: java/security/BasicPermission
class load: java/security/SecurityPermission
class load: java/security/ProtectionDomain
class load: sun/misc/Launcher$AppClassLoader
class load: sun/misc/Launcher$AppClassLoader$1
class load: java/lang/Class$2
class load: java/lang/reflect/AccessibleObject
class load: java/lang/reflect/Member
class load: java/lang/reflect/Method
class load: java/lang/reflect/Field
class load: java/lang/reflect/ReflectPermission
class load: sun/reflect/ReflectionFactory$GetReflectionFactoryAction
class load: sun/reflect/ReflectionFactory
class load: java/lang/RuntimePermission
class load: java/lang/annotation/Annotation
class load: java/lang/reflect/Constructor
class load: java/io/BufferedInputStream
class load: java/util/concurrent/atomic/AtomicReferenceFieldUpdater
class load:
java/util/concurrent/atomic/AtomicReferenceFieldUpdater$AtomicReferenceFieldUpdaterImpl
class load: sun/reflect/misc/ReflectUtil
class load: java/lang/reflect/Modifier
class load: sun/reflect/LangReflectAccess
class load: java/lang/reflect/ReflectAccess
class load: java/io/FileInputStream
class load: com/ibm/jvm/io/ConsoleInputStream
class load: java/lang/Terminator
class load: sun/misc/SignalHandler
class load: java/lang/Terminator$1
class load: sun/misc/Signal
class load: com/ibm/misc/AbstractSignalInfo
class load: com/ibm/misc/SignalInfo
class load: sun/misc/NativeSignalHandler
class load: java/lang/Void
class load: java/lang/Boolean
class load: java/lang/Byte
class load: java/lang/Short
class load: java/lang/StringBuffer
class load: com/ibm/misc/SignalDispatcher
class load: com/ibm/misc/SignalDispatcher$1
class load: java/lang/ApplicationShutdownHooks
class load: java/util/IdentityHashMap
class load: java/lang/Shutdown
class load: java/lang/Shutdown$Lock
class load: com/ibm/misc/SystemIntialization$1
class load: sun/reflect/ReflectionFactory$1
class load: sun/reflect/NativeMethodAccessorImpl
class load: sun/reflect/DelegatingMethodAccessorImpl
class load: java/util/Hashtable$HashIterator
class load: java/util/MapEntry$Type
class load: java/util/MapEntry$Type$1
class load: java/util/MapEntry$Type$2
class load: java/util/MapEntry$Type$3
class load: java/util/MapEntry$Type$4
class load: java/util/MapEntry$Type$5
class load: java/util/regex/Pattern
class load: java/util/regex/Pattern$Node
class load: java/util/regex/Pattern$LastNode
class load: java/util/regex/Pattern$GroupHead
class load: java/util/regex/Pattern$Ctype
class load: java/util/regex/ASCII
class load: java/util/regex/Pattern$Curly
class load: java/util/regex/Pattern$Slice
class load: java/util/regex/Pattern$Begin
class load: java/util/regex/Pattern$First
class load: java/util/regex/Pattern$Start
class load: java/util/regex/Pattern$TreeInfo
class load: java/util/regex/MatchResult
class load: java/util/regex/Matcher
class load: com/ibm/misc/JavaRuntimeVersion
class load: java/lang/ThreadDeath
class load: java/lang/Long
class load: java/util/WeakHashMap
class load: java/util/WeakHashMap$Entry
class load: com/ibm/jvm/Trace
class load: com/ibm/tools/attach/javaSE/AttachHandler
class load: com/ibm/tools/attach/javaSE/Attachment
class load: com/ibm/tools/attach/javaSE/AttachHandler$syncObject
class load: java/net/URLClassLoader$ClassFinder
class load: sun/misc/URLClassPath$3
class load: sun/misc/URLClassPath$Loader
class load: sun/misc/URLClassPath$JarLoader
class load: sun/misc/FileURLMapper
class load: java/util/jar/JarFile
class load: sun/misc/JavaUtilJarAccess
class load: java/util/jar/JavaUtilJarAccessImpl
class load: sun/misc/JarIndex
class load: java/util/zip/ZipEntry
class load: java/util/jar/JarEntry
class load: sun/misc/ExtensionDependency
class load: java/util/jar/JarFile$JarFileEntry
class load: java/io/DataInput
class load: java/io/DataInputStream
class load: java/util/zip/InflaterInputStream
class load: java/util/zip/ZipFile$2
class load: java/util/zip/Inflater
class load: java/security/PrivilegedActionException
class load: java/lang/Readable
class load: java/io/Reader
class load: java/io/BufferedReader
class load: java/io/InputStreamReader
class load: sun/nio/cs/StreamDecoder
class load: sun/nio/cs/StreamDecoder$ConverterSD
class load: java/util/AbstractSequentialList
class load: java/util/Queue
class load: java/util/LinkedList
class load: java/util/LinkedList$Entry
class load: java/util/HashSet
class load: java/lang/LinkageError
class load: java/lang/NoClassDefFoundError <=========ERROR
Exception in thread "main" java.lang.NoClassDefFoundError: testjava
Caused by: java.lang.ClassNotFoundException: testjava
at java.net.URLClassLoader.findClass(URLClassLoader.java:497)
at java.lang.ClassLoader.loadClass(ClassLoader.java:639)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)
at java.lang.ClassLoader.loadClass(ClassLoader.java:605)
class load: java/util/AbstractList$Itr
class load: java/util/IdentityHashMap$KeySet
class load: java/util/IdentityHashMap$IdentityHashMapIterator
class load: java/util/IdentityHashMap$KeyIterator
class load: java/io/DeleteOnExitHook
class load: java/util/HashMap$KeySet
class load: java/util/HashMap$HashIterator
class load: java/util/HashMap$KeyIterator
--*
Peter Dow*/
Dow Software Services, Inc.
909 793-9050
pdow@xxxxxxxxxxxxxxx <mailto:pdow@xxxxxxxxxxxxxxx> /
On 7/19/2011 2:47 AM, Gary L Peskin wrote:
Assuming that testjava.class is in /home/pdow, I'd add the -verbose:class
argument so you can see what's happening during the classloading.
qsh cmd('java -classpath $CLASSPATH -verbose:class testjava')
Gary
As an Amazon Associate we earn from qualifying purchases.