Code Comments
Programming Forum and web based access to our favorite programming groups.Hi,
I'm trying to compile some code (below):
--------------
/*
* Created on Aug 25, 2004
*
* TODO To change the template for this generated file go to
* Window - Preferences - Java - Code Style - Code Templates
*/
package com.once.server.scripting;
import tcl.lang.*;
/**
* @author ben
*
* TODO To change the template for this generated type comment go to
* Window - Preferences - Java - Code Style - Code Templates
*/
public class TCLEngine
{
/**
* @author ben
*
*/
public TCLEngine()
{
Interp test_interp = new Interp();
TclObject r;
String s;
try {
test_interp.eval("expr { 3 + 5 }");
} catch (TclException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
r = test_interp.getResult();
s = r.toString();
System.out.println(s);
}
/**
* function to check syntax after entry in an edit box
*
*/
public void ParseSyntax()
{
}
/**
* function to actually evaluate (run) the code and return the result
*
*/
public void Evaluate()
{
}
}
-----------------
When I compile with Eclipse, I get:
Exception in thread "main" java.lang.UnsatisfiedLinkError: no tclblend
in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1517)
at java.lang.Runtime.loadLibrary0(Runtime.java:788)
at java.lang.System.loadLibrary(System.java:834)
at tcl.lang.Interp.shlib_load(Interp.java:43)
at tcl.lang.Interp.<init>(Interp.java:147)
at com.once.server.scripting.TCLEngine.<init>(TCLEngine.java:25)
at com.once.Test.testTCLEngine(Test.java:27)
at com.once.Test.main(Test.java:22)
Can somebody please help?
Post Follow-up to this messagePowered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.