aspose file tools*
The moose likes EJB and other Java EE Technologies and the fly likes j2sdkee1.2.1 and The Sun' Tutorial Exercise 1 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "j2sdkee1.2.1 and The Sun Watch "j2sdkee1.2.1 and The Sun New topic
Author

j2sdkee1.2.1 and The Sun' Tutorial Exercise 1

JiaPei Jen
Ranch Hand

Joined: Nov 19, 2000
Posts: 1309
I am trying to run my first EJB. I have the Window 2000 and Java SDK 1.3 in my machine. I followed the step-by-step instruction to run the first exercise: Installing and Configuring the J2EE Reference Implementation from the Sun EJB Short Course at the site: http://developer.java.sun.com/developer/onlineTraining/EJBIntro
/EJBIntro.html
Every step went fine, except when I ran the testClient.bat file by double clicking on that icon, I saw only a flash of the command prompt. Nothing showed up on the screen. Or I should say nothing was produced when I ran the testClient.bat file.
I did the following:
I downloaded and installed j2sdkee1.2.1 on my C drive root directory.
1. I set the J2EE_HOME environment: set J2EE_HOME=C:\j2sdkee1.2.1
2. I put the J2EE_HOME/bin into my PATH environment variable:
set PATH=%PATH%;C:\j2sdkee1.2.1\bin
3. I edited the compileEJB.bat and successfully compiled converterEJB. java, ConverterHome.java, and Converter.java
4. I started the J2EE server, and ran the Application Deployment Tool, and I created a new J2EE application, ConverterApp.ear
5. I packaged the Enterprise Bean and added Converter.class(remote interface), ConverterEJB.class(Enterprise Bean class), and ConverterHome.class(home interface) in the ConverterJAR. And inserted the JAR file into the application's ConverterApp.ear file
6. I deployed the J2EE application, and
7. I compiled the Client's code successfully
Could anybody tell me why nothing is produced when I ran the testClient.bat script?
Mike Curwen
Ranch Hand

Joined: Feb 20, 2001
Posts: 3695

Open your batch file and at the very bottom, place the word 'pause' (without quotes). Then save and run the batch file, and tell us what you see.
JiaPei Jen
Ranch Hand

Joined: Nov 19, 2000
Posts: 1309
Mike, thank you for willing to give a hand. Where is the batch file and what is the name of that batch file?
Vladan Radovanovic
Ranch Hand

Joined: Mar 20, 2000
Posts: 216
I think he is refering to testClient.bat file
JiaPei Jen
Ranch Hand

Joined: Nov 19, 2000
Posts: 1309
Thanks, Vladan. Hi, Mike, I go this message:
Registry key 'Software\JavaSoft\Java Runtime Environment\Current Version' has value '1.1', but '1.3' is required.
Error: could not find java.dll
Error: could not find Java 2 Runtime Environment
What should I do?
JiaPei Jen
Ranch Hand

Joined: Nov 19, 2000
Posts: 1309
Mike, I think that I have solved the problem. In my Registry, the JDK value was set to 1.1. I changed it to 1.3. After I double clicked on the testClient.bat file icon, I saw two numbers in the Command Prompt. Is it the output supposed to be?
Bhoot Sahai
Greenhorn

Joined: May 05, 2001
Posts: 6
Versions are mismatched I think; use J2SDKEE1.3 with J2SDK1.3
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: j2sdkee1.2.1 and The Sun' Tutorial Exercise 1