Skip to main content

How to Build and Run Squawk

55 replies [Last post]

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Joined: 2006-12-03

>export JAVA_HOME=/usr/lib/jvm/java-1.6.0-openjdk/

I think i remember someone reporting difficulties with open JDK earlier... Maybe try the sun JDK?

Joined: 2009-10-21

When I do [b]./ jvmenv[/b]

CompilerOracle: exclude com/sun/squawk/Method.getParameterTypes
CompilerOracle: exclude com/sun/squawk/SymbolParser.getSignatureTypeAt
CompilerOracle: exclude com/sun/squawk/SymbolParser.stripMethods
Exception in thread "main" java.lang.RuntimeException: Unable to locate tools.jar. Try -v or -verbose and relaunch to see where attempts to locate were made
at com.sun.squawk.builder.launcher.Launcher.getToolsJar(
at com.sun.squawk.builder.launcher.Launcher.main(


Message was edited by: qawsed123

Joined: 2009-10-21

Thanks, but at step four:

[b]./squawk com.sun.squawk.Test[/b]

the result is:

[b]./squawk: error while loading shared libraries: cannot open shared object file: No such file or directory[/b]

I use Ubuntu 9.10 x64.
I tried to build this in a Ubuntu 9.10 x86 distro but I stuck int the first step. When I do:

[b]./ jvmenv[/b]

The console shows me an error message about "the disapeared tools.jar".

In both distro I link the classpath like this:

[b]export JAVA_HOME=/usr/lib/jvm/java-1.6.0-openjdk/[/b]

The folder of the squawk is in my user's home director and the folder of [b]jdk1.6.0.17[/b] (or somthing like this) too.

Thanks for the info!

Joined: 2006-09-08

The error message " error while loading shared libraries:" is directly related to the fact that LD_LIBRARY_PATH is not set correctly, which is what "d jvmenv" tells you how to do.

But I'm not sure why jvmenv didn't work for you.

If you are building from the trunk you should be using JDK 1.6. If using the squawk-native branch you need to use JDK 1.5 (until we merge).

If that doesn't seem to be the problem, can you reply with the result of calling "./ jvmenv"?


Joined: 2007-11-16