![]() |
(Original bug report was simply that the error given when no compiler is present is somewhat cryptic. Installer was changed to include Jikes, plus a test was added to see if the javac class was present, and if not, a helpful message appears at launch.)
I am also getting this when I try to load some of the examples (clock.zac
in particular). I have reinstalled JDK 1.1.8 and also reinstalled Spin a
couple of times. I am running WinNT. It seems to work on Win95 (my office
mate was able to run it on his machine).
>Date: Tue, 30 Nov 1999 11:45:10 -0500
>To: bugs@zat.com
>From: Edward Burke <ed@concord.org>
>Subject: Problem with Script Behavior
>
>Creating a simple capsule I got the following stack trace when Spin tried
>to compile the Script Behavior. Have I installed incorrectly? The
>classes.zip file in my C:\Java\lib directory contains the sun complier
>classes. I am using JDK 1.1.8.
>
>Error Executing <Run>
>sun/tools/javac/Main
>java.lang.NoClassDefFoundError: sun/tools/javac/Main
> at zat.code.Compile.compile(Compile.java)
===
Spin now generates an error dialog when it has no suitable compiler available.
Windows install now bundled with JRE Vm and Jikes, which helps this
installation
issue.
** Philip 3/3/2000 **
On Windows, if you have a Sun Java 1.2.x JDK installed, but you install Spin
with the built-in JRE, and you rename or remove your Jikes directory, then
compiling gives the following exception (because Java uses the registry to
resolve classes and finds the 1.2 compiler even when using the 1.1 VM):
java.lang.UnsatisfiedLinkError: no services in shared library path
at java.lang.Throwable.<init>(Throwable.java:74)
at java.lang.Error.<init>(Error.java:46)
at java.lang.LinkageError.<init>(LinkageError.java:39)
at java.lang.UnsatisfiedLinkError.<init>(UnsatisfiedLinkError.java:38)
at java.lang.Runtime.loadLibrary(Compiled Code)
at java.lang.System.loadLibrary(System.java:554)
at unknown source
at unknown source
at source unknown
at sun.tools.javac.BatchEnvironment.isExemptPackage(BatchEnvironment.java:284)
at sun.tools.java.Environment.isExemptPackage(Environment.java:73)
at sun.tools.java.Environment.isExemptPackage(Environment.java:73)
at sun.tools.java.Environment.isExemptPackage(Environment.java:73)
at sun.tools.java.Imports.resolve(Compiled Code)
at sun.tools.javac.SourceClass.basicCheck(SourceClass.java:1079)
at sun.tools.java.ClassDeclaration.getClassDefinition(ClassDeclaration.java:
37)
at sun.tools.javac.Main.compile(Main.java:504)
at zat.code.Compile.compileWithJDK(Compile.java)
at zat.code.Compile.compile(Compile.java)
at zat.code.CapsuleCompiler._generate(CapsuleCompiler.java)
at zat.code.CapsuleCompiler.access$0(CapsuleCompiler.java)
at zat.code.CapsuleCompiler$ThreadedGenerator.run(CapsuleCompiler.java)
Generated on: Mon Apr 10 11:49:40 PDT 2000