Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

Commit b25d435

Browse files
Updated java extension paths
For both Linux and Windows.
1 parent b26ffad commit b25d435

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

docs/language-extensions/tutorials/search-for-string-using-regular-expressions-in-java.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ If you are using Windows, follow the steps below to create an external language
182182

183183
1. Create a .zip file containing the extension.
184184

185-
As part of the SQL Server setup on Windows, the Java extension **.dll** file is installed in this location: `[SQL Server install path]\MSSQL\Binn\javaextension.dll`.
185+
As part of the SQL Server setup on Windows, the Java extension **.zip** file is installed in this location: `[SQL Server install path]\MSSQL\Binn\java-lang-extension.zip`. THis zip file contains the **javaextension.dll**.
186186

187187
Compress the `javaextension.dll` into a **.zip** file. For example: `javaextension.zip`.
188188

@@ -191,20 +191,20 @@ If you are using Windows, follow the steps below to create an external language
191191
```sql
192192
CREATE EXTERNAL LANGUAGE Java
193193
FROM
194-
(CONTENT = N'[Path to .zip file]\javaextension.zip', FILE_NAME = 'javaextension.dll')
194+
(CONTENT = N'[SQL Server install path]\MSSQL\Binn\java-lang-extension.zip', FILE_NAME = 'javaextension.dll')
195195
GO
196196
```
197197

198198
### Create external language on Linux
199199

200-
On Linux, you don't need to manually create a **.tar.gz** file. As part of setup, there is already generated a **.tar.gz** file under the following path:
201-
`/opt/mssql/lib/extensibility/java-lang-extension.tar.gz`.
200+
As part of setup, the extension **.tar.gz** file is saved under the following path:
201+
`/opt/mssql-extensibility/lib/java-lang-extension.tar.gz`.
202202

203203
To create an external language Java, run the following T-SQL statement on Linux:
204204

205205
```sql
206206
CREATE EXTERNAL LANGUAGE Java
207-
FROM (CONTENT = N'/opt/mssql/lib/extensibility/java-lang-extension.tar.gz', file_name = 'javaextension.so');
207+
FROM (CONTENT = N'/opt/mssql-extensibility/lib/java-lang-extension.tar.gz', file_name = 'javaextension.so');
208208
GO
209209
```
210210

0 commit comments

Comments
 (0)