This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Java in General and the fly likes CD Version Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "CD Version" Watch "CD Version" New topic
Author

CD Version

Shalu Ban
Ranch Hand

Joined: Feb 18, 2003
Posts: 72
We are planning to do a CD which contains educational software. It will have Quizzes for each grade of school. And the client wants it to be done in Java. It should have a database which contains questions and answers for each quiz of each grade. But I have a doubt regarding the making of CD version because as far as I know in order to run a servlet or JSP u need a server like Tomcat. How will u run it from a CD and make ur JSP or servlet interact with the database? Or should we make some applets or jar files and put them in the CDs? Please guide..


Happiness is doing what is right.
Cindy Glass
"The Hood"
Sheriff

Joined: Sep 29, 2000
Posts: 8521
If they are thinking of a CD, then I would guess that they are thinking about having a client piece on the CD, and using RMI to get at the remote server stuff.
Or perhaps having the whole application on the CD, and just using JDBC to get at the data on a remote server. In this case you just would not have a servlet or JSP component at all.
What makes you think that there should be JSP/Servlets? Or are you just asking what is the best solution?


"JavaRanch, where the deer and the Certified play" - David O'Meara
Shalu Ban
Ranch Hand

Joined: Feb 18, 2003
Posts: 72
I was just asking for te best solution. I understand now that we cannot use JSP/Servlets here. So we have to go for creating a Java application (in the CD)which interacts with the access database inside the CD and runs the quiz.
We want something which executes immmediately once the CD is run (for this I understand that we need autorun.inf). What I am wondering is how do we go about doing it? Create a java applicaation using Swing, JDBC and accesss database? Have heard that we cannot make the application into a jar because the ODBC driver will not get to it in the CD. Then how will the class files run automatically. Please guide...
Cindy Glass
"The Hood"
Sheriff

Joined: Sep 29, 2000
Posts: 8521
The business about not using a Jar because of the ODBC driver - never heard of it. Perhaps you should ask that question in the JDBC forum.
As for getting that application to run automatically if it is not in a jar, I would guess that you would have your autorun invoke either a .bat file or a .sh file that would invoke the application with the correct classpath and property files etc.
Sri Rangan
Ranch Hand

Joined: Dec 08, 2001
Posts: 160
Are you looking for a Stand alone Swing applicatin with a stand alone database.
You could probably use Hypersonic as your stand alone database HSQL(It is a 100% java db and does not occupy too much space) and write your client in Swing.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: CD Version
 
Similar Threads
Difficulty in following the MVC Architecture
Difficulty in following MVC Architecture
Javabean
Difficulty in working with MVC Architecture
how to a war file in TOMCAT