Thanks

-----Original Message-----
From: Steve Penella [mailto:[EMAIL PROTECTED]]
Sent: Friday, September 08, 2000 1:43 PM
To: '[EMAIL PROTECTED]'
Subject: RE: JSPC Compiler


This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------_=_NextPart_000_01C019D5.14D17A58
Content-Type: text/plain;
        charset="iso-8859-1"

Sounds like you're missing a jar file in your classpath.

Use this bat file and run

add jrun c:\jrun

NOTE: "c:\jrun" s/b the full directory name of where you installed jrun.

This will add all your jrun jar files from lib and lib\ext to your path.

hope this helps ...






-----Original Message-----
From: Asha Sayd [mailto:[EMAIL PROTECTED]]
Sent: Friday, September 08, 2000 11:46 AM
To: [EMAIL PROTECTED]
Subject: JSPC Compiler



hello,

I tried compiling jsp files using JSPC Compiler.
But i am getting a "NoClassDefFoundError: JSPC".
I am running a JRun version 3.0 and jdk1.2.2

This is what i have used to compile jsp files

set JAVA_HOME=C:\jdk1.2.2
set JRE_HOME=%JAVA_HOME%\jre

set classpath
=.;%JAVA_HOME%\lib\*.jar;%JRE_HOME%\lib\i18n.jar;%JRE_HOME%\lib\jaws.jar;c:\
program files\allaire\jrun\lib\ext\*.jar;c:\program
files\allaire\jrun\lib\*.jar;

java JSPC -d C:\jspclasses -docroot C:\JspPages *.jsp

Any suggestions?


ASHA

----------------------------------------------------------------------------
--
Archives: http://www.egroups.com/group/jrun-interest/
Unsubscribe:
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/jrun_talk
or send a message to [EMAIL PROTECTED] with 'unsubscribe'
in the body.


------_=_NextPart_000_01C019D5.14D17A58
Content-Type: application/octet-stream;
        name="add.bat"
Content-Disposition: attachment;
        filename="add.bat"

@echo off
rem ----------------------------

rem add j2ee [jrun root dir]
rem    Adds jrun\lib\ext\*.jar to the classpath

rem add jars [directory]
rem    Adds all jars in the specified directory to the classpath

rem add jdk [jdk root dir]
rem    Set up the specified JDK. If no argument is passed, JAVA_HOME will be
used

rem add jrun [jrun root dir]
rem    Adds [jrun root dir]\lib\*.jar;[jrun root dir]\lib\ext\*.jar to the
classpath

rem add webapp [webapp root dir]
rem    Adds [webapp root dir]\WEB-INF\classes;[webapp root
dir]\WEB-INF\lib\*.jar to the classpath

rem Example usage to set up for compilation of the jrun demo-app:
rem    add jdk c:\java\jdk1.3
rem    add j2ee c:\jrun
rem    add webapp c:\jrun\servers\default\demo-app
rem ----------------------------

if "%1"=="" goto usage
goto %1

:jars
if "%2"=="" goto err_missing_dir
rem for %%i in (%2\*.jar) do call add cp %%i
for %%i in (%2\*.jar) do call add cp %%i
goto success

:jdk
if "%2"=="" if "%JAVA_HOME%"=="" goto err_no_jdk_set
set _JAVA_HOME=%2
if "%_JAVA_HOME%" == "" set _JAVA_HOME=%JAVA_HOME%
if not exist "%_JAVA_HOME%\bin\javac.exe" goto err_invalid_jdk
set JAVA_HOME=%_JAVA_HOME%
set PATH=%JAVA_HOME%\bin;%PATH%
call add jars %JAVA_HOME%\jre\lib
call add jars %JAVA_HOME%\lib
goto success

:j2ee
if "%2"=="" if "%JRUN_HOME%"=="" goto err_no_jrun_set
set _JRUN_HOME=%2
if "%_JRUN_HOME%" == "" set _JRUN_HOME=%JRUN_HOME%
if not exist "%_JRUN_HOME%\bin\jrun.exe" goto err_invalid_jrun
set JRUN_HOME=%_JRUN_HOME%
call add jars %JRUN_HOME%\lib\ext
goto success

:jrun
if "%2"=="" if "%JRUN_HOME%"=="" goto err_no_jrun_set
set _JRUN_HOME=%2
if "%_JRUN_HOME%" == "" set _JRUN_HOME=%JRUN_HOME%
if not exist "%_JRUN_HOME%\bin\jrun.exe" goto err_invalid_jrun
set JRUN_HOME=%_JRUN_HOME%
call add jars %JRUN_HOME%\lib
call add jars %JRUN_HOME%\lib\ext
goto success

:cp
if "%2"=="" goto usage
set CLASSPATH=%2;%CLASSPATH%
goto success

:webapp
if "%2"=="" goto err_missing_webapp
if not exist "%2\WEB-INF\classes" goto err_not_webapp
for %%i in (%2\WEB-INF\lib\*.jar) do call add cp %%i
call add cp %2\WEB-INF\classes
goto success

:success
goto end

:usage
echo add j2ee [jrun root dir]
echo add jars [directory]
echo add jdk [jdk root dir]
echo add jrun [jrun root dir]
echo add webapp [webapp root dir]
goto end

:err_invalid_jdk
echo ERROR! Not a valid JDK installation: %_JAVA_HOME%
goto usage

:err_invalid_jrun
echo ERROR! Not a valid JRun installation: %_JRUN_HOME%
goto usage

:err_no_jdk_set
echo ERROR! JAVA_HOME not set or passed as argument
goto usage

:err_no_jrun_set
echo ERROR! JRUN_HOME not set or passed as argument
goto usage

:err_no_such_path
echo ERROR! no such path %2
goto usage

:err_missing_dir
echo ERROR! missing required directory argument
goto usage

:err_missing_webapp
echo ERROR! missing required webapp directory argument
goto usage

:err_not_webapp
echo ERROR! directory is not a web application: %2
goto usage

:error
echo "Error occured"
goto usage

:end
------_=_NextPart_000_01C019D5.14D17A58--
----------------------------------------------------------------------------
--
Archives: http://www.egroups.com/group/jrun-interest/
Unsubscribe:
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/jrun_talk
or send a message to [EMAIL PROTECTED] with 'unsubscribe'
in the body.

------------------------------------------------------------------------------
Archives: http://www.egroups.com/group/jrun-interest/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/jrun_talk
or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the 
body.

Reply via email to