SET CLASSPATH=D:\jdk1.3\jre\lib\rt.jar;D:\j2sdkee1.3\lib\j2ee.jar;
PATH=%PATH%;D:\jdk1.3\bin;D:\j2sdkee1.3\bin
SET J2EE_HOME=D:\j2sdkee1.3
SET JAVA_HOME=D:\jdk1.3
@echo off
rem
rem Set JAVA_HOME and J2EE_HOME before running this script.
rem
rem first include user-specified definitions.
call %J2EE_HOME%\bin\userconfig.bat
if "%JMS_HOME%" == "" set JMS_HOME=%J2EE_HOME%
set LIBDIR=%J2EE_HOME%\lib
set LOCALEDIR=%J2EE_HOME%\lib\locale
set CLOUDSCAPE_INSTALL=%LIBDIR%\cloudscape
set CLASSESDIR=%LIBDIR%\classes
set JMS_CLASSESDIR=%JMS_HOME%\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 JAVAHELPJARS=%LIBDIR%\jhall.jar
rem JMS DB PATH must end in slash to specify a directory
set JMS_DB_PATH=%J2EE_HOME%\repository\%COMPUTERNAME%\db\
set SYSTEM_LIB_DIR=%LIBDIR%\system
set JMS_RI_JDBC=%SYSTEM_LIB_DIR%\cloudscape.jar;%SYSTEM_LIB_DIR%\tools.jar
set CLOUDJARS=%JMS_RI_JDBC%;%CLOUDSCAPE_INSTALL%\RmiJdbc.jar;%CLOUDSCAPE_INSTALL%\client.jar
set CPATH=%CLOUDJARS%;%CLASSESDIR%;%JMS_CLASSESDIR%;%J2EEJARS%;%LOCALEDIR%;%SYSTEMJARS%;.;%JAVAHELPJARS%
rem set JAAS_OPTIONS=-Djava.security.auth.policy=%J2EE_HOME%\lib\security\jaas.policy
rem set SSL_OPTIONS=-Djavax.net.ssl.trustStore=%J2EE_HOME%\lib\security\cacerts.jks
rem set SOCKET_FACTORY=-Dcom.sun.CORBA.connection.ORBSocketFactoryClass=com.sun.enterprise.iiop.IIOPSSLSocketFactory
rem set LISTEN_OPTIONS=-Dcom.sun.CORBA.connection.ORBListenSocket=SSL:0,SSL_MUTUALAUTH:0,PERSISTENT_SSL:1060
rem set JAVACMD=%JAVA_HOME%\bin\java -Xmx128m %SSL_OPTIONS% %JAAS_OPTIONS%
@echo off
rem
rem Set JAVA_HOME and J2EE_HOME before running this script.
rem
rem set JAVA_HOME to the path where you have Java 2 (JDK1.2) installed.
rem
rem set J2EE_HOME to the path where you have installed this package (EJB server).
rem
if not "%J2EE_HOME%" == "" goto CONT0
echo ERROR: Set J2EE_HOME before running this script.
goto END
:CONT0
if EXIST "%J2EE_HOME%\bin\setenv0.bat" goto CONT1
echo ERROR: Set J2EE_HOME to the path of a valid j2sdkee.
goto END
:CONT1
call %J2EE_HOME%\bin\setenv0.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
rem @echo on
rem %JAVACMD% %LISTEN_OPTIONS%
-Dorg.xml.sax.parser=org.xml.sax.helpers.XMLReaderAdapter
-Dorg.xml.sax.driver=org.apache.crimson.parser.XMLReaderImpl
-Djms.home=%JMS_HOME%
-Dcom.sun.jms.service.jdbc.dbpath=%JMS_DB_PATH%
-Djms.properties=%J2EE_HOME%\config\jms_service.properties
-Djava.security.policy==%J2EE_HOME%\lib\security\server.policy
-Djava.security.auth.login.config=%J2EE_HOME%\lib\security\login.config
-Dcom.sun.enterprise.home=%J2EE_HOME%
-classpath "%CPATH%" com.sun.enterprise.server.J2EEServer %1 %2
@echo on
java -Xmx128m
-Dorg.xml.sax.parser=org.xml.sax.helpers.XMLReaderAdapter
-Dorg.xml.sax.driver=org.apache.crimson.parser.XMLReaderImpl
-Djms.home=%JMS_HOME%
-Dcom.sun.jms.service.jdbc.dbpath=%JMS_DB_PATH%
-Djms.properties=%J2EE_HOME%\config\jms_service.properties
-Djava.security.policy==%J2EE_HOME%\lib\security\server.policy
-Djava.security.auth.login.config=%J2EE_HOME%\lib\security\login.config
-Dcom.sun.enterprise.home=%J2EE_HOME%
-classpath "%CPATH%" com.sun.enterprise.server.J2EEServer %1 %2
:END
D:\j2sdkee1.3\bin>j2ee0 -verbose
D:\j2sdkee1.3\bin>java -Xmx128m -Dorg.xml.sax.parser=org.xml.sax.helpers.XMLRead
erAdapter -Dorg.xml.sax.driver=org.apache.crimson.parser.XMLReaderImpl -Djms.hom
e=D:\j2sdkee1.3 -Dcom.sun.jms.service.jdbc.dbpath=D:\j2sdkee1.3\repository\\db\
-Djms.properties=D:\j2sdkee1.3\config\jms_service.properties -Djava.security.pol
icy==D:\j2sdkee1.3\lib\security\server.policy -Djava.security.auth.login.config=
D:\j2sdkee1.3\lib\security\login.config -Dcom.sun.enterprise.home=D:\j2sdkee1.3
-classpath "D:\j2sdkee1.3\lib\system\cloudscape.jar;D:\j2sdkee1.3\lib\system\too
ls.jar;D:\j2sdkee1.3\lib\cloudscape\RmiJdbc.jar;D:\j2sdkee1.3\lib\cloudscape\cli
ent.jar;D:\j2sdkee1.3\lib\classes;D:\j2sdkee1.3\classes;D:\j2sdkee1.3\lib\j2ee.j
ar;D:\j2sdkee1.3\lib\locale;D:\jdk1.3\jre\lib\rt.jar;D:\jdk1.3\lib\tools.jar;.;D
:\j2sdkee1.3\lib\jhall.jar" com.sun.enterprise.server.J2EEServer -verbose
J2EE server listen port: 1050
Naming service started:1050
Binding DataSource, name = jdbc/Cloudscape, url = jdbc:cloudscape:rmi:Cloudscape
DB;create=true
Binding DataSource, name = jdbc/DB2, url = jdbc:cloudscape:rmi:CloudscapeDB;crea
te=true
Binding DataSource, name = jdbc/DB1, url = jdbc:cloudscape:rmi:CloudscapeDB;crea
te=true
Binding DataSource, name = jdbc/EstoreDB, url = jdbc:cloudscape:rmi:CloudscapeDB
;create=true
Binding DataSource, name = jdbc/InventoryDB, url = jdbc:cloudscape:rmi:Cloudscap
eDB;create=true
Binding DataSource, name = jdbc/XACloudscape, url = jdbc/XACloudscape__xa
Binding DataSource, name = jdbc/XACloudscape__xa, dataSource = COM.cloudscape.co
re.RemoteXaDataSource@649dcd
Starting JMS service ... Initialization complete - waiting for client requests
Binding : < JMS Destination : jms/Topic , javax.jms.Topic >
Binding : < JMS Destination : jms/Queue , javax.jms.Queue >
Binding : < JMS Cnx Factory : QueueConnectionFactory , Queue , No properties >
Binding : < JMS Cnx Factory : TopicConnectionFactory , Topic , No properties >
Binding : < JMS Cnx Factory : jms/TopicConnectionFactory , Topic , No properties<br /> >
Binding : < JMS Cnx Factory : jms/QueueConnectionFactory , Queue , No properties<br /> >
Starting web service at port:8000
Starting secure web service at port:7000
Apache Tomcat/4.0-b1
Starting web service at port:9191
Apache Tomcat/4.0-b1
J2EE server startup complete.
Originally posted by steven minnerly:
Maybe I'm missing something obvious but isn't j2ee 1.3 beta only for windows nt and windows 2000 professional? Will is still run on windows 98 too?
steve
%JAVA_HOME%\bin\java -Xmx128m
-Djavax.net.ssl.trustStore=%J2EE_HOME%\lib\security\cacerts.jks
-Djava.security.auth.policy=%J2EE_HOME%\lib\security\jaas.policy
-Dcom.sun.CORBA.connection.ORBListenSocket=
SSL:0,SSL_MUTUALAUTH:0,PERSISTENT_SSL:1060
-Dorg.xml.sax.parser=org.xml.sax.helpers.XMLReaderAdapter
-Dorg.xml.sax.driver=org.apache.crimson.parser.XMLReaderImpl
-Djms.home=%JMS_HOME%
-Dcom.sun.jms.service.jdbc.dbpath=%JMS_DB_PATH%
-Djms.properties=%J2EE_HOME%\config\jms_service.properties
-Djava.security.policy==%J2EE_HOME%\lib\security\server.policy
-Djava.security.auth.login.config=%J2EE_HOME%\lib\security\login.config
-Dcom.sun.enterprise.home=%J2EE_HOME%
-classpath "%CPATH%" com.sun.enterprise.server.J2EEServer %1 %2
Originally posted by Manfred Leonhardt:
Noel,
The exam title says it all...
SCJP2
Manfred.
Originally posted by sandeep vijan:
<PRE>
.....
Float r=new Float(st).floatValue();//"float" is primitive data
//type and "Float" is class
ar=2*3.14*r*r;
System.out.println(ar);
}
}
</PRE>
Jacquie's 'Tried and True' Method for Learning Java Properly
....
14. From this point forward, your options are open-ended! For example, you may wish to become familiar with Java 2 Enterprise Edition, which provides support for enterprise-level server-side applications; you may wish to study up on the Java 2D and 3D graphics APIs; or your interests may lie with the Java 2 Micro Edition (J2ME), a highly optimized Java runtime environment targeting consumer products such as cellular phones and pagers. Whichever direction you choose to take, you can rest assured that there will be plenty of new Java-related innovations in the months and years to come.