• Post Reply Bookmark Topic Watch Topic
  • New Topic

More classpath questions  RSS feed

 
RobT
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks that seems to have done the trick.
Mucho Thanks!!
Rob Thompson
work email: robert.thompson2@firstunion.com
home email: rthom40065@aol.com

[This message has been edited by RobT (edited November 30, 2000).]
 
Michael Hildner
Ranch Hand
Posts: 297
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When you import packages, the CLASSPATH needs to include the directory directly above the package name.
Try with CLASSPATH including d:\devsoft\jdk1.3\projects
Hope this helps.
Michael
 
eric moon
Ranch Hand
Posts: 133
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm using JDK1.3 on win2k, and suddenly my classpath is not working. For the last 8 months, under win2k my classpath has been:

C:\java\jdk1.3\bin;C:\java;
(and before that, JDK1.2.2)and it worked just fine. My projects compiled and ran from the command line.
My classes are in packages:
C:java\org\temiqui\mypackages and they all begin with:
Package org.temiqui.mypackage;
So, in setting up JDBC, I added to my classpath, although I didn't expect I'd have to, since it's in the org folder:
C:\java\org\gjt\mm\mysql;
Which worked for the database project I was working on in forte. But now none of my other projects will run. They compile fine, but I get a bunch of classLoader exceptions when I try to run them. Forte and Together both agree my package definitions are "illegal" ???
I tried adding the dot:
\java\jdk1.3\bin;C:\java;C:\java\org\gjt\mm\mysql;.
That didn't help either. Is there any way this can get corrupted in the registry or someplace else under win2000? It just plain seems weird. Here's the output, but I imagine you know what I'm talking about....
Thanks,
eric
********************************************************** C:\Java\org\temiqui\calendartable>java CalendarTableApp
Exception in thread "main" java.lang.NoClassDefFoundError: CalendarTableApp (wro
ng name: org/temiqui/calendartable/CalendarTableApp)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$100(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
 
Carl Trusiak
Sheriff
Posts: 3341
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
RobT,
please read and follow the Naming Policy. It's to your benefit. We periodically do book give aways to people who post to a forum and as a matter of fact one was just conducted on the Servlet forum and another is being setup. Only those who meet the naming policy are entered in the contest for the give away so....
Looking forward to your posts
 
Rob Thompson
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry about the alias. I did re-register with a valid user name.
User RobT will no longer be used.
Thanks for all your help.
Rob Thompson
work email: robert.thompson2@firstunion.com
home email: rthom40065@aol.com
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!