JBuilder applet, adding class to jar  
Author Message
marcinsiewiera





PostPosted: 2004-9-9 12:00:00 Top

java-programmer, JBuilder applet, adding class to jar I have applet which uses classes like java.util.AbstractList,
java.awt.Point. Unfortunately MS VM doesnt support above(i got IO
exception, above classes not found) So i guess i have to add those
classes to my jar. No idea how to do it... Any help appreciated...
 
Franz Bayer





PostPosted: 2004-9-9 17:44:00 Top

java-programmer >> JBuilder applet, adding class to jar Set the classpath right.
This questions has been answered many times, so search for it in this
newsgroup.

/franz


"Martin" <email***@***.com> schrieb im Newsbeitrag
news:email***@***.com...
> I have applet which uses classes like java.util.AbstractList,
> java.awt.Point. Unfortunately MS VM doesnt support above(i got IO
> exception, above classes not found) So i guess i have to add those
> classes to my jar. No idea how to do it... Any help appreciated...


 
Andrew Thompson





PostPosted: 2004-9-9 18:00:00 Top

java-programmer >> JBuilder applet, adding class to jar On Thu, 9 Sep 2004 11:44:26 +0200, Franz Bayer wrote:

> "Martin" <email***@***.com> schrieb im Newsbeitrag...

>> I have applet which uses classes like java.util.AbstractList,
>> java.awt.Point. Unfortunately MS VM doesnt support above(i got IO
>> exception, above classes not found) So i guess i have to add those
>> classes to my jar. No idea how to do it... Any help appreciated...

> Set the classpath right.

"Don't top-post" *
<http://www.physci.org/codes/javafaq.jsp#netiquette>

"Read the question carefully before answering" *

The OP mentions
'..java.util.AbstractList, java.awt.Point.'

These are core classes, and you do not need
to set the classpath to the JRE in an applet.
You need to install the correct JRE verison,
or configure the UA to use it.

I go into further detail on the second post
that the OP made on this subject, just 35
minutes later. "JBuilder applet, Jar".

* Normally I take pains not to 'tell' anybody
to do anything, although I may harangue them
with requests to do so. ..I wanted you to hear
that tone back. ( And feel free to 'harangue'
me straight back, to your heart's content ;-)

--
Andrew Thompson
http://www.PhySci.org/ Open-source software suite
http://www.PhySci.org/codes/ Web & IT Help
http://www.1point1C.org/ Science & Technology
 
 
Franz Bayer





PostPosted: 2004-9-9 18:28:00 Top

java-programmer >> JBuilder applet, adding class to jar
"Andrew Thompson" <email***@***.com> schrieb im Newsbeitrag
news:email***@***.com...
> On Thu, 9 Sep 2004 11:44:26 +0200, Franz Bayer wrote:
>
> > "Martin" <email***@***.com> schrieb im Newsbeitrag...
>
> >> I have applet which uses classes like java.util.AbstractList,
> >> java.awt.Point. Unfortunately MS VM doesnt support above(i got IO
> >> exception, above classes not found) So i guess i have to add those
> >> classes to my jar. No idea how to do it... Any help appreciated...
>
> > Set the classpath right.
>
> "Don't top-post" *
> <http://www.physci.org/codes/javafaq.jsp#netiquette>
>
> "Read the question carefully before answering" *
>
> The OP mentions
> '..java.util.AbstractList, java.awt.Point.'
>
> These are core classes, and you do not need
> to set the classpath to the JRE in an applet.
> You need to install the correct JRE verison,
> or configure the UA to use it.
>
> I go into further detail on the second post
> that the OP made on this subject, just 35
> minutes later. "JBuilder applet, Jar".
>
> * Normally I take pains not to 'tell' anybody
> to do anything, although I may harangue them
> with requests to do so. ..I wanted you to hear
> that tone back. ( And feel free to 'harangue'
> me straight back, to your heart's content ;-)
>
> --
> Andrew Thompson
> http://www.PhySci.org/ Open-source software suite
> http://www.PhySci.org/codes/ Web & IT Help
> http://www.1point1C.org/ Science & Technology

Thanks for the link to the netiquette. Didn't know that.

I find it sometimes disturbing to read all that signatures.

But I cannot follow the thing about the jre-version. Cause if it cannot
found the Point-class, there is something else wrong.
Besides I don't think an IOException is thrown. So there is something else
very wrong.

/franz

PS: Who the * is still using MSVM? ;)


 
 
Andrew Thompson





PostPosted: 2004-9-9 18:40:00 Top

java-programmer >> JBuilder applet, adding class to jar On Thu, 9 Sep 2004 12:27:50 +0200, Franz Bayer wrote:

> I find it sometimes disturbing to read all that signatures.

..my signatures? the URL's and
comments after my name?

I do not quite follow.

> But I cannot follow the thing about the jre-version. Cause if it cannot
> found the Point-class, there is something else wrong.

Yes, that is *very* suspicious, I suspect the
OP is not quite reading the console right,
which is why I would like to see the URL,
and the Applet code.

> Besides I don't think an IOException is thrown. So there is something else
> very wrong.

Good point, but I think the available information
is ..mixed up somehow. I really think we need
to see the URL to make much progress on this one.

> PS: Who the * is still using MSVM? ;)

I do not have figures, but if they *do*
have the MSVM, ..I will help them remove it.
<http://www.physci.org/jvmclean.jsp>
So, 'Less people every day' .. ;-)

--
Andrew Thompson
http://www.PhySci.org/ Open-source software suite
http://www.PhySci.org/codes/ Web & IT Help
http://www.1point1C.org/ Science & Technology
 
 
marcinsiewiera





PostPosted: 2004-9-10 1:16:00 Top

java-programmer >> JBuilder applet, adding class to jar email***@***.com (Martin) wrote in message news:<email***@***.com>...
> I have applet which uses classes like java.util.AbstractList,
> java.awt.Point. Unfortunately MS VM doesnt support above(i got IO
> exception, above classes not found) So i guess i have to add those
> classes to my jar. No idea how to do it... Any help appreciated...

im a java applet beginner. sorry for this banal questions. I made my
applet and tested it on JRE 1.2, now as i want it to be compatible
with most of browsers i tested it on MS VM(lots of people still use :(
) and it crashed. So now im changing all functions using i.e.
AbstractList to Object[] and so on. I just want to ask if its worth it
or should leave it in jre1.2 version cause MS VM is automatically in
most of people browsers. Is there a way to detect VM version and if
there is a need automatically install sun JRE1.2? I would really
apreciate further opinions.
 
 
Andrew Thompson





PostPosted: 2004-9-10 13:09:00 Top

java-programmer >> JBuilder applet, adding class to jar On 9 Sep 2004 10:15:49 -0700, Marcin Siewiera wrote:

Wow.. where do we begin, ..OK.

> im a java applet beginner.

The best group for beginners is described here..
<http://www.physci.org/codes/javafaq.jsp#cljh>

Beginners are best to avoid applets.

>..sorry for this banal questions. I made my
> applet and tested it on JRE 1.2, now as i want it to be compatible
> with most of browsers

Some browsers do not, and cannot ever, have Java.
[ I need to state that in case you have any illusions. ]

>..i tested it on MS VM(lots of people still use :(
> ) and it crashed. So now im changing all functions using i.e.
> AbstractList to Object[] and so on. I just want to ask if its worth it

What is it??

If it is a cute little graphics game, no.

If it is govenerment search database on
disabilities legislation, almost certainly.

> or should leave it in jre1.2 version cause MS VM is automatically in
> most of people browsers. Is there a way to detect VM version and if
> there is a need automatically install sun JRE1.2?

Yes.

>...I would really
> apreciate further opinions.

I will help you all you need, but
please make a post on c.l.j.help.

--
Andrew Thompson
http://www.PhySci.org/ Open-source software suite
http://www.PhySci.org/codes/ Web & IT Help
http://www.1point1C.org/ Science & Technology
 
 
Andrew Thompson





PostPosted: 2004-9-10 13:12:00 Top

java-programmer >> JBuilder applet, adding class to jar On 9 Sep 2004 10:15:49 -0700, Marcin Siewiera wrote:

I should have read the earlier posts more
carefully before I replied.

** Marcin, where is your URL? **

Before post on c.l.j.help, please put your
HTML (with call to applet and link to code)
up at GeoCities or such..

--
Andrew Thompson
http://www.PhySci.org/ Open-source software suite
http://www.PhySci.org/codes/ Web & IT Help
http://www.1point1C.org/ Science & Technology