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

Re: Error using opp



On Mon, 10 Jul 2000, Fukang wrote:
> Hi,
> 
> I am following the tutorial to learn Ozone. I got the following error when
> I used opp CarImpl. I am working on version 0.5, and OS is Window 2000.
> 
> F:\ozone\doc\tutorial>opp CarImpl
> 
> F:\ozone\doc\tutorial>rem $Id: opp.bat,v 1.5 2000/06/29 18:13:57 daniela
> Exp $
> CarImpl:
> Exception in thread
> "main" java.lang.NoClassDefFoundError: org/apache/regexp/RE
>         at org.ozoneDB.tools.OPP.OPPHelper.newRE(OPPHelper.java, Compiled
> Code)
>         at
> org.ozoneDB.tools.OPP.ProxyGenerator.<init>(ProxyGenerator.java:62)
>         at org.ozoneDB.tools.OPP.OPP.makeProxy(OPP.java:170)
>         at org.ozoneDB.tools.OPP.OPP.makeProxies(OPP.java, Compiled Code)
>         at org.ozoneDB.tools.OPP.OPP.main(OPP.java, Compiled Code)
>  
> /Fuknag/

I've forgotten to change the ozoneEnv.bat to use jakarta-regexp instead of
gnu-regexp :( Try to use the attached ozoneEnv.bat - or... checkout CVS ;)


Falko
-- 
______________________________________________________________________
Falko Braeutigam                         mailto:falko@softwarebuero.de
SMB GmbH                                   http://www.softwarebuero.de

rem $Id: ozoneEnv.bat,v 1.9 2000/06/29 18:13:58 daniela Exp $

@echo off

rem -----------------------------------------------------------
rem - O Z O N E  E N V I R O N M E N T  S E T T I N G S
rem -----------------------------------------------------------
rem -
rem - Its important to note that problems can occur if you
rem - already have the ozone JAR files in your classpath.
rem -
rem - This will be indicated by an 'Out of Environment Space'
rem - error.
rem -
rem - NOTE: Comment out the '@echo off' line at the top
rem - to have errors reported to you.
rem -
rem - It is assumed OZONE_HOME is set to the location of
rem - your Ozone base directory.
rem -
rem -----------------------------------------------------------

rem unset CLASSPATH to avoid 'Out of Environment Space' error

if NOT DEFINED OZONE_HOME goto noHomeSet

if NOT DEFINED OZONE_CLASSPATH goto setOzonePath

goto exitEnv

:setOzonePath

echo Initializing Ozone classpath...

set OZONE_CLASSPATH=%OZONE_CLASSPATH%;%OZONE_HOME%
set OZONE_CLASSPATH=%OZONE_CLASSPATH%;%OZONE_HOME%\bin\ozone.jar
set OZONE_CLASSPATH=%OZONE_CLASSPATH%;%OZONE_HOME%\bin\jakarta-regexp.jar
set OZONE_CLASSPATH=%OZONE_CLASSPATH%;%OZONE_HOME%\bin\jta-spec1_0_1.jar
set OZONE_CLASSPATH=%OZONE_CLASSPATH%;%OZONE_HOME%\bin\castor.jar
set OZONE_CLASSPATH=%OZONE_CLASSPATH%;%OZONE_HOME%\bin\jndi.jar
set OZONE_CLASSPATH=%OZONE_CLASSPATH%;%OZONE_HOME%\bin\w3c-dom.jar
set OZONE_CLASSPATH=%OZONE_CLASSPATH%;%OZONE_HOME%\bin\xalan.jar
set OZONE_CLASSPATH=%OZONE_CLASSPATH%;%OZONE_HOME%\bin\xerces.jar
set OZONE_CLASSPATH=%OZONE_CLASSPATH%;%OZONE_HOME%\samples
set OZONE_CLASSPATH=%OZONE_CLASSPATH%;%OZONE_HOME%\classes

rem set CLASSPATH=%CLASSPATH%;%OZONE_CLASSPATH%

goto exitEnv

:noHomeSet

echo Environment variable OZONE_HOME is not properly set!
exit /B 1

:exitEnv
exit /B 0