Re: TINIConvertor Problem while parsing class ...Method does not exist in this class!!

"Kris Ardis" <Kristopher.Ardis-6tN4nzCoH/[email protected]>
Newsgroups gmane.comp.hardware.microcontrollers.tini
Message-ID <003e01c3dc36$23896f20$764000b4@kardis>
> When I try to convert with TINIConvertor with different
> (also very long) mixes of JAR file passed as classpath

When you run TINIConvertor, you should have only 'tini.jar' in your
classpath.  Use the TINIConvertor/BuildDependency command line to specify
which classes you want to add to your application.

Also avoid using the '-i' switch, which tells TINIConvertor to look in the
classpath.  This switch is useful when you have small test classes to run
that have inner classes that you don't want to type into the command line,
but shouldn't be used with a larger application because you can't be too
sure what will get built into your application.

> but it fails because either it says some class are
> missing or that a method doesn't exist.

The classes that TINIConvertor is finding in your classpath are written for
the PC, and are probably referencing hundreds of other classes that don't
exist on TINI.

Are there any installation/build scripts available for the JMATOS stuff?

Kris

----- Original Message -----
From: "Talos" <[email protected]>
To: <tini-6tN4nzCoH/[email protected]>
Sent: Thursday, January 15, 2004 1:33 PM
Subject: [TINI]TINIConvertor Problem while parsing class ...Method does not
exist in this class!!


> 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\J
MatosRegistration-dl.jar;C:\Nic\JMatosTINI\JMatosAdmin-dl.jar;C:\Nic\mini\Mi
ni.jar; -Djava.security.policy=%policy% -Djava.rmi.server.codebase="http://1
92.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


_______________________________________________
TINI mailing list
TINI-6tN4nzCoH/[email protected]
To UNSUBSCRIBE, edit your profile, or see list archives:
http://lists.dalsemi.com/mailman/listinfo/tini
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.