Download Shareware and Freeware Software for Windows, Linux, Macintosh, PDA

line Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

Serving Software Downloads in 976 Categories, Downloaded 32.402.754 Times

PBJ::JNI 0.1

  Date Added: August 06, 2010  |  Visits: 930

PBJ::JNI

Report Broken Link
Printer Friendly Version


Product Homepage
Download (75 downloads)



PBJ::JNI is a Perl module with full access to and from Java virtual machine from Perl. SYNOPSIS use PBJ::JNI::JavaVM; my ($env, $jvm, @vm_opts); my ($cls, $fid, $mid, $out); # Create the Java VM @vm_opts = ("-Xrs", "-Xcheck:jni"); $jvm = new PBJ::JNI::JavaVM(); $env = $jvm->get_env(@vm_opts); $env->PushLocalFrame(16) == 0 or die; $cls = $env->FindClass("java/lang/System") or die; $fid = $env->GetStaticFieldID($cls, "out", "Ljava/io/PrintStream;") or die; $out = $env->GetStaticObjectField($cls, $fid) or die; $cls = $env->GetObjectClass($out) or die; $mid = $env->GetMethodID($cls, "println", "(I)V") or die; $env->CallVoidMethod($out, $mid, $env->cast("I", 12345)); $env->PopLocalFrame(0); WARNING This software is still in alpha stage. It may not be reliable and its features and APIs may change in the future releases. The PBJ::JNI package allows you to link with your Java virtual machine and directly access Java classes from Perl. It also allows a mechanism to create callbacks from Java program to Perl subroutines. The package focuses on providing a set of APIs that closely resemble the native JNI interface. This basically means that you can write an ordinary JNI program in Perl instead of in C or C++. This provides a quicker way to writing wrappers to invoke programs written in Java and therefore introduce Java libraries to the Perl without the trouble of writing low level C/C++ programs. You will need to know how JNI works in order to use this package. This package is by definition very primitive. If you dont understand thoroughly on how JNI works and try to use the feature of this package, you can easily crash your program or create memory leaks. So dont do that. It is my hope that somebody with proper skills in JNI and Perl can write wrappers for a set of popular Java libraries, such as JDBC, XML parser, JMS (that I am working on), and other useful Java packages so that a Perl programmer can use them directly in a pure Perl environment without knowing anything about JNI..

Requirements: No special requirements
Platforms: Linux
Keyword: Cls Full Access Java Java Virtual Java Virtual Machine Jni Machine Package Pbj Pbjjni Perl Perl Module To And From Virtual Virtual Machine
Users rating: 0/10

License: Freeware Size: 14.34 KB
USER REVIEWS
More Reviews or Write Review


PBJ::JNI RELATED
Development Tools  -  MyoPyx 1.1.0
These are Java and Ruby parsers, generators, and converters for PYX documentsPYX are documents with a format based on XML, but way much simpler.PYX is ideal for grepping and parsing, and for very basic markup.Many XML documents can be converted to...
10 KB  
Programming  -  JPList 1.1
The JPList project provides a Java library to parse and build ASCII Property lists to and from Java objects. The design of the API is heavily influenced by the JDOM API, which provides a library to parse and build XML documents to and from JDOM...
40.96 KB  
Programming  -  JDBTools 1.0.1
This program converts, compares, merges, normalizes, and refactors data to and from disparate sources (CSV, Excel, and any JDBC/ODBC database) for use in a Java program.
28.95 KB  
Programming  -  JFlat 1.2
JFlat is a Java API for writing to and from flat files such as CSV and fixed width. It can map to and from Java beans, provides callbacks to implement custom handling, and is highly customizable.
174.83 KB  
Programming  -  JSONjuicer 1.0
A Java open-source library which makes encoding and decoding Java data-structures to and from JSON text easy and intuitive.
141.32 KB  
Libraries  -  UltraGetopt for Java 0.7.1
UltraGetopt for Java is the Java imagening of UltraGetopt. The project provides the features and flexibility of UltraGetopt in a way that is more suited to the Java environment..
54.27 KB  
Audio Tools  -  MikMod for Java 24.04.98
MikMod for Java is a Java port of the MOD player MikMod. It supports MOD, S3M, XM, MTM, and many other MOD formats. The make file "source/Makefile" is intended for GNU make, so if its present you can just type make to build everything. The...
99.33 KB  
File Utilities  -  Data::Locations 5.4
Data::Locations - magic insertion points in your data Did you already encounter the problem that you had to produce some data in a particular order, but that some piece of the data was still unavailable at the point in the sequence where it...
44.03 KB  
Libraries  -  Net::Cisco::AccessList::Extended 0.03
Net::Cisco::AccessList::Extended is a Perl module to generate Cisco extended access-lists. SYNOPSIS use Net::Cisco::AccessList::Extended; my $l = Net::Cisco::AccessList::Extended->new(INCOMING_LIST); $l->push({ access => permit, proto =>...
7.17 KB  
Programming  -  joeq virtual machine 20030812
Joeq is a virtual machine and compiler infrastructure designed to facilitate research in virtual machine technologies such as Just-In-Time and Ahead-Of-Time compilation, advanced garbage collection techniques, distributed computation,...
1024 KB  
NEW DOWNLOADS IN PROGRAMMING, LIBRARIES
Programming  -  Cedalion for Linux 0.2.6
Cedalion is a programming language that allows its users to add new abstractions and define (and use) internal DSLs. Its innovation is in the fact that it uses projectional editing to allow the new abstractions to have no syntactic limitations.
471.04 KB  
Programming  -  Math::GMPf 0.29
Math::GMPf - perl interface to the GMP library's floating point (mpf) functions.
30.72 KB  
Programming  -  Net::Wire10 1.08
Net::Wire10 is a Pure Perl connector that talks to Sphinx, MySQL and Drizzle servers. Net::Wire10 implements the low-level network protocol, alias the MySQL wire protocol version 10, necessary for talking to one of the aforementioned...
30.72 KB  
Programming  -  logilab-common 0.56.2
a bunch of modules providing low level functionnalities shared among some python projects devel Please note that some of the modules have some extra dependencies. For instance, logilab.common.db will require a db-api 2.0 compliant...
174.08 KB  
Programming  -  OpenSSL for linux 1.0.0a
The OpenSSL Project is a collaborative effort to develop a robust, commercial-grade, full-featured, and Open Source toolkit implementing the Secure Sockets Layer (SSL v2/v3) and Transport Layer Security (TLS v1) protocols as well as a...
3.83 MB  
Libraries  -  wolfSSL 3.15.3
The wolfSSL embedded SSL/TLS library is a lightweight SSL library written in ANSI standard C and targeted for embedded and RTOS environments - primarily because of its small size, speed, and feature set. It is commonly used in standard operating...
3.88 MB  
Libraries  -  EuGTK 4.8.9
Makes it easy to develop good- looking, fast, cross-platform programs that run on Linux, OS X, and Windows. Euphoria is a very fast interpreted/compiled language with straight-forward syntax. EuGTK allows programming in a clean, object-oriented...
10.68 MB  
Libraries  -  Linux User Group Library Manager 1.0
The LUG Library Manager is a project to help Linux User Groups start their own library. A LUG library is helpful to the community at large because it increases access to information, and gives everyone the opportunity to become more knowledgeable.
5.35 KB  
Libraries  -  Module::MakefilePL::Parse 0.12
Module::MakefilePL::Parse is a Perl module to parse required modules from Makefile.PL. SYNOPSIS use Module::MakefilePL::Parse; open $fh, Makefile.PL; $parser = Module::MakefilePL::Parse->new( join("", ) ); $info = $parser->required;...
8.19 KB  
Libraries  -  sqlpp 0.06
sqlpp Perl package is a SQL preprocessor. sqlpp is a conventional cpp-alike preprocessor taught to understand SQL ( PgSQL, in particular) syntax specificities. In addition to the standard #define/#ifdef/#else/#endif cohort, provides also...
10.24 KB