* ada->java bytecode compilation errors
@ 2002-06-04 11:34 Frenk
2002-06-05 14:53 ` John Kern
0 siblings, 1 reply; 3+ messages in thread
From: Frenk @ 2002-06-04 11:34 UTC (permalink / raw)
Hi everybody!
I need to compile an ada program to java bytecode, but i have some problems:
- i installed in a windows (xp) system jgnatmake (version 1.1)
- i set the PATH and CLASSPATH environment variables.
Now when i compile as program everything works fine, it generates a .class
program that run correctly with the jvm.
But i need it to be an applet. so i compile as an applet, i build and here i
get the errors.
The errors i get (in AdaGIDE):
---------------------
compiling....
completed successfully
---------------------
building...
jgnatmake -gnatwu -v -gnato -.................
jgnatbind -a0./ -a0D:\.......................
jgnatlink hello.ali
jgnatbind -n -ID:\............
jgnatlink hello.ali
Unable to create jar file--hello$typ.class is missing.
Perhapse this is not an applet?
Done--error detected.
-------------------
So i tried by command line, here the results: (i found the commands in the
documentation)
-------------------
jgnatmake hello
jgnatbind -x hello.ali
jgnatlink hello.ali
jgnatbind -n hello.ali
jgnatlink hello.ali
jarmake -o hello.jar hello$typ.class
jarmake: Cannot find: hello$typ.class
------------------
Maybe the error i do is something obvious, but i'm not so advanced in ada
nor java programming....
If someone can help me, Thanks!!!!
Regards! Frenk
Francesco Devittori
francesco.devittori[AT]epfl.ch
www.frenk.com
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: ada->java bytecode compilation errors
2002-06-04 11:34 ada->java bytecode compilation errors Frenk
@ 2002-06-05 14:53 ` John Kern
2002-06-05 15:40 ` Frenk
0 siblings, 1 reply; 3+ messages in thread
From: John Kern @ 2002-06-05 14:53 UTC (permalink / raw)
Frenk wrote:
>
> But i need it to be an applet. so i compile as an applet, i build and here i
> get the errors.
>
What did you mean when you say "compile as an applet"? Does that mean
you changed the source code to include something like:
with Java.Applet.Applet;
...
type Typ is new Java.Applet.Applet.Typ with ....
Your program has to be changed such that it inherits a bunch of "applet
making stuff" from the Java-API before it knows how to behave in a
browser (or appletviewer.)
You need to study the examples which are applets, (hello is not).
Hope this helps.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: ada->java bytecode compilation errors
2002-06-05 14:53 ` John Kern
@ 2002-06-05 15:40 ` Frenk
0 siblings, 0 replies; 3+ messages in thread
From: Frenk @ 2002-06-05 15:40 UTC (permalink / raw)
yes, i understand
thanks! Frenk
"John Kern" <jkern3@NOSPAM.visteon.com> wrote in message
news:3CFE25F5.22129E0E@NOSPAM.visteon.com...
>
>
> Frenk wrote:
> >
>
>
> > But i need it to be an applet. so i compile as an applet, i build and
here i
> > get the errors.
> >
>
> What did you mean when you say "compile as an applet"? Does that mean
> you changed the source code to include something like:
>
> with Java.Applet.Applet;
>
> ...
>
> type Typ is new Java.Applet.Applet.Typ with ....
>
>
> Your program has to be changed such that it inherits a bunch of "applet
> making stuff" from the Java-API before it knows how to behave in a
> browser (or appletviewer.)
>
> You need to study the examples which are applets, (hello is not).
>
> Hope this helps.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2002-06-05 15:40 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-06-04 11:34 ada->java bytecode compilation errors Frenk
2002-06-05 14:53 ` John Kern
2002-06-05 15:40 ` Frenk
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox