| Newsgroups |
gmane.comp.hardware.microcontrollers.tini |
| Message-ID |
<[email protected]> |
Thanks Tim,
I didn't set the CLASSPATH env. I never had much luck with it. I think
that CLASSPATH stuff was going from smartj which I think just included all
the .jar's in the directory I run it from, which was the bin directory.
Tini.jar was in the list but for some reason it didn't work. Last time I
used smartj it seemed ok.
This time I just tried c:\Appserver\jdk\bin\javaw -classpath
c:\tini\tini1.12\bin\tini.jar JavaKit and bingo it worked.
Go figure.
I'm using the JDK1.4 as that is what is listed on the Sun website, maybe I
should try and get an older version? JDK1.2
David
>
>David,
>
>Using the -classpath argument is a great idea. However, when you do
>use it, it completely ignores the system CLASSPATH env. variable, so
>in your case, tini.jar is not being found.
>
>Do yourself a favor and get rid of your system CLASSPATH altogether;
>it's generally a bad idea to rely on it. Instead, always explicitly
>state the required classpath on the command line.
>
>-tim
>
>
>> This is what I type in:
>> >smartj -classpath c:\appserver\jdk\lib\comm.jar JavaKit
>> (From my tini bin directory)
>>
>> I get this output:
>> Launching class JavaKit
>> using the Microsoft java 1.1 VM in c:\windows\system32
>> with classpath:
>> c:\Appserver\jdk\lib\comm.jar;c:\tini\tini1.12\bin;c:\tini\tin
>> i1.12\bin\tin
>> iclasses.jar;c:\tini\tini1.12\bin\tini.jar;c:\tini\tini1.12\bi
>> n\owapi_depen
>> dencies_TINI.jar;c:\tini\tini1.12\bin\modules.jar
>>
>> Class JavaKit in file JavaKit.class cannot be loaded.
>> Probably a superclass or interface cannot be found.
>>
>> This is a very frustrating error. The target 1.1 at this
>> point doesn't really affect things.
>>
>> Comments would be very helpful.
>>
>> Thanks
>> David
>>
>> >
>> >The jre\bin location is used for the "runtime" java
>> environment on your
>> own
>> >pc. the jdk\bin is where your compile tools are. You
>> should be using
>> >javac for compilation. Don't forget a couple of things - if you are
>> >using 1.4.2 to compile your code with, you MUST use -taget 1.1 as a
>> >command line parameter to javac. This will allow the
>> TINIConvertor to
>> >properly process your generated .class files to produce .tini files.
>> >
>> >As a side note to everyone - is there a FAQ or a set of
>> guidelines on
>> >how to develop for the TINI in an environment that would combine for
>> >example a couple of jar files? I am slowly managing to develop for
>> >larger environments through trial-end-error. For example, a
>> >"cook-book" set of examples for figuring out dependencies to combine
>> >automatically .class files as needed from a number of different .jar
>> >files to combine a final .tini file....
>> >
>> >Regards, Alex.
>> >
>> >
>> >
>> >
>>
>>
>> > [email protected]
>>
>>
>> > com.au To:
>> tini-6tN4nzCoH/[email protected]
>>
>> > Sent by: cc:
>>
>>
>> > [email protected] Subject:
>> [TINI]Getting tini
>> programs to run
>> > mi.com
>>
>>
>> >
>>
>>
>> >
>>
>>
>> > 01/26/2004 12:49
>>
>>
>> > AM
>>
>>
>> > Please respond
>>
>>
>> > to david
>>
>>
>> >
>>
>>
>> >
>>
>>
>> >
>> >
>> >
>> >Hi,
>> >
>> >I'm using XP and downloaded JDK1.4.2 which puts the JDK in A Sun
>> >directory along with JRE. It's not very clear why we have
>> javaw in a
>> >jdk\bin dir
>> and
>> >also jdk\jre\bin location.
>> >
>> >I've tried using the smartj commands which gives me an error
>> saying a
>> >superclass cannot be found. I've followed all the documents on the
>> >tini web site or www.smartsc.com and none of those
>> suggestions work for
>> >classpath or getting JavaKit to execute.
>> >
>> >David
>> >_______________________________________________
>> >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
>>
>
>
>
_______________________________________________
TINI mailing list
TINI-6tN4nzCoH/[email protected]
To UNSUBSCRIBE, edit your profile, or see list archives:
http://lists.dalsemi.com/mailman/listinfo/tini