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

Newbie: Problems building ozone-0.6 on Linux



Hello everybody,

as the subject line says I have problem compiling ozone on a Linux
system
(2.2.14 kernel) using Sun's 1.3 JDK.

(I assume this hasn't been posted before - I had a look at the archives
but
saw no notion of this particular problem. If this has been answered
before
then I'd appreciate anyone pointing me to it instead of answering the
same
question over and over again.)

OK, here is the basic JDK information:
"java -version" returns:

java version "1.3.0"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0)
Java HotSpot(TM) Client VM (build 1.3.0, mixed mode)


And the ozone version information:

Source package downloaded using the webpage from:
http://www.softwarebuero.de/html-download/ozone-src-0.6.zip

After unzipping the package, moving it into place and setting OZONE_HOME
to the directory I tried building it - this is how my shell looked like:

mwt-hn006:/usr/local/ozone # echo $OZONE_HOME
/usr/local/ozone
mwt-hn006:/usr/local/ozone # ./build.sh
Buildfile: build.xml
Project base dir set to: /usr/local/ozone
Executing Target: init
Executing Target: prepare
Executing Target: DxLib
Compiling 62 source files to /usr/local/ozone
Note: 2 files use or override a deprecated API.  Recompile with
"-deprecation" for details.
1 warning
Executing Target: org.ozoneDB.tools
Compiling 16 source files to /usr/local/ozone
Note: 3 files use or override a deprecated API.  Recompile with
"-deprecation" for details.
1 warning
Executing Target: org.ozoneDB.tools.OPP
BUILD FATAL ERROR: Error exec: /usr/local/ozone/bin/antRun
/usr/local/ozone java -classpath
.:/bin/jakarta-regexp.jar:./bin/junit.jar:./bin/omquery.jar:./bin/xtdash.jar:./bin/jta-spec1_0_1.jar:./bin/jndi.jar:./bin/castor.jar:
./bin/javaclass.jar:./bin/w3c-dom.jar:./bin/xalan.jar:./bin/xerces.jar:./bin/jsdk.jar
org.exolab.castor.builder.SourceGenerator -f 
-i ./org/ozoneDB/tools/OPP/OzoneClassDescriptor.xsd -package
org.ozoneDB.tools.OPP.castor
mwt-hn006:/usr/local/ozone #


Hm. Great. Let's try build.sh with the verbose and logfile options...
Aha. This is what the last lines of the logfile look like:

Executing Target: org.ozoneDB.tools.OPP
[java] Calling org.exolab.castor.builder.SourceGenerator
Myos = Linux
[exec] /usr/local/ozone/bin/antRun /usr/local/ozone java -classpath
.:./bin/jakarta-regexp.jar:./bin/junit.jar:./bin/omquery.jar:./bin/xtdash.jar:./bin/jta-spec1_0_1.jar:./bin/jndi.jar:./bin/castor.jar:./bin/javaclass.jar:./bin/w3c-dom.jar:./bin/xalan.jar:./bin/xerces.jar:./bin/jsdk.jar
org.exolab.castor.builder.SourceGenerator -f -i
./org/ozoneDB/tools/OPP/OzoneClassDescriptor.xsd -package
org.ozoneDB.tools.OPP.castor
BUILD FATAL ERROR: Error exec: /usr/local/ozone/bin/antRun
/usr/local/ozone java -classpath
.:./bin/jakarta-regexp.jar:./bin/junit.jar:./bin/omquery.jar:./bin/xtdash.jar:./bin/jta-spec1_0_1.jar:./bin/jndi.jar:./bin/castor.jar:./bin/javaclass.jar:./bin/w3c-dom.jar:./bin/xalan.jar:./bin/xerces.jar:./bin/jsdk.jar
org.exolab.castor.builder.SourceGenerator -f -i
./org/ozoneDB/tools/OPP/OzoneClassDescriptor.xsd -package
org.ozoneDB.tools.OPP.castor
org.apache.tools.ant.BuildException: Error exec:
/usr/local/ozone/bin/antRun /usr/local/ozone java -classpath
.:./bin/jakarta-regexp.jar:./bin/junit.jar:./bin/omquery.jar:./bin/xtdash.jar:./bin/jta-spec1_0_1.jar:./bin/jndi.jar:./bin/castor.jar:./bin/javaclass.jar:./bin/w3c-dom.jar:./bin/xalan.jar:./bin/xerces.jar:./bin/jsdk.jar
org.exolab.castor.builder.SourceGenerator -f -i
./org/ozoneDB/tools/OPP/OzoneClassDescriptor.xsd -package
org.ozoneDB.tools.OPP.castor
	at org.apache.tools.ant.taskdefs.Exec.run(Exec.java:141)
	at org.apache.tools.ant.taskdefs.Java.execute(Java.java:104)
	at org.apache.tools.ant.Target.execute(Target.java:120)
	at org.apache.tools.ant.Project.runTarget(Project.java:658)
	at org.apache.tools.ant.Project.executeTarget(Project.java:407)
	at org.apache.tools.ant.Main.runBuild(Main.java:240)
	at org.apache.tools.ant.Main.main(Main.java:191)

Now that I am actually taking a look at the bin directory I can tell
that
there are several files missing: w3c-dom.jar, xalan.jar and jsdk.jar .
I am wondering how this can be as the documentation states that the
source package contains everything that's needed for building ozone.

Can anybody tell me what the problem is ?

Thanks in advance.

Regards,
Robert.

PS.
I tried building ozone on NT SP 6 as well (using Sun's JDK 1.3.0_01) -
the problem is a totally different one:
E:\ozone-0.6>build
Buildfile: build.xml
Project base dir set to: E:\ozone-0.6
Executing Target: init
Executing Target: prepare
Executing Target: DxLib
Compiling 62 source files to E:\ozone-0.6
Exception in thread "main" java.lang.NoClassDefFoundError:
sun/tools/javac/Main
        at
org.apache.tools.ant.taskdefs.Javac.doClassicCompile(Javac.java:421)
        at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:218)
        at org.apache.tools.ant.Target.execute(Target.java:120)
        at org.apache.tools.ant.Project.runTarget(Project.java:658)
        at org.apache.tools.ant.Project.executeTarget(Project.java:407)
        at org.apache.tools.ant.Main.runBuild(Main.java:240)
        at org.apache.tools.ant.Main.main(Main.java:191)


------------------
Robert Skarwecki
robert@mindwork.de