There's a package called "randomX" which, while I don't know if you care to know, has a program that accesses a site called hotbits to produce true random numbers based on radioactive decay. You can look it up if you're any interested.
Anyway, so I'll post the relevant code and errors here:
Expand|Select|Wrap|Line Numbers
- /**
- * @(#)MakeRandomAlphaNumerics.java
- *
- *
- * @author
- * @version 1.00 2008/6/5
- */
- import java.util.*;
- import randomX.*;
- public class MakeRandomAlphaNumerics {
- private static int lengthOfCode = 8;
- private randomX.randomHotBits random = new randomX.randomHotBits();
- ...
Expand|Select|Wrap|Line Numbers
- Error message appears at line 14: cannot access randomX
I'm not 100% sure on the way the structure of files is supposed to work to ensure java finds the correct classes. I tried adding the location of that randomX package folder to the class path, but that didn't do the trick.
I thought perhaps it was looking at the randomX file contained in the folder, so I removed it, but then it said it couldn't find the randomHotBits program (with a similar looking error message). I even tried removing just randomX. These seem like silly solutions and I'm just grabbing at straws at this point...
Any and all help is very much appreciated, thanks,
-blazed
Edit: I just looked at the build output (I'm using JCreator) and saw this more elaborate error message, perhaps it'll help:
Expand|Select|Wrap|Line Numbers
- --------------------Configuration: <Default>--------------------
- C:\programs\randomPrograms\MakeRandomAlphaNumerics.java:14: cannot access randomX
- bad class file: C:\programs\randomPrograms\randomX\randomX.class
- class file contains wrong class: randomX.randomX
- Please remove or make sure it appears in the correct subdirectory of the classpath.
- private randomX.randomHotBits random = new randomX.randomHotBits();
- ^
- 1 error
- Process completed.