[Solved] Establish a Link Between LibreOffice/ java program
Posted: Fri May 08, 2020 3:56 pm
Hello!, this is my first post, I am A newbie in development upon Libreoffice / Open Office, I am a follower of the projects LibreOffice and Open Office since 2015, i have found that it is a very versatile software in which anyone could build on top of it. I donĀ“t know the mechanics of the forum because i am new to it too (i made a mistake by not reading properly the survival guide. i have done so this time, sorry for my rush, and if i annoyed someone).
Let me rephrase my post:
I am looking forward to establish a connection between Libreoffice and an external java program.
The steps i Followed just in case it helps someone to avoid my mistakes:
Installed Java x86 on a x64 machine
Installed NetBeans as an IDE
Installed LibreOffice x 86 (Path without spaces just in case)
Installed SDK (Path without spaces just in case)
ran Setenvironmentvariable batch file from SDK folder
Added Libraries (CLASSes juh, jurt, ridl and so on according to the developer manual) to the project
Set the path to CLASS_PATH environment variable
https://docs.oracle.com/javase/6/docs/t ... asses.html
https://docs.oracle.com/javase/6/docs/t ... spath.html
set the UNO_PATH environment variables. It should be pointing to the LO \program\classes or the loader in sdk\classes\com\sun\star\lib\loader?
EDIT:SOLVED https://ws024.juntadeandalucia.es/ae/descargar/4318
set multiple OO variables according to the manual of development guide System Variables
Ran Netbeans and installed the plugin for open office
set the main class as the loader (Libraries are there)
// Set netbeans default options ----> -Dcom.sun.star.lib.loader.unopath="C:\LibreOffice\program"
opened the swriter.java located on the SDK
It seems that the problem would be related to a missing class or a wrong path.
so far i have set system wide variables that store:
CLASSPATH [LO\program\classes]
Netbeans_default_options [-Dcom.sun.star.lib.loader.unopath="C:\LO\program"]
OFFICE_HOME [LO root folder]
OO_SDK_CAT_HOME [mingwfolderforcat]
OO_SDK_CPP_HOME[mingwfolderforcpp]
OO_SDK_HOME [LO\sdk] (SDK) root folder
OO_SDK_JAVA_HOME [JDK Root Folder]
OO_SDK_MAKE_HOME[mingwfolderformake]
OO_SDK_NAME [SDK root folder]
OO_SDK_SED_HOME[mingwfolderforsed]
OO_SDK_URE_JAVA_DIR [LO\program\classes]
OO_SDK_ZIP_HOME [mingwfolderforzip]
PATH[javajre\bin;javajdk\bin;LO\program\classes;LO\LOsdkfolder\cli]
UNO_PATH [LO\program]
but i am unable to make it work. Any help will be really appreciated.
Thanks in advance for any help.
Kind regards.
Kouen.
Testing some changes on my system. I will post as soon as i restart my machine.
Is there a way to Inject a flag Named Enable_JAVA in the netbeans compiler? i am looking at the source code of LO, or it is just i am missing the shot?
PS: Please excuse my english, bad english. My native language is Spanish Bad Spanish
EDIT: Mild Success, If i run the java program with shift f6 it works. But if i run the solution F6, it doesnt work!
Let me rephrase my post:
I am looking forward to establish a connection between Libreoffice and an external java program.
The steps i Followed just in case it helps someone to avoid my mistakes:
Installed Java x86 on a x64 machine
Installed NetBeans as an IDE
Installed LibreOffice x 86 (Path without spaces just in case)
Installed SDK (Path without spaces just in case)
ran Setenvironmentvariable batch file from SDK folder
Added Libraries (CLASSes juh, jurt, ridl and so on according to the developer manual) to the project
Set the path to CLASS_PATH environment variable
https://docs.oracle.com/javase/6/docs/t ... asses.html
https://docs.oracle.com/javase/6/docs/t ... spath.html
set the UNO_PATH environment variables. It should be pointing to the LO \program\classes or the loader in sdk\classes\com\sun\star\lib\loader?
EDIT:SOLVED https://ws024.juntadeandalucia.es/ae/descargar/4318
set multiple OO variables according to the manual of development guide System Variables
Ran Netbeans and installed the plugin for open office
set the main class as the loader (Libraries are there)
// Set netbeans default options ----> -Dcom.sun.star.lib.loader.unopath="C:\LibreOffice\program"
opened the swriter.java located on the SDK
It seems that the problem would be related to a missing class or a wrong path.
so far i have set system wide variables that store:
CLASSPATH [LO\program\classes]
Netbeans_default_options [-Dcom.sun.star.lib.loader.unopath="C:\LO\program"]
OFFICE_HOME [LO root folder]
OO_SDK_CAT_HOME [mingwfolderforcat]
OO_SDK_CPP_HOME[mingwfolderforcpp]
OO_SDK_HOME [LO\sdk] (SDK) root folder
OO_SDK_JAVA_HOME [JDK Root Folder]
OO_SDK_MAKE_HOME[mingwfolderformake]
OO_SDK_NAME [SDK root folder]
OO_SDK_SED_HOME[mingwfolderforsed]
OO_SDK_URE_JAVA_DIR [LO\program\classes]
OO_SDK_ZIP_HOME [mingwfolderforzip]
PATH[javajre\bin;javajdk\bin;LO\program\classes;LO\LOsdkfolder\cli]
UNO_PATH [LO\program]
but i am unable to make it work. Any help will be really appreciated.
Thanks in advance for any help.
Kind regards.
Kouen.
Testing some changes on my system. I will post as soon as i restart my machine.
Is there a way to Inject a flag Named Enable_JAVA in the netbeans compiler? i am looking at the source code of LO, or it is just i am missing the shot?
PS: Please excuse my english, bad english. My native language is Spanish Bad Spanish
EDIT: Mild Success, If i run the java program with shift f6 it works. But if i run the solution F6, it doesnt work!