From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19139 invoked by alias); 24 Jun 2013 09:37:52 -0000 Mailing-List: contact java-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: java-owner@gcc.gnu.org Received: (qmail 19072 invoked by uid 89); 24 Jun 2013 09:37:46 -0000 X-Spam-SWARE-Status: No, score=-0.1 required=5.0 tests=AWL,BAYES_50,RP_MATCHES_RCVD autolearn=ham version=3.3.1 Received: from mail-server.ntb.ch (HELO mail-server.ntb.ch) (146.136.1.75) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Mon, 24 Jun 2013 09:37:44 +0000 Received: from MAIL-SERVER.ntb.ch ([146.136.1.75]) by mail-server.ntb.ch ([146.136.1.75]) with mapi id 14.02.0342.003; Mon, 24 Jun 2013 11:37:41 +0200 From: Bucher Fabio To: "java@gcc.gnu.org" Subject: create an object with cni Date: Mon, 24 Jun 2013 09:37:00 -0000 Message-ID: <17B34E365AFABC468216733E4B4CC75492AD7EF3@mail-server.ntb.ch> Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-SW-Source: 2013-06/txt/msg00003.txt.bz2 Hi I just have a simple programm: One Java class, one C++ class. Java: public class Java_with_CNI { public Java_with_CNI(){ } public void printHello(){ System.out.println("Hallo Du, ich wurde durch CNI aufgerufen"); } } and my C++ class: #include #include "Java_with_CNI.h" class Hallo{ int main(){ Java_with_CNI test =3D new Java_with_CNI::Java_with_CNI(); test.printHello(); return 0; } }; This is my first time i use C++, so I dont know whats wrong with my class. = I just want to create a new Object (Java_with_CNI) and call the printHello(= )-method. What is wrong with my class? Thank you for your help and best regards Fabio Bucher