Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

j2sdkee1.2.1 and The Sun' Tutorial Exercise 1

 
JiaPei Jen
Ranch Hand
Posts: 1309
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3695
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1309
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 216
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think he is refering to testClient.bat file
 
JiaPei Jen
Ranch Hand
Posts: 1309
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1309
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Versions are mismatched I think; use J2SDKEE1.3 with J2SDK1.3
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic