[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Soot on OS X?



Hello,

Yes, the soot-class-path doesn't really have anything to do with the OS.
My understanding of Will's problem is that he couldn't find rt.jar, so he
couldn't set his soot-class-path properly.  The reasons he couldn't find
rt.jar are, in this case, OS dependent:  1) Apple renamed it classes.jar;
2) the CLASSPATH variable is not set by default on OSX; the Java VM just
knows where to find classes.jar (even though Soot doesn't).

So even if soot-class-path defaults to CLASSPATH (as I believe it does),
that doesn't help someone on OSX.  In fact, on my OSX installation, there
are no Java related environment variables set in the shell.  And the Java
system properties java.home, java.class.path, java.library.path, and
java.ext.dirs, do not tell where the classes.jar is hiding (although they
give some clues about where to look for it).  So Soot has no way of
automatically determining where classes.jar is on OSX.

Derek.


On Wed, 25 Jun 2003, Eric Bodden wrote:

> Hi!
>
> This has nothing to do with the OS. Soot uses an internal classpath in order
> to find your class files. You have to set this (see the appropriate command
> line option --soot-classpath).
>
> @developers: Shouldn't that have been changed to get the environment
> classpath as default?
>
> Hope that helps,
> Eric
>
> ----- Original Message -----
> From: "Will Benton" <willb@cs.wisc.edu>
> To: <soot-list@sable.mcgill.ca>
> Sent: Wednesday, June 25, 2003 5:31 PM
> Subject: Soot on OS X?
>
>
> > Hello,
> >
> > I am trying to run Soot on an OS X machine, but I get the following
> > error:
> >
> > Soot started on Wed Jun 25 10:00:12 CDT 2003
> > Exception in thread "main" java.lang.RuntimeException: couldn't find
> > type: java.lang.Object (is your soot-class-path set properly?)
> >          at
> > soot.SootResolver.resolveClassAndSupportClasses(SootResolver.java:92)
> >          at soot.Scene.loadClassAndSupport(Scene.java:254)
> >          at soot.Scene.loadNecessaryClasses(Scene.java:644)
> >          at soot.Main.run(Main.java:170)
> >          at soot.Main.main(Main.java:152)
> >
> > I can run other Java programs with no problem.  Unfortunately, Apple
> > has repackaged the java classes, so I haven't the slightest where I can
> > find a jar file containing java.lang.Object and friends.  (There is no
> > "rt.jar").  Is anyone having any luck in this configuration?  If so,
> > what do I need to do?
> >
> >
> >
> >
> > thanks,
> > wb
> >
> > ---
> > Will Benton <willb@cs.wisc.edu>
> > "Wir sind Bettler, das ist wahr"
> >
> >
> >
>
>
>
>