wood burning stoves 2.0*
The moose likes Beginning Java and the fly likes Followup To Cindy Glass Reply Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Followup To Cindy Glass Reply" Watch "Followup To Cindy Glass Reply" New topic
Author

Followup To Cindy Glass Reply

Gary Farms
Ranch Hand

Joined: Jun 24, 2000
Posts: 57

Here's my info regarding why I'm blowing up with a "NoClassDefFoundError" from my earlier post. I also still appear to have classpath problems, since I can only run if I put a package statement at the top of each .java file that I run.
The program that is blowing up is entitled Access.java and resides in c:\java. Prior to compiling it, I put the following package statement at the very top of Access.java:
package com.gfarms.geometry;
I then compile c:\Access.java then copy Access.class to c:\java\com\gfarms\geometry
Something still is wrong with my class path since if I don't put a package in ALL my .java files, they won't run!!
Anyway, here's my path and classpath statements in c:\autoexec.bat
path=c:\windows;c:\windows\command;c:\jdk1.3.0_02\bin;c:\java\;
set classpath=c:\jdk1.3.0_02\lib;c:\java\;
Any help would be deeply appreciated!
Cindy Glass
"The Hood"
Sheriff

Joined: Sep 29, 2000
Posts: 8521
Put the driver in the classpath with no package statement.


"JavaRanch, where the deer and the Certified play" - David O'Meara
 
jQuery in Action, 2nd edition
 
subject: Followup To Cindy Glass Reply
 
Similar Threads
Java JDK Installation Problem - Need Help!
2 Questions - I'm really at a loss!
installing Tomcat
2 Questions - I'm Really At A Loss!
A Baffling Question