* Object Ada & Java target
@ 2001-04-11 9:08 Etienne Baudin
2001-04-11 12:34 ` Marc A. Criley
0 siblings, 1 reply; 2+ messages in thread
From: Etienne Baudin @ 2001-04-11 9:08 UTC (permalink / raw)
here is the source code :
--##################################
with Java.Lang.System; use Java.Lang.System;
with Java.Io.Printstream;
with Interfaces.Java; use Interfaces.Java;
procedure TestJava is
begin
Java.Io.Printstream.Print (stdout, "salut");
end TestJava;
--#################################
the compiler detect no errors but at the execution :
E:\>java TestJava
Exception in thread "main" java.lang.NoClassDefFoundError:
interfaces/java/Ada_Applet
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:355)
at
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:74)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:188)
at java.net.URLClassLoader.access$1(URLClassLoader.java:156)
at java.net.URLClassLoader$1.run(URLClassLoader.java:137)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:131)
at java.lang.ClassLoader.loadClass(ClassLoader.java:245)
at java.lang.ClassLoader.loadClass(ClassLoader.java:195)
I tryed to run another simple hello world written in real Java and it Works
fine
Is my source code bad ?
Thanks
Etienne Baudin
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Object Ada & Java target
2001-04-11 9:08 Object Ada & Java target Etienne Baudin
@ 2001-04-11 12:34 ` Marc A. Criley
0 siblings, 0 replies; 2+ messages in thread
From: Marc A. Criley @ 2001-04-11 12:34 UTC (permalink / raw)
Etienne Baudin wrote:
>
> here is the source code :
>
> --##################################
> with Java.Lang.System; use Java.Lang.System;
> with Java.Io.Printstream;
> with Interfaces.Java; use Interfaces.Java;
>
> procedure TestJava is
> begin
> Java.Io.Printstream.Print (stdout, "salut");
> end TestJava;
> --#################################
>
> the compiler detect no errors but at the execution :
>
> E:\>java TestJava
> Exception in thread "main" java.lang.NoClassDefFoundError:
> interfaces/java/Ada_Applet
> at java.lang.ClassLoader.defineClass0(Native Method)
> at java.lang.ClassLoader.defineClass(ClassLoader.java:355)
> at
> java.security.SecureClassLoader.defineClass(SecureClassLoader.java:74)
> at java.net.URLClassLoader.defineClass(URLClassLoader.java:188)
> at java.net.URLClassLoader.access$1(URLClassLoader.java:156)
> at java.net.URLClassLoader$1.run(URLClassLoader.java:137)
> at java.security.AccessController.doPrivileged(Native Method)
> at java.net.URLClassLoader.findClass(URLClassLoader.java:131)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:245)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:195)
>
> I tryed to run another simple hello world written in real Java and it Works
> fine
>
> Is my source code bad ?
> Thanks
> Etienne Baudin
Is your CLASSPATH variable properly set? In other words, has the JVM
been informed where to locate the Ada run-time class or jar files?
(Java has default locations where it expects to find its run-time, so if
the Ada ones are somewhere else, the JVM won't know to go look there.)
Doesn't ObjectAda have some sort of "Getting started" section to guide
one through their first Ada->Java program?
Marc A. Criley
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2001-04-11 12:34 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-04-11 9:08 Object Ada & Java target Etienne Baudin
2001-04-11 12:34 ` Marc A. Criley
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox