[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Class.forName problem on NT



Hi,

Did you tried the examples of ozone and do they work ?

Bye
Gerd

On Tue, 21 Sep 1999, you wrote:
> Hi,
> 
> I've got strange problems under NT. Ozone doesn't find my classes.
> There's no problem under linux.
> 
>   C:\TEMP\test>echo %CLASSPATH%
>  
>  
> .;C:\TEMP\test;C:\ozone-0.2.6\ozone.jar;C:\ozone-0.2.6\gnu-regexp-1.0.8.jar
> 
>   C:\TEMP\test>java DE.softwarebuero.ozone.tools.OPP TestObjectImpl
>   TestObjectImpl:
>   java.lang.ClassNotFoundException: TestObjectImpl
>           at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
>           at java.security.AccessController.doPrivileged(Native Method)
>           at java.net.URLClassLoader.findClass(URLClassLoader.java:191)
>           at java.lang.ClassLoader.loadClass(ClassLoader.java:280)
>           at java.lang.ClassLoader.loadClass(ClassLoader.java:237)
>           at java.lang.Class.forName0(Native Method)
>           at java.lang.Class.forName(Class.java:124)
>           at DE.softwarebuero.ozone.tools.OPP.main(Compiled Code)
> 
>   C:\TEMP\test>java ClassForNameTest TestObjectImpl
>   class TestObjectImpl
> 
>   C:\TEMP\test>type ClassForNameTest.java
>   public class ClassForNameTest {
>       public static void main(String argv[]) throws Exception {
>           for (int i = 0; i < argv.length; ++i) {
>               System.out.println(Class.forName(argv[i]));
>           }
>       }
>   }
> 
> If I use the linux opp compiled TestObjectImpl:
> 
>   C:\TEMP\test>java Test
>   DE.softwarebuero.ozone.ClassNotFoundExc: TestObjectImpl
>           at
> DE.softwarebuero.ozone.core.ClassManager.classForName(ClassManager.java:72)
>           at
> DE.softwarebuero.ozone.core.ObjectSpace.newObject(ObjectSpace.java:79)
>           at
> DE.softwarebuero.ozone.core.Transaction.createObject(Transaction.java:313)
>           at
> DE.softwarebuero.ozone.core.DbRemote.DbCreateObj.perform(DbCreateObj.java:33)
>           at
> DE.softwarebuero.ozone.core.Transaction.run(Transaction.java:462)
>           at
> DE.softwarebuero.ozone.core.TransactionManager.startTransaction(TransactionManager.java:75)
>           at
> DE.softwarebuero.ozone.LocalDatabase.sendCommand(LocalDatabase.java:128)
>           at
> DE.softwarebuero.ozone.LocalDatabase.createObject(LocalDatabase.java:102)
>           at Test.foo(Test.java:32)
>           at Test.main(Test.java:18)
> 
> Any idea?
> 
>   -hannes
--
________________________________________________________________
Gerd Mueller                               gerd@softwarebuero.de
softwarebuero m&b                    http://www.softwarebuero.de