TINIConvertor Problem while parsing class ...Method does not exist in this class!!
Talos <[email protected]>
| Newsgroups | gmane.comp.hardware.microcontrollers.tini |
|---|---|
| Message-ID | <[email protected]> |
Dear TINI team,
I tryed to convert a kind of "Hello world" program shipped with JMatos package that is told to be able to make a small TINI board join a JINI net. I'm working with Windows 2000 and TINI 1.11
The class file is exactly named "TestService.class" and it doesn't do much except to register itself to the other piece of this java based software system.
Anyway the question is:
When I try to convert with TINIConvertor with different (also very long) mixes of JAR file passed as classpath but it fails because either it says some class are missing or that a method doesn't exist.
First I tryed this
set policy=C:\Nic\JMatosTINI\policy.all
set lib=.;C:\jini2_0\lib\jini-core.jar
set lib2=;C:\jini2_0\lib\jini-ext.jar
java -classpath c:\tini1.11\bin\tini.jar;C:\Nic\JMatosTINI\JMatos-dl.jar;C:\Nic\JMatosTINI\JMatosRegistration-dl.jar;C:\Nic\JMatosTINI\JMatosAdmin-dl.jar;C:\Nic\mini\Mini.jar; -Djava.security.policy=%policy% -Djava.rmi.server.codebase="http://192.168.0.90/" TINIConvertor -i -f TestService.class -o TestService.tini -d C:\tini1.11\bin\tini.db -path %lib%;%lib2%;
but I get
[...]
Copyright (C) 1996 - 2002 Dallas Semiconductor Corporation.
Loading class TestService.class from file C:\Nic\JMatosTINI\TestService.class
Loading net/jini/core/discovery/LookupLocator.class from ZIP archive C:\jini2_0\
lib\jini-core.jar
Could not find the class java/rmi/MarshalledObject
Could not finish loading: java.lang.ClassNotFoundException: Could not find the c
lass java/rmi/MarshalledObject
Exception caught: java.lang.RuntimeException: Could not finish loading: java.lan
g.ClassNotFoundException: Could not find the class java/rmi/MarshalledObject
java.lang.RuntimeException: Could not finish loading: java.lang.ClassNotFoundExc
eption: Could not find the class java/rmi/MarshalledObject
at com.dalsemi.system.classloader.TINIClassLoader.beginLoading(TINIClass
Loader.java:142)
[...]
What make the difference seems to be the rt.jar file that I added to the classpath written previously and I get many lines which tell me it is loading... then....
[...]
Class java/util/Map$Entry, size 80, CNUM 800a, TH Contrib: 63
Problem while parsing class sun/rmi/runtime/NewThreadAction
java.lang.RuntimeException: Serious Error! Method does not exist in this class!!
!: getSystemClassLoader:()Ljava/lang/ClassLoader; in java/lang/ClassLoader from
sun/rmi/runtime/NewThreadAction
at com.dalsemi.system.classloader.disassembly.ConstantPoolEntry.tinify(C
onstantPoolEntry.java:225)
[...]
Is there something I'm can't see? I know probably you know nothing about JMatos therefore my question is more "Where I have to look when I get that a Method doesnt exist?" Have I put too many JAR files? I don't think so because without them I get "Class not found" Havn't I put classes enough? Is a version mismatching problem?
I thank you in advance for your suggestions
Greetings
Nicola Gazzeri
_______________________________________________
TINI mailing list
TINI-6tN4nzCoH/[email protected]
To UNSUBSCRIBE, edit your profile, or see list archives:
http://lists.dalsemi.com/mailman/listinfo/tini