comp.lang.ada
 help / color / mirror / Atom feed
From: "Etienne Baudin" <etienne.baudin@wanadoo.fr>
Subject: Object Ada & Java target
Date: Wed, 11 Apr 2001 09:08:49 GMT
Date: 2001-04-11T09:08:49+00:00	[thread overview]
Message-ID: <BaVA6.395$_j2.44854434@nnrp4.proxad.net> (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





             reply	other threads:[~2001-04-11  9:08 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-04-11  9:08 Etienne Baudin [this message]
2001-04-11 12:34 ` Object Ada & Java target Marc A. Criley
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox