Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Java > Other Java > BOOK: Beginning Cryptography with Java
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
BOOK: Beginning Cryptography with Java
This is the forum to discuss the Wrox book Beginning Cryptography with Java by David Hook; ISBN: 9780764596339
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning Cryptography with Java 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 October 25th, 2005, 11:26 AM
Registered User
 
Join Date: Oct 2005
Location: , , .
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default bat file doesn't work

I have implemented a program and compiled all java files and tested the program and it works properly. After that I created a bat file and place it in the same map where I have the classes. But I receive this error message when I treid to start the program using the bat file:

C:\Documents and Settings\Ägaren\Mina dokument\maroun\mail_encryption\mailencryp
tion>java gui
Exception in thread "main" java.lang.NoClassDefFoundError: org/bouncycastle/util
/encoders/Base64
       at Kryptering.<init>(Kryptering.java:42)
        at gui.<init>(gui.java:26)
        at gui.main(gui.java:407)

I do not understand why it can not find org/bouncycastle/util
/encoders/Base64 when I try to start the program through bat file, but it works when run the program using JCreator.
Maroun


Reply With Quote
  #2 (permalink)  
Old October 25th, 2005, 04:59 PM
dgh dgh is offline
Wrox Author
Points: 864, Level: 11
Points: 864, Level: 11 Points: 864, Level: 11 Points: 864, Level: 11
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2005
Location: , , .
Posts: 206
Thanks: 0
Thanked 20 Times in 20 Posts
Default

The most common cause of this on Windows is that there are normally two Java installs - a JDK one that can be used for software development and a JRE install that is used by default for Java program execution. It sounds like you have installed the provider in your JDK but not your JRE and the bat file is using the JRE.

Regards,

David

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
confused- what to use .bat or .jar file - plz he ruchisingh Java Basics 1 May 18th, 2006 12:08 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
Exec a .bat file in PHP on XP freddo Beginning PHP 2 October 12th, 2004 03:27 PM



All times are GMT -4. The time now is 05:47 PM.


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