This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line!
See this thread for details.
The moose likes Java in General and the fly likes Java Petstore 2.0 Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » Java in General
Reply Bookmark "Java Petstore 2.0" Watch "Java Petstore 2.0" New topic
Author

Java Petstore 2.0

Derek Zeng
Greenhorn

Joined: Aug 25, 2006
Posts: 16
I download the Java Petstore 2.0 from the https://blueprints.dev.java.net/servlets/ProjectDocumentList?folderID=5315&expandFolder=5315&folderID=0
It is a jar file. Inside the jar file is a big .class file.
It should have the source codes.
How can i use it?
Thanks.


SCJP 5.0<br />Preparing SCWCD...
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24081
    
  15

Run the class file.


[Jess in Action][AskingGoodQuestions]
Derek Zeng
Greenhorn

Joined: Aug 25, 2006
Posts: 16
Please tell me how can i run the class file.
It seems no main thread there.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 35439
    
    9
What happened when you typed "java -jar JarFileNameHere.jar"?


Android appsImageJ pluginsJava web charts
Derek Zeng
Greenhorn

Joined: Aug 25, 2006
Posts: 16
Thanks Ulf.
It installs all the sorce codes.
[ February 18, 2007: Message edited by: Derek Zeng ]
Deepak Bala
Bartender

Joined: Feb 24, 2006
Posts: 6603
    
    1

This is from the link you gave us

AJAX-enabled Web 2.0 Java Pet Store Reference Application for Java EE 5, 2.0 Early Access distribution. To Install: Double-click the jar file javapetstore-2.0-ea4.5-installer.jar, or run 'java -jar javapetstore-2.0-ea4.5-installer.jar' from command-line


SCJP 6 articles - SCJP 5/6 mock exams - SCJP Mocks - SCJP 5 Mock exam (Word document ) - SCJP 5 Mock exam in Java.Inquisition format
Derek Zeng
Greenhorn

Joined: Aug 25, 2006
Posts: 16
i'm sorry John.
I just double-click the .jar file.
Derek Zeng
Greenhorn

Joined: Aug 25, 2006
Posts: 16
When I build the project, it comes out the following error message:

BUILD FAILED
D:\temp\javapetstore-2.0-ea4.5\build.xml:70: The following error occurred while executing this line:
D:\temp\javapetstore-2.0-ea4.5\setup\setup.xml:58: org.apache.derby.client.am.DisconnectException: java.security.PrivilegedActionException: Error opening socket to server localhost on port 1527 with message : null

Please help me what is the problem.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Java Petstore 2.0
 
Similar Threads
Another preparation advice
Tips on SCDJWS - 84%
SCEA-2 if using framework like seam then still have to use J2EE design pattrems ?
Advice and help for SCEA part -2
Need help very urgent.