Don't know if this is the problem, I can only guess, but I know that
starting from some java version the classpath got splitted into
classpath
and
-Xbootclasspath:
I thought only after jdk1.2, but could be earlier.
Now the problem would be, there are 2 class loaders the boot classloader
which loads the rt.jar and other system jars, I am talking about jars
under java 2.
Now if we want to patch some swing classes, we have to specify our new
classes using
the -Xbootclasspath:
which tells to the classloader to load the specified classes first!
Otherwise the old swing gets loaded before and our patches will have no
effect!
I guess this shouldn't be the problem, but u could even check if there
is the TAG in your java command. Or ensure that u don't have an other
swing jar in ur classpath.
Hope this could help
Patrick
Adam Carheden wrote:
>
> First, I did get Argo to run by extracting both it and swing from their
> respective jar files into the local directory and running it from
> there. For disk space and other reasons, however, I'd like them to stay
> in their respective .jar files.
>
> The Argo page specifically says to use Swing v1.0.3, which I am. I have
> also set classpath to
> .:/usr/local/jdk117_v3/swing-1.0.3/swing.jar:/usr/local/java_apps/argouml.jar.
> The error I'm getting when I run Argo is:
>
> java.lang.NoClassDefFoundError: com/sun/java/swing/plaf/metal/MetalTheme
> at uci.uml.Main.main(Main.java:74)
>
> so I know it's running uci.uml.Main (which I had to extract from the
> .jar file and put it the local directory to get it to find). I have
> also checked swing.jar and .../MetalTheme.class is there.
>
> I think it's just ignoring my CLASSPATH. Is there a way to turn on
> debugging info that will tell me exactly where it's looking for classes?
>
> --
> Adam Carheden
> [EMAIL PROTECTED]
>
> ----------------------------------------------------------------------
> To UNSUBSCRIBE, email to [EMAIL PROTECTED]
> with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
--
-----------------------------------------------------
Save software competition, use Linux and Java!
mailto:[EMAIL PROTECTED]
----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]