• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Problems getting started

 
Ranch Hand
Posts: 86
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Season's greetings!
I'm trying to learn J2EE, servlets, JSP etc and I'm having a problem getting started. I'm using SUN's J2EE tutorial and I must say here that it doesn't seem nearly as good to me as Sun's Java tutorial, for someone starting up like I am.
I have installed the j2sdk1.4.0, jakarta-ant-1.4.1,apache tomcat-4.1.18 *,j2sdkee1.3.1 and succesfully set the JAVA_HOME,ANT_HOME and the J2EE_HOME envinronment variables. The tutorials, under "getting started" says To launch the J2EE server, open a terminal window and type this command:
j2ee -verbose
This I did and got the following message:
C:\>j2ee -verbose
Bad command or file name
Out of environment space
Out of environment space
Out of environment space
Syntax error
Syntax error
Syntax error
Out of environment space
Bad command or file name
It also goes on to say about starting the deploytool,
The deploytool has two modes: command-line and GUI. The instructions in this chapter refer to the GUI version. To start the deploytool GUI, open a terminal window and type this command:
deploytool

I did this and got the following:
C:\>deploytool
Bad command or file name
Out of environment space
Out of environment space
Out of environment space
Syntax error
Syntax error
Syntax error
Out of environment space
Out of environment space
Out of environment space
Out of environment space
Bad command or file name
[1] Where am I doing wrong here?
The tutorial also goes on to say, under "to build the examples":Go to the j2eetutorial/examples/src directory. Execute ant target. For example, to build all the examples, execute ant all or to build the web layer examples, execute ant web. Well, when I try this, I get an error message, the type you get when you use the wrong flag when invoking the java command or something similar. It goes like:
Usage: java [-options] class [args...]
(to execute a class)
or java -jar [-options] jarfile [args...]
(to execute a jar file)
where options include:
-client to select the "client" VM
-server to select the "server" VM
-hotspot is a synonym for the "client" VM [deprecated]
The default VM is client.
-cp -classpath <directories and zip/jar files separated by ;>
set search path for application classes and resources.............................
[2] Can anyone figure out what's wrong here too?

[3] I had downloaded tomcat-4.1.18.exe, tomcat-4.1.18-LE-jdk14.exe,tomcat-4.1.18-src.zip,tomcat-connectors-4.1.18-src.zip and installed tomcat by double clicking on tomcat-4.1.18.exe. What are these other tomcat files for and did I even install the right one?
Any useful suggestions would be greatly appreciated.
 
Ranch Hand
Posts: 469
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Did you include bin directory of J2sjkee in ur PATH environment variable?Check value of path env variable by set command.
Veena
 
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
As veena said do check the Path first..if the first problem still persists do change the buffer size of the command window to around "800"..by default it is '50'..
 
Femi Alla
Ranch Hand
Posts: 86
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks for those responses. The bin directories are correctly listed among the environment variables. For this reason, I would like to change the buffer size of the command window to around "800" to see if this would solve the problem, but how do I go about doing this (setting the buffer size - and what is the buffer size anyway?)?
Thanks a lot.
 
Femi Alla
Ranch Hand
Posts: 86
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all,
Could someone please take a stab at my last question? A few helpful words would be appreciated.
Thanks.
 
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I will tell you what works for me. My OS is WinME and here are my environment settings:
COMSPEC=C:\WINDOWS\COMMAND.COM
PATH=C:\ANT-1.5\BIN;C:\J2SDKEE-1.3.1\Bin;C:\J2SDK-1.4.1-01\BIN;C:\WINDOWS;C:\
WINDOWS\COMMAND;C:\PROGRA~1\ULTRAE~1
PROMPT=$p$g
TEMP=C:\WINDOWS\TEMP
TMP=C:\WINDOWS\TEMP
J2EE_HOME=C:\J2SDKEE-1.3.1
JAVA_HOME=C:\J2SDK-1.4.1-01
CLASSPATH=.;C:\J2SDK-1.4.1-01\JRE\LIB\RT.JAR;C:\J2SDK-1.4.1-01\LIB\TOOLS.JAR
ANT_HOME=C:\ANT-1.5
Here is my testj2ee.bat file (so named as to not interfere with the original file):
@echo off
call %J2EE_HOME%\bin\setenv.bat
@echo on
cd %J2EE_HOME\bin
java -Xmx128m %JAAS1A%=%JAAS1B% %JAAS2A%=%JAAS2B% %JAAS3A%=%JAAS3B% -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% com.sun.enterprise.server.J2EEServer %1 %2
cd c:\j2sdkee1.3\bin
--------------end of testj2ee.bat file-----------
Here is my testsetenv.bat file (so named to avoid messing up the original file):
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
set JMS_HOME=%J2EE_HOME%
set LIBDIR=%J2EE_HOME%\lib
set LOCALEDIR=%J2EE_HOME%\lib\locale
set CLASSESDIR=%J2EE_HOME\lib\classes
set JMS_CLASSESDIR=%J2EE_HOME\config
rem JMS DB PATH must end in slash to specify a directory
rem set JMS_DB_PATH=%J2EE_HOME%\repository\%COMPUTERNAME%\
rem
set CPATH=%J2EE_HOME%\config;%J2EE_HOME%\conf;%LIBDIR%\system\cloudscape.jar;%LIBDIR%\system\tools.jar;%LIBDIR%\cloudscape\RmiJdbc.jar;%LIBDIR%\cloudscape\client.jar;%LIBDIR%\jhall.jar;%JAVA_HOME%\lib\tools.jar;%JAVA_HOME%\jre\lib\rt.jar;%LIBDIR%\j2ee.jar;.;%CLASSESDIR%;%JMS_CLASSESDIR%;%LOCALEDIR%
set JAAS1A=-Djavax.net.ssl.trustStore
set JAAS1B=%J2EE_HOME%\lib\security\cacerts.jks
set JAAS2A=-Djava.security.auth.policy
set JAAS2B=%J2EE_HOME%\lib\security\jaas.policy
set JAAS3A=-Dcom.sun.CORBA.connection.ORBSocketFactoryClass
set JAAS3B=SSL:0,SSL_MUTUALAUTH:0,PERSISTENT_SSL:1060
set CLASSPATH=%CLASSPATH%;%CPATH%
---------------end of testsetenv.bat file---------
Here is my testdeploytool.bat file (so named as to not mess up the original file):
@echo off
call %J2EE_HOME%\bin\testsetenv.bat
set DH_JAR=%LIBDIR%\..\help\DeployTool\deployhelp.jar
set JAVA_HELP=%LIBDIR%\jh.jar
set CPATH_CH=%JAVA_HELP%;%DH_JAR%;%J2EE_HOME%\lib\j2eetools.jar
set CLASSPATH=%CLASSPATH%;%CPATH_CH%
@echo on
cd %JAVA_HOME%\bin
java %JAAS1A%=%JAAS1B% %JAAS2A%=%JAAS2B% %JAAS3A%=%JAAS3B% -Dcom.sun.enterprise.home=%J2EE_HOME% com.sun.enterprise.tools.deployment.main.Main %1 %2 %3 %4
cd %J2EE_HOME%\bin
-----------end of testdeploytool.bat file--------
Cut and paste each snippet into the bin directory of your j2ee folder.
It is also important to change the memory limits of the DOS box. To do so, start a DOS window, put
the cursor over the title bar of the DOS window, right-click to get the properties window, click on the
memory tab, and change the initial environment value from 'auto' to 4096.
Make sure you are in the bin directory of your j2ee directory.
Then, to invoke the j2ee server, type 'testj2ee' at the DOS prompt. To invoke the deploytool,
type 'testdeploytool' at the DOS prompt.
This should satisfy all of the issues that you will find when attempting to use the J2EE RI.
I take no credit whatsoever for the solution I have presented here. The proper credit should be
given to the authors of the following links:
http://forum.java.sun.com/thread.jsp?thread=24425&forum=14&message=384810
and
http://forum.java.sun.com/thread.jsp?forum=136&thread=166386
The only credit I can take is one of finding them.
BTW, once you get the J2EE RI working, you might try out the following tutorial:
http://developer.java.sun.com/developer/onlineTraining/J2EE/Intro2/j2ee.html
Happy New Year!
Robert Troshynski
[ January 01, 2003: Message edited by: Robert Troshynski ]
[ January 01, 2003: Message edited by: Robert Troshynski ]
 
Femi Alla
Ranch Hand
Posts: 86
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Dear Robert Troshynski,
Thanks for that wonderful solution. But I'm still experiencing a few glitches here and there. I did all you asked me to do; the only thing I changed was the last line in the testj2ee.bat file from cd c:\j2sdkee1.3\bin to cd c:\j2sdkee1.3.1\bin as mine is j2sdkee1.3.1. Upon entering the bin directory of my j2ee and typing testj2ee, this was what I got:
C:\j2sdkee1.3.1\bin>testj2ee
Syntax error
Syntax error
Syntax error
C:\j2sdkee1.3.1\bin>
C:\j2sdkee1.3.1\bin>cd J2EE_HOME\bin
Invalid directory
C:\j2sdkee1.3.1\bin>
C:\j2sdkee1.3.1\bin>java -Xmx128m = = = -Dorg.xml.sax.parser=org.xml.sax.helpers
.XMLReaderAdapter -Dorg.xml.sax.driver=org.apache.crimson.parser.XMLReaderImpl -
Djms.home=C:\j2sdkee1.3.1 -Dcom.sun.jms.service.jdbc.dbpath=C:\j2sdkee1.3.1\repo
sitory\\db\ -Djms.properties=C:\j2sdkee1.3.1\config\jms_service.properties -Djav
a.security.policy==C:\j2sdkee1.3.1\lib\security\server.policy -Djava.security.au
th.login.config=C:\j2sdkee1.3.1\lib\security\login.config -Dcom.sun.enterprise.h
ome=C:\j2sdkee1.3.1 com.sun.enterprise.server.J2EEServer
Exception in thread "main" java.lang.NoClassDefFoundError: =
C:\j2sdkee1.3.1\bin>
C:\j2sdkee1.3.1\bin>cd c:\j2sdkee1.3.1\bin
C:\j2sdkee1.3.1\bin>
C:\j2sdkee1.3.1\bin>
-----------------------------------------------------------------------------------------------
An attempt to invoke the deploytool by typing testdeploytool at the command prompt generated the following:
C:\j2sdkee1.3.1\bin>testdeploytool
Syntax error
Syntax error
C:\j2sdkee1.3.1\bin>
C:\j2sdkee1.3.1\bin>cd c:\j2sdk1.4.0\bin
C:\j2sdk1.4.0\bin>
C:\j2sdk1.4.0\bin>java -Djavax.net.ssl.trustStore=C:\j2sdkee1.3.1\lib\security\c
acerts.jks -Djava.security.auth.policy=C:\j2sdkee1.3.1\lib\security\jaas.policy
-Dcom.sun.CORBA.connection.ORBSocketFactoryClass=SSL:0,SSL_MUTUALAUTH:0,PERSISTE
NT_SSL:1060 -Dcom.sun.enterprise.home=C:\j2sdkee1.3.1 com.sun.enterprise.tools.
deployment.main.Main
Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/enterprise/to
ols/deployment/main/Main
C:\j2sdk1.4.0\bin>
C:\j2sdk1.4.0\bin>cd C:\j2sdkee1.3.1\bin
C:\j2sdkee1.3.1\bin>
C:\j2sdkee1.3.1\bin>
----------------------------------------------------------------------------------------------
and testsetenv.bat generated:
--------------- a few lines I couldn't catch here-----------------
C:\j2sdkee1.3.1\bin>call C:\j2sdkee1.3.1\bin\userconfig.bat
C:\j2sdkee1.3.1\bin>REM
REM Copyright 2002 Sun Microsystems, Inc. All rights rese
rved.
REM SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
REM
rem J2
EE_CLASSPATH is appended to the classpath referenced by the EJB server.
C:\j2sdkee1.3.1\bin>rem J2EE_CLASSPATH must include the location of the JDBC dri
ver classes
C:\j2sdkee1.3.1\bin>rem (except for the Cloudscape driver shipped with this rele
ase).
C:\j2sdkee1.3.1\bin>rem Each directory is delimited by a semicolon.
C:\j2sdkee1.3.1\bin>rem
C:\j2sdkee1.3.1\bin>rem set J2EE_CLASSPATH=
C:\j2sdkee1.3.1\bin>rem
-------------------a few lines I couldn't catch here too-------------------
C:\j2sdkee1.3.1\bin>rem Standard Edition software is installed.
C:\j2sdkee1.3.1\bin>rem
C:\j2sdkee1.3.1\bin>rem set JAVA_HOME=
C:\j2sdkee1.3.1\bin>rem
C:\j2sdkee1.3.1\bin>
C:\j2sdkee1.3.1\bin>
C:\j2sdkee1.3.1\bin>
C:\j2sdkee1.3.1\bin>set JMS_HOME=C:\j2sdkee1.3.1
C:\j2sdkee1.3.1\bin>set LIBDIR=C:\j2sdkee1.3.1\lib
C:\j2sdkee1.3.1\bin>set LOCALEDIR=C:\j2sdkee1.3.1\lib\locale
C:\j2sdkee1.3.1\bin>set CLASSESDIR=J2EE_HOME\lib\classes
C:\j2sdkee1.3.1\bin>set JMS_CLASSESDIR=J2EE_HOME\config
C:\j2sdkee1.3.1\bin>rem JMS DB PATH must end in slash to specify a directory
--------------------a few more lines here ----------------------------
C:\j2sdkee1.3.1\bin>set JAAS1A=-Djavax.net.ssl.trustStore
C:\j2sdkee1.3.1\bin>set JAAS1B=C:\j2sdkee1.3.1\lib\security\cacerts.jks
C:\j2sdkee1.3.1\bin>set JAAS2A=-Djava.security.auth.policy
C:\j2sdkee1.3.1\bin>set JAAS2B=C:\j2sdkee1.3.1\lib\security\jaas.policy
C:\j2sdkee1.3.1\bin>set JAAS3A=-Dcom.sun.CORBA.connection.ORBSocketFactoryClass
C:\j2sdkee1.3.1\bin>set JAAS3B=SSL:0,SSL_MUTUALAUTH:0,PERSISTENT_SSL:1060
C:\j2sdkee1.3.1\bin>
C:\j2sdkee1.3.1\bin>set CLASSPATH=.;C:\j2sdk1.4.0\jre\lib\rt.jar;ANT_HOME=C:\jak
arta-ant-1.4.1;C:\j2sdk1.4.0\lib\tools.jar;C:\j2sdkee1.3.1\config;C:\j2sdkee1.3.
1\conf;C:\j2sdkee1.3.1\lib\system\cloudscape.jar;C:\j2sdkee1.3.1\lib\system\tool
s.jar;C:\j2sdkee1.3.1\lib\cloudscape\RmiJdbc.jar;C:\j2sdkee1.3.1\lib\cloudscape\
client.jar;C:\j2sdkee1.3.1\lib\jhall.jar;c:\j2sdk1.4.0\lib\tools.jar;c:\j2sdk1.4
.0\jre\lib\rt.jar;C:\j2sdkee1.3.1\lib\j2ee.jar;.;J2EE_HOME\lib\classes;J2EE_HOME
\config;C:\j2sdkee1.3.1\lib\locale
Syntax error
C:\j2sdkee1.3.1\bin>
--------------------------------------------------------------------------------------------
Apart from all these, nothing else is generated.
Attempting to execute ant target like the J2EE tutorial says one should gives:
C:\J2EEtutorial\examples\src>ant web
Syntax error
-----
-server to select the "server" VM
-hotspot is a synonym for the "client" VM [deprecated]
The default VM is client.
-cp -classpath <directories and zip/jar files separated by ;>
set search path for application classes and resources
-----You know the rest-----------------
typing set at the command prompt after all these gives the following output:
COMSPEC=C:\WINDOWS\COMMAND.COM
PATH=C:\WINDOWS;C:\WINDOWS\COMMAND;C:\BORLAN~1\BIN;C:\j2sdk1.4.0\bin;c:\j2sdkee1
.3.1\bin;c:\jakarta-ant-1.4.1\bin
PROMPT=$p$g
TEMP=C:\WINDOWS\TEMP
TMP=C:\WINDOWS\TEMP
JAVA_HOME=c:\j2sdk1.4.0
J2EE_HOME=C:\j2sdkee1.3.1
CLASSPATH=.;C:\j2sdk1.4.0\jre\lib\rt.jar;ANT_HOME=C:\jakarta-ant-1.4.1;C:\j2sdk1
.4.0\lib\tools.jar
ANT_HOME=C:\jakarta-ant-1.4.1\
winbootdir=C:\WINDOWS
windir=C:\WINDOWS
BLASTER=A220 I5 D1 T4 P330
_CLASSPATHCOMPONENT=c:\j2sdk1.4.0\lib\tools.jar
CMDLINE="c:\j2sdk1.4.0\bin\java" -classpath "c:\j2sdk1.4.0\lib\tools.jar;" -Dant
.home="C:\jakarta-ant-1.4.1\" org.apache.tools.ant.Main web
Otherwise, it looks like this:
COMSPEC=C:\WINDOWS\COMMAND.COM
PATH=C:\WINDOWS;C:\WINDOWS\COMMAND;C:\BORLAN~1\BIN;C:\j2sdk1.4.0\bin;c:\j2sdkee1
.3.1\bin;c:\jakarta-ant-1.4.1\bin
PROMPT=$p$g
TEMP=C:\WINDOWS\TEMP
TMP=C:\WINDOWS\TEMP
JAVA_HOME=c:\j2sdk1.4.0
J2EE_HOME=C:\j2sdkee1.3.1
CLASSPATH=.;C:\j2sdk1.4.0\jre\lib\rt.jar;ANT_HOME=C:\jakarta-ant-1.4.1;C:\j2sdk1
.4.0\lib\tools.jar
ANT_HOME=C:\jakarta-ant-1.4.1\
winbootdir=C:\WINDOWS
windir=C:\WINDOWS
BLASTER=A220 I5 D1 T4 P330
CMDLINE=doskey /insert
My PC run on windows ME too.
I hope my situation is not hopeless
Thanks.
 
Robert Troshynski
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Okay, judging by the following fragment in your post:
C:\j2sdkee1.3.1\bin>
C:\j2sdkee1.3.1\bin>cd J2EE_HOME\bin
Invalid directory
it appears that the environment variables J2EE_HOME and possibly JAVA_HOME have not been properly referenced in the batch files. Further evidence for this is indicated by the
= = = =
fragment further down. To make sure that the environment variables are properly referenced in the batch files, J2EE_HOME and JAVA_HOME must have a preceeding and trailing percent sign in the batch file itself. For example, to change to a given directory in the batch file, the line must read as follows:
cd %J2EE_HOME%\bin
The preceeding and trailing percent signs allow the system to interpret the environment variable.
Also, take a look at your CLASSPATH variable. I found the following fragment
CLASSPATH=.;C:\j2sdk1.4.0\jre\lib\rt.jar;ANT_HOME=C:\jakarta-ant-1.4.1;C:\j2sdk1
.4.0\lib\tools.jar
has a serious problem in that this part
ANT_HOME=C:\jakarta-ant-1.4.1
is trying to make an assignment in the middle of the CLASSPATH environment variable. Please correct that so your CLASSPATH variable looks like the following:
CLASSPATH=.;C:\j2sdk1.4.0\jre\lib\rt.jar;C:\jakarta-ant-1.4.1;C:\j2sdk1
.4.0\lib\tools.jar
I hope this helps. Once we get your system set up and running with the J2EE RI, I will tell you how to get 'cloudview' up and running (this is the gui interface to the cloudscape database).
Robert Troshynski
P.S. - In going over my original post, I have noted that in my original description of the testj2ee.bat file, the following line
call %J2EE_HOME%\bin\setenv.bat
should of course be written as
call %J2EE_HOME%\bin\testsetenv.bat
in the testj2ee.bat file.
Hope this helps!
[ January 07, 2003: Message edited by: Robert Troshynski ]
 
Femi Alla
Ranch Hand
Posts: 86
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks so much.
[1]
testj2ee brought up all the nessesary goble, among which the last couple of lines were:
J2EE server listen port: 1050
Redirecting the output and error streams to the following file
C:\j2sdkee1.3.1\logs\alla\j2ee\j2ee\system.out
C:\j2sdkee1.3.1\logs\alla\j2ee\j2ee\system.err
J2EE server startup complete.
[2] and testdeploytool brought up the Application deployment tool GUI
[3] testsetenv poured out a lot of stuff unto the DOS screen. Nothing else.
I learnt the server should be listening on port: 8000
so I opened a web browser and typed http://alla:8000/ in the address bar.
which opened the page http://alla:8000/index.html
which read:
J2EE 1.3
Default Home Page
Congratulations!
Viewing this page means that your Web Server has been installed correctly and is
serving files properly.

So, what next now? What is couldscape and how do I get it working?
Remember, I am using SUN's J2EE tutorial for now. I plan to buy a book,
Java Server programming from Wrox press.
 
Femi Alla
Ranch Hand
Posts: 86
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Dear Robert Troshynski,
I eagerly await a response from you to my last post, if nobody else can help, I know you can.
Thanks.
 
Robert Troshynski
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Congratulations! You have loaded the J2EE RI server and gotten the deploy tool working!
The best place to start working with J2EE is by working through the following URL:
http://developer.java.sun.com/developer/onlineTraining/J2EE/Intro2/j2ee.html
This tutorial allows you to write simple servlets, session beans, entity beans, message beans, etc. It also gives specific directions for using the deploy tool.
As for cloudview, it is a gui that allows you to graphically view the tables, triggers, etc in the cloudview database that comes with J2EE 1.3.1.
According to what I have read, you cannot have the J2EE RI running at the same time that you are using the Cloudview GUI. Sooo, stop the J2EE RI with the following:
testj2ee -stop
Start the cloudscape database in yet another DOS window.
To run the cloudview GUI tool, I use the following batch file:
--------------begin testcloudview.bat-------------
rem file created by me based on some notes that I have
java -Dcloudscape.system.home=%J2EE_HOME%\cloudscape -classpath %J2EE_HOME%\lib\cloudscape\cloudclient.jar;%J2EE_HOME%\lib\cloudscape\cloudview.jar;%J2EE_HOME%\lib\system\cloudscape.jar;%J2EE_HOME%\lib\cloudscape\RmiJdbc.jar;%CLASSPATH% -ms16m -mx32m COM.cloudscape.tools.cview
---------------end testcloudview.bat-------------
To make sure that the cloudview tool knows how to find the cloudscape database instance, click on the 'Connection' tab. In the 'URL' group box, change the prefix to 'jdbc:cloudscape:rmi://localhost:1099/'.
Finally, I believe that I had to create a Cloudscape database before the GUI tool would show me the tables, view, stored statements, etc.
I hope this is of some help. I am currently working on getting the 'j2eeadmin.bat' file working but it is slow going.
Good luck!
Robert Troshynski
[ January 13, 2003: Message edited by: Robert Troshynski ]
 
Ranch Hand
Posts: 98
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Femi,
You may want to keep an eye out for the resonses to my posting re: a training plan for J2EE because I wasn't happy with Sun's training for J2SE and I'm not overly impressed with Sun's approach with the J2EE, either. It seems like there's not enough explaining what I am doing / why I am doing this / and what other options do I have, etc. My posting is: Need help with Study order for learning J2EE
I'm sure you know all the usual sources to look for java information, but if I stumble on something that is good and obscure, I'll make another posting.
Happy learning!
Janet
P.S.-I've been very successful at obtaining several books from amazon's used book resellers for MANY $ off, in case money is an issue.
 
Femi Alla
Ranch Hand
Posts: 86
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks a lot Robert and Janet,
Janet, that post of yours which you linked me to was very useful. Thanks.
Robert, I created the batch file and placed it in the bin directory where all
the others were. When I ran it, it brought up the GUI, but I encounterd one
little problem: When I click on help (either on the menu bar or the button)
I get an error message, which says "javaHelp could not be initialized."
On closer investigation, i found out that there's an error on the last line of the
DOS screen that's displayed in the background when the batch file is running.It reads,
Error loading javaHelp: javax/help/HelpSet

Did you encounter the same problem?
I later went on to place the batch file in the cloudscape folder and got the same result.
The only difference was that this time, 2 files were created in the couldscape folder upon
running cloudview:sysVisual.log and sysVisual.properties. So, I figured the batch file should reside in the couldscape folder and corrected this.
Here's the output I talked about earlier:
C:\j2sdkee1.3.1\cloudscape>
C:\j2sdkee1.3.1\cloudscape>java -Dcloudscape.system.home=C:\j2sdkee1.3.1\cloudsc
ape -classpath C:\j2sdkee1.3.1\lib\cloudscape\cloudclient.jar;C:\j2sdkee1.3.1\li
b\cloudscape\cloudview.jar;C:\j2sdkee1.3.1\lib\system\cloudscape.jar;C:\j2sdkee1
.3.1\lib\cloudscape\RmiJdbc.jar;.;C:\j2sdk1.4.0\jre\lib\rt.jar;C:\jakarta-ant-1.
4.1;C:\j2sdk1.4.0\lib\tools.jar -ms16m -mx32m COM.cloudscape.tools.cview
Error loading JavaHelp: javax/help/HelpSet

Thanks.
 
You know it is dark times when the trees riot. I think this tiny ad is their leader:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic