Hi, a simple way of doing it with JBuilder 6. 1) download petstore, let's say you put it in c:\petstore 2) open JBuilder, create a new project somewhere (it doesn't matter, but do not choose c:\petstore\src) ! 3) click on Project/Project properties 4) change paths/source/default to point to c:\petstore 5) click on project/ add files packages 6) choose packages! 7) choose src 8) you're done and a very happy person Enrico
Hi Robin, I thought that just wanted to see the code. Why do you want to compile it? You wanna make changes? In that case you need to specify all needed jars in your project so when compiling Jbuilder will find all jars and files needed. /Enrico
Just another thing, sometimes I find JBuilder quite difficult to configure (maybe I'm not patient) , so I normally use it for editing files and syntax controls and then use ant for compilation. Just a thought. /Enrico
I want to compile it in Jbuilder and depoly it to Weblogic. I do not know if it is possible. There are a lot of compile errors due to the package name and missing class. [ May 10, 2002: Message edited by: Robin Zhang ]
Originally posted by Enrico Mannarino: Hi, a simple way of doing it with JBuilder 6. 1) download petstore, let's say you put it in c:\petstore 2) open JBuilder, create a new project somewhere (it doesn't matter, but do not choose c:\petstore\src) ! 3) click on Project/Project properties 4) change paths/source/default to point to c:\petstore 5) click on project/ add files packages 6) choose packages! 7) choose src 8) you're done and a very happy person Enrico
Before doing all this, copy all the source to a single dir in the case of petstore 1.1.2 and above the src is split across the moduels like costomer, petstore, inventory etc ....copy the source from all of them into a single location and then do it. That is wat I did and it works fine, but I have not run it from Tomcat within JBuilder, I guess that is going to be difficlt, also I am facing some problem compilling the JSP pages from JBuilder since, petstore JSP pages contains a lot of includes from one jsp to another ... dont think JBuilder can handle that . vivek v
Vivek , I am trying to do it because I also want to study about Jbuilder and Weblogic. Can I use petsore1.3? What version are you using? version 1.2? Please give me more detail information. thanks.
My approach: Step1: Project-->Project Properity-->path-->source --Add-->Select src directory(the one before "com" directory )--> --Add-->Select src directory(the one before "com" directory )--> .......................................... Step2 : project-->Add Files/Packages-->packages--> com.sun.j2ee Step3: make com.sun.j2ee.blueprint, it will compile OK [ July 17, 2002: Message edited by: Robin Zhang ]
If u click the error, Jbuilder will tell u which line is causing the problem, the look into the import statement, try to find out which import classes could not be found, then config the library for the class, if the library do not existed, search and down load that jar or zip from sun, Hope this helps Cheers /bill
Robin: I will try petstore 1.3 compile in Jbuilder 6 and running weblogic 6.1, using debug to look into the workflow very soon (after I done my job after the deadline in this week), don�t have to compile JSP, since Jbuilder is very hard to compile JSP <<include>> tag, But u could run the jsp by weblogic web server, yeah, weblogic web server (it is nice ), or u could config other web server like Jrun� Put break point in your compiled class and gooooooooooooo, There are several other things should be causing when u debug in Jbuilder, 1.Jbuilder6 JVM is not stable in debug mode, and the funny things is when JB6 crash, the instance is still alive In the windows thread!, 2.start weblogic server from JB6, watch the deploying process, otherwise, it may messed up, cheers /bill
Thanks bill. I had PetStore1.1.2 compiled successfully in Jbuilder6. But still do not know how to make it run Tomcat or Weblogic. Need more study. Another thing I did not compile JSP yet, I didn't know the whole picture of PetSore. [ May 13, 2002: Message edited by: Robin Zhang ] [ July 17, 2002: Message edited by: Robin Zhang ]
Has anyone gotten Petstore to work (build/deploy/run/debug) under JBuilder 6 or 7? I can buld it but I am unsure how to get it deployed for debugging or if it is even possible. [ July 17, 2002: Message edited by: Mark Kieling ]
Hi, I was able to deploy PetStore 1.3 on Sun's reference implementation.I had same problems with deploying/debugging 1_0_1 and 1.2. Hope it helps, alex
Originally posted by Alex Tang: Hi, I was able to deploy PetStore 1.3 on Sun's reference implementation.I had same problems with deploying/debugging 1_0_1 and 1.2. Hope it helps, alex
Alex, that is great news! Can you post or send a copy of your project file? Also, what did you do to get the RI to run from within JB7? Were you able to debug from JB7?
Sorry to mislead everybody. I just deployed PetStore 1.3 on Sun's RI (J2EE 1.3), nothing to do with JBuilder.I wanted to say that if it is not easy to deploy it in other application servers, it could be seen how this application works on Sun's own reference implementation. However i made a project in Oracle JDeveloper 9i candidate release with this Petstore and I could see the code more easily. Best regards, Alex
Post by:autobot
Look! It's Leonardo da Vinci! And he brought a tiny ad!
a bit of art, as a gift, that will fit in a stocking