Skip to content

Commit db33c13

Browse files
committed
[[ LCB Java ]] Add release note
1 parent f3e0f70 commit db33c13

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed

docs/lcb/notes/feature-java.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# LiveCode Builder Standard Library
2+
3+
## Java utilities
4+
5+
There is now a utility library for manipulating java objects. It contains
6+
a type JObject which wraps a java object, some type conversion operations:
7+
8+
* StringFromJString - converts a Java string to an LCB String
9+
* StringToJString - converts an LCB String to a Java string
10+
* DataFromJByteArray - converts a Java byte array to LCB Data
11+
* DataToJByteArray - converts LCB Data to a Java byte array
12+
13+
and a utility for determining the class of a given java object:
14+
15+
* GetJavaClassName - return an LCB String containing the class name of the given JObject

libscript/src/java.lcb

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,19 @@
1616

1717
/**
1818
This module provides utility handlers for converting to and from Java types.
19+
20+
Description:
21+
22+
> **Important:** This library is currently supported on Android, Mac and
23+
> Linux. Binding to java classes requires the availability of a Java
24+
> runtime and access to the appropriate libraries. On Mac,
25+
> the `JAVA_HOME` environment variable must be set to the path to your
26+
> Java installation (usually at
27+
> `/Library/Java/JavaVirtualMachines/jdk1.7.0_55.jdk/Contents/Home`).
28+
> On Linux, your `LD_LIBRARY_PATH` must be set to the folder containing
29+
> the `libjvm.so` library (usually at ${JAVA_HOME}/jre/lib/amd64/server)
30+
> on 64-bit Linux.
31+
1932
*/
2033
module com.livecode.java
2134

0 commit comments

Comments
 (0)