File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Beginning Java and the fly likes runs perfectly only from my java\bin dir else errors... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "runs perfectly only from my java\bin dir else errors..." Watch "runs perfectly only from my java\bin dir else errors..." New topic
Author

runs perfectly only from my java\bin dir else errors...

Mike Frya
Greenhorn

Joined: Jun 26, 2003
Posts: 4
So i have an applet and it runs with no problems from my java\bin\ directory. I put all the files (.java,.class,.html, .gif,.au) onto a floppy disk and tried to run the applet from the floppy disk. It only worked half way. The user interface was there (2 buttons, 2 textfields) and when a button was pressed music played as expected. But the textfield that showed time elapsed in seconds was not getting updated it just stays at zero. And the images do not appear randomly on the screen. This is a game where the user has to click the randomly appearing images 5 times before ten seconds is up. The java console says

any help would be appreciated!!Thanks
Rob Ross
Bartender

Joined: Jan 07, 2002
Posts: 2205
The JVM is telling you it can't find a class file it needs, "Timer."
What is your directory structure for your Java files and resources? Do you have everything in one directory? If so, list all the .java files you have. Also, is the "Timer" class something you wrote, or something you're using from the Java API? It might be a classpath issue but it's hard to tell from what you have describeded.


Rob
SCJP 1.4
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: runs perfectly only from my java\bin dir else errors...
 
Similar Threads
Exception in thread "AWT-EventQueue-1" java.lang.NullPointerException
problem with insert and select
Problem with JDK 1.4
DefaultDesktopManager.activateFrame throws NPE on Mac OS X (Leopard)
null pointer exception while closing a node of jtree