Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Java > Java and JDK > Java Basics
|
Java Basics General beginning Java language questions that don't fit in one of the more specific forums. Please specify what version.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Java Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 9th, 2006, 02:44 AM
Registered User
 
Join Date: May 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default confused- what to use .bat or .jar file - plz he

hi,

 This is my first time on any forum. I got to know about this forum form my friend and she said this is good discussion forum to solve one's query.

(I) Actually I developed a application in java and used type4 driver to create connections. The driver is jtds-1.2-dist and every thing is working fine. The only thing I want to know that when I go to my client what should i keep with me ie .jar file or just .class files. Suggest me what will be better option. I also dont want to show my codes.

(II) When I created a batch file and showed the path of my mainfile and set classpath of type 4 driver it is not working the only thing happen by clicking the .bat file a command window appear then goes off, no file executes.
   what I did before this is here
  (a)I installed jre 1.5 on client system.)
  (b) my client system doesn't have any classpath variable define.
  (c)I created a run.bat file.
      run.bat file contains ---
      SET CLASSPATH=%CLASSPATH%;.;D:\jtds-1.2-dist\jtds-1.2.jar;
      java D:\ICICI_09_05_06\mainProject

(III) Third and last thing i want to ask that Is there any way to create Database with the help of javacode.If yes plz tell me how could i do this.

thanx a lot for any answer
ruchi






 
Old May 18th, 2006, 12:08 PM
Authorized User
 
Join Date: Apr 2005
Posts: 71
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi,

1. A jar file is always preferred than the open structured directories with class files.
2. There must be some error when you executed the bat file. That is the reason why window disappeared. Can you open a command prompt and then browse to that directory and invoke the bat file? This will give the complete error message. Just post it here.
3. I do not have an idea about this. But a little more description of what you want to achieve might help.

Regards,
eNJay





Similar Threads
Thread Thread Starter Forum Replies Last Post
.exe or .bat file and VB.NET MARY9 Pro VB.NET 2002/2003 1 March 8th, 2007 08:08 AM
bat file doesn't work maroun BOOK: Beginning Cryptography with Java 1 October 25th, 2005 04:59 PM
Problem with reading BAT file rhysduk VB How-To 0 January 12th, 2005 09:53 AM
Writing to a .BAT file using VB6 rhysduk VB How-To 17 January 7th, 2005 09:06 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.