Rodolfo:

Aqui vai o que eu te falei sobre rodar J2EE em Windows 98

////////////////  extraido do Forum do Sun Java Site  //////////

J2EE runs fine on Windows 98.
1.  Get the Win_One shareware command shell and use it to launch J2EE
2.  Create initj2ee.bat that configures:
a)  the path variable to include your j2ee\bin directory
b)  the classpath variable to include the j2ee.jar
c)  the java_home variable to contain the location of your JDK
d)  the j2ee_home variable to contain the location of your J2EE

I installed "j2ee" under my "jdk" directory.  My initj2ee.bat looks like:
set path=%path%;c:\jcdc\jdk\j2ee\bin
set classpath=c:\jcdc\jdk\j2ee\lib\j2ee.jar;%classpath%
set JAVA_HOME=c:\jcdc\jdk
set J2EE_HOME=c:\jcdc\jdk\j2ee

I cleaned up the .bat files that came with J2EE.  My setenv looks like:
call %J2EE_HOME%\bin\userconfig.bat
set LIBDIR=%J2EE_HOME%\lib
set LOCALEDIR=%J2EE_HOME%\lib\locale
set CLOUDSCAPE_INSTALL=%LIBDIR%\cloudscape
set CLASSESDIR=%LIBDIR%\classes
set J2EEJARS=%LIBDIR%\j2ee.jar
set JAVART=%JAVA_HOME%\jre\lib\rt.jar
set JAVATOOLS=%JAVA_HOME%\lib\tools.jar
set SYSTEMJARS=%JAVART%;%JAVATOOLS%
set 
ACTIVATION="-Dcom.sun.enterprise.activation.DbDir=%J2EE_HOME%\repository"
set EHOME="-Dcom.sun.enterprise.home=%J2EE_HOME%"
set 
CLOUDJARS=%CLOUDSCAPE_INSTALL%\RmiJdbc.jar;%CLOUDSCAPE_INSTALL%\client.jar
set JAVAHELPJARS=%LIBDIR%\jhall.jar
set 
CPATH=%CLASSESDIR%;%LOCALEDIR%;%J2EEJARS%;%SYSTEMJARS%;.;%J2EE_CLASSPATH%;%CLOUDJARS%;%JAVAHELPJARS%
set JAVACMD=%JAVA_HOME%\bin\java -Xmx128m %EHOME% %ACTIVATION%  
-Djava.compiler=NONE

... and my userconfig.bat is empty.  My j2ee.bat file is:
@echo off
if not "%J2EE_HOME%" == "" goto CONT0
echo ERROR: Set J2EE_HOME before running this script.
goto END
:CONT0
if EXIST "%J2EE_HOME%\bin\setenv.bat" goto CONT1
echo ERROR: Set J2EE_HOME to the path of a valid j2sdkee.
goto END
:CONT1
call %J2EE_HOME%\bin\setenv.bat
if not "%JAVA_HOME%" == "" goto CONT2
echo ERROR: Set JAVA_HOME before running this script.
goto END
:CONT2
if EXIST "%JAVA_HOME%\bin\java.exe" goto CONT3
echo ERROR: Set JAVA_HOME to the path of a valid jdk.
goto END
:CONT3
set 
SECPOLICY="-Djava.security.policy==%J2EE_HOME%\lib\security\server.policy"
@echo on
%JAVACMD% %SECPOLICY% -classpath "%CPATH%" 
com.sun.enterprise.server.J2EEServer %1 %2
@echo off
:END


I always use the -verbose flag when running j2ee.  It is murder not to.  I 
hope the .bat files posted OK.  This forum thing usually messes up my posts. 
  If you need me to email you the .bat files, just post your email address 
or email it to me at [EMAIL PROTECTED] (my spam account.)


Cameron Purdy
LiveWater

//////////////////////////////////////////////////////////////


>From: Rodolfo Duarte Dias <[EMAIL PROTECTED]>
>To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
>Subject: [SouJava-J] ENC: J2EE
>Date: Fri, 23 Jun 2000 16:22:39 -0300
>
>
> > Estive olhando a documentacao do J2EE e constatei que ele suporta apenas
> > estas plataformas.
> > 
>http://java.sun.com/j2ee/j2sdkee/techdocs/release/ReleaseNotes.html#10584
> > Supported Platforms
> > *   SolarisTM 7, 8
> > Windows NT, v. 4.0
> > Windows 2000 Professional
> > Linux Redhat, v. 6.0
> > , ou seja, como tenho o Windows98, n�o posso instalar o j2ee pois o 
>mesmo
> > n�o ir� rodar em minha m�quina. Pox� se temos o jdk1.2.x rodando em
> > Window95/98 por que n�o podemos ter o J2EE tamb�m?
> >
>
>     --------------------------- LISTA SOUJAVA ---------------------------
>     http://www.soujava.org.br  -  Sociedade de Usu�rios Java da Sucesu-SP
>     [d�vidas mais comuns: http://www.soujava.org.br/faq.htm]
>     [para sair da lista: http://www.soujava.org.br/forum/cadastrados.htm]
>     [regras da lista: http://www.soujava.org.br/regras.htm]
>     ---------------------------------------------------------------------
>

________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com

    --------------------------- LISTA SOUJAVA ---------------------------
    http://www.soujava.org.br  -  Sociedade de Usu�rios Java da Sucesu-SP
    [d�vidas mais comuns: http://www.soujava.org.br/faq.htm]
    [para sair da lista: http://www.soujava.org.br/forum/cadastrados.htm]
    [regras da lista: http://www.soujava.org.br/regras.htm]
    ---------------------------------------------------------------------

Responder a