Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Java > Java and JDK > Java Basics
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old May 9th, 2006, 02:44 AM
Registered User
 
Join Date: May 2006
Location: Bokaro steel city, Jharkhand, India.
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






Reply With Quote
  #2 (permalink)  
Old May 18th, 2006, 12:08 PM
Authorized User
 
Join Date: Apr 2005
Location: , , India.
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
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 04:06 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.