Wrox Programmer Forums
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 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 October 25th, 2005, 11:26 AM
Registered User
Join Date: Oct 2005
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
       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.

Old October 25th, 2005, 04:59 PM
dgh dgh is offline
Wrox Author
Join Date: Aug 2005
Posts: 206
Thanks: 0
Thanked 20 Times in 20 Posts

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.



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

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