OS2.org Site Index - Feedback - Impressum
Sprachauswahl / Choose your Language News Software Hardware Projekte Forum Tipps Links Verschiedenes
Editorial Diskussion HelpDesk Umfrage
[Forum]
in nach (Erweiterte Suche)
[Forum]
( Archiv ) ( Neues Thema )

( Zeige die Threadübersicht ) ( Zur Startübersicht )
16.11.2001
Koppletung von java13 mit einem C Programm (von: clemens, 16:53:40) ^
Mit welchen compiler mache oben genannte Aufgabe am besten.
Ich habe es mit dem VAC 3.08 und dem GCC versucht. Beide kommen anscheinend nicht mit den Headerfiles des JDK1.3 klar. Meine Java APP würde nur 1.1.8 benötigen. Geht das mit den Compilern. Wo bekomme ich gegebenenfalls die Dateien des JDK 1.1.8 her, da ich mir nicht meine laufende Java 1.3 Umgebung zerstören will. Welche Dateien ausser den Headerdateien brauche ich eigentlich noch ?
[ Leser: 75 ]

17.11.2001
Sicherheit. Java und C/C++ Programme (von: GA, 18:06:32)
Nach meinen geringen Kenntnissen kann man direkt C/C++ Programme nicht unter Java aufrufen, da solchen Aufrufen Sicherheitsaspekte entgegenstehen.

Es geht allerdings über das Jini Native Interface, wobei der Operator native void...
verwendet wird. Suche mal im Netz danach.

11.12.2001
Java und C/C++ in einander umsetzen (von: GA, 13:20:00)
Durch Zufall habe ich folgend Quelle gefunden(die URLs habe ich nicht überprüft):

How do I translate C/C++ into Java or vice-versa?

A. In general it is not simple to translate C/C++ into Java, as Java lacks the arbitrary pointer arithmetic of those languages.

If your C code does not use pointer arithmetic, automatic translation gets a lot simpler.

Try these URLs:

http://www.ist.co.uk (search for visaj)
http://members.aol.com/laffra/c2j.html

http://www.ilog.com/
http://www.cs.wustl.edu/~schmidt/java_notes.html

Going the other way there are currently three freely-available tools to translate Java into C.

If I understand it correctly these have been done for hacking value, rather than practical purposes.

- j2c from Japan,
http://www.webcity.co.jp/info/andoh/java/j2c.html

- Toba from the Sumatra research project,
http://www.cs.arizona.edu/sumatra/toba

- JCC from Nik Shaylor.
http://www.digiserve.com/nshaylor/jcc.html

None of them support the AWT yet, and both j2c and JCC have additional restrictions.

There's a product to convert Visual Basic to Java.

Details at

http://www.blackdirt.com and

http://www.tvobjects.com

This program dumps info about the class file:
http://www.professionals.com/~cmcmanis/java/dump/index.html

Chuck McManis was one of Sun's original Java whackers.

08.01.2002
Von Java Klassen von C++ aufrufen (von: GA, 13:15:02)
Es gibt doch zwei mir bekannte Möglichkeiten,
von Java aus auf C++ Klassen zuzugreifen:

1. Es gibt eine Facility bei VisualAge for Java v2.0

2. Von J2C++ aus:

What is J2C++?

J2C++ is a code generation tool that allows a Java applet or application to access C++ objects seamlessly by making them appear as if they were implemented in Java.

J2C++ parses a C++ definition file (e.g. an .hpp file) and generates a mapping layer consisting of Java source and C++ source which exploits the native method call
interface of the Java Virtual Machine (JVM).

A makefile builder (mkmake) simplifies the tasks required to build the generated source code. Both a Java compiler (javac) and C++ compiler are needed to build the mapping layer.

How does it work?

When the Java proxy class is used in a Java program, a one-to-one relationship is established between the proxy object and its corresponding C++ object.

When the proxy object is instantiated, its corresponding C++ object is also instantiated. In addition, when the JVM garbage collector frees a Java proxy object, the associated C++ object is removed as well.

J2C++ also supports C++ code that does not belong to a particular C++ class definition (i.e. overloaded nonmember operators, global functions and global variables).

J2C++ does have limitations due to the differences between C++ and Java. For example, J2C++ only supports single inheritance and does not support templates or member selection operators.

Hier kann man eine trial version laden(rechts oben):

http://www.alphaworks.ibm.com/tech/j2cpp




( Zeige die Threadübersicht ) [ Version zum Drucken ] ( Zur Startübersicht )

Datum Thema
08.01.2017 *

*

Name: * eMail: Benachrichtigung

Mit * markierte Felder müssen ausgefüllt werden !


php.net OpenIT © 1998-2017 by WebTeam OS2.org