Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » Class can be imported but not used in ClassforName()
Class can be imported but not used in ClassforName() [message #80717] Mon, 28 July 2003 03:17 Go to next message
Eclipse UserFriend
I bound some driver classe into my project. I can see those classe
correctly in the Java Browsing Perspective. I can import them into my
classes and use them.

But as soon as I say Class.forName( "org...." ) it throws an
ClassNotFoundException.

I tried all options with classpath and so. Nothing works.

Now I am lost. Can anybody help me?

Thanks

Klaus
Re: Class can be imported but not used in ClassforName() [message #80754 is a reply to message #80717] Mon, 28 July 2003 05:45 Go to previous message
Eclipse UserFriend
I found the solution. I had to add the classpath to the run function. And
that was it.

Klaus


Klaus wrote:

> I bound some driver classe into my project. I can see those classe
> correctly in the Java Browsing Perspective. I can import them into my
> classes and use them.

> But as soon as I say Class.forName( "org...." ) it throws an
> ClassNotFoundException.

> I tried all options with classpath and so. Nothing works.

> Now I am lost. Can anybody help me?

> Thanks

> Klaus
Previous Topic:how can i import an exist file into project in workspace
Next Topic:Omondo UML
Goto Forum:
  


Current Time: Tue Jul 22 00:42:27 EDT 2025

Powered by FUDForum. Page generated in 0.04271 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top