PROFESSIONAL NEWSGROUPS
WINDEV
,
WEBDEV
and
WINDEV Mobile
Home
|
Recent messages
|
Connect
|
Sign out
|
English
Home
→
WINDEV 25
→
Problemas ao executar a função JavaLoad no Linux
Problemas ao executar a função JavaLoad no Linux
Started by Fabricio Peruzzolo, Jul., 18 2018 10:58 PM - 1 reply
Connect yourself…
Fabricio Peruzzolo
#1
Registered member
2 messages
Posted on July, 18 2018 - 10:58 PM
Estou com um problema ao executar a função JavaLoad no Linux.
Minha configuração:
- WebDev 22 63m
- Servidor Linux Debian 9 amd_64
- Apache 2.2.34
- Java 1.8.151 64 bits
s
Jar
is string
=
fWebDir
(
)
+
"\pacote\subpacote\Classe.jar"
IF
fFileExist
(
s
Jar
) =
False
THEN
RESULT
buf
Retorno
END
IF
JavaLoad
(
s
Jar
)
THEN
Trace
(
"Usando Biblioteca "
+
s
Jar
)
ELSE
Mensagem de erro:
WL call:
Process of 'Global Procedure calcularHoras (server)' (Cliente.calcularHoras),
line 9, thread 0
'JavaLoad' function, syntax 0
What happened?
The jvm.dll DLL is not found.
The Java version installed must be in 64 bits.
Error code: 110009
Level: fatal error
Dump of the error of 'wd220jav64.so' module (22.0.49.0).
Identifier of detailed information (.err): 110009
No help do JavaLoad [
https://help.windev.com/en-US/…
], diz o seguinte:
" the search for JVM.DLL file in Windows and for "libjvm.soc" file in Linux".
Pois bem o help menciona o arquivo libjvm.soc para linux, o que faria o mesmo trabalho do JVM.DLL quando essa função é usada no windows.
Fiz uma busca e achei o arqui "libjvm.so" e não o "libjvm.soc".
PS.: No windows o webservice funciona perfeitamente
Report
0
0
Fabricio Peruzzolo
#2
Registered member
2 messages
Posted on July, 20 2018 - 12:29 AM
Problema resolvido. Faltou configurar corretamente o PATH
Criei a variável de ambiente LIB_JVM e a coloquei no PATH do linux.
export JAVA_HOME="/usr/local/java/jdk1.8.0_181"
export JRE_HOME="/usr/local/java/jdk1.8.0_181/jre/bin"
export CLASSPATH="/usr/local/java/jdk1.8.0_181/lib"
export LIB_JVM="/usr/local/java/jdk1.8.0_181/jre/lib/amd64/server/"
vim ~/.bashrc
export PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:$JAVA_HOME:$JRE_HOME:$CLASSPATH:$LIB_JVM"
source ~/.bashrc
:obrigado:
Report
0
0
→ Go back to WINDEV 25
WINDEV 25
Français
English
Español
Portuguesa
Close this window
Search type
Only topics
All the messages
Search period
Any time
Past hour
Past 24 hours
Past week
Past month
Past year
Cancel
Preview of your message
Adding an image
Import an image from a URL
Send an image from a file of your disk
Drop a file or click "Browse..."
or
Cancel
0%
WLanguage
SQL
XML, HTML
JAVA, Javascript
Text