J johanpawan Member May 27, 2020 #1 Dear, JRDC.jar file is success release but when running, I get this error when running.. i have create folder " libs " that included library that used please help any solution.. ? Attachments jrdc open.jpg 165.2 KB · Views: 507 error run jrdc.jpg 103.8 KB · Views: 556 jrdclib.jpg 287 KB · Views: 504 jrdc lib folder.jpg 97.1 KB · Views: 538 file lib.jpg 96.8 KB · Views: 446
Dear, JRDC.jar file is success release but when running, I get this error when running.. i have create folder " libs " that included library that used please help any solution.. ?
Erel B4X founder Staff member Licensed User Longtime User May 27, 2020 #2 Run it from the command line with java -jar jrdc.jar Upvote 0
J johanpawan Member May 28, 2020 #3 I get another Error on Windows 7 (debug, release is oke, but when error in command line ) any solution Sir ? for more information ( all is well when debug, compile jrdc.jar and running in commnad line when using windows server 2019 ) Attachments jrdc win 7 success Run.jpg 423.6 KB · Views: 521 use cmd open jRDC in windows 7.jpg 141.1 KB · Views: 535 Upvote 0
I get another Error on Windows 7 (debug, release is oke, but when error in command line ) any solution Sir ? for more information ( all is well when debug, compile jrdc.jar and running in commnad line when using windows server 2019 )
Erel B4X founder Staff member Licensed User Longtime User May 28, 2020 #4 Download Java 11: https://www.b4x.com/b4j.html Use it instead of the installed Java. Upvote 0
OliverA Expert Licensed User Longtime User May 28, 2020 #5 Ok. So you configured Java 11 in the IDE. As is, this does not get called when you try to start java from the command line Code: Copy java -jar jRDC.jar This command will call the previously (most likely Java 8) JRE. In order to use Java 11's JRE, you have to prepend the java command with the path. So for example I have @Erel's mentioned Java 11 installed in C:\OpenJDK\jdk-11.0.1 Click to expand... to launch the above, I would have to do Code: Copy C:\OpenJDK\jdk-11.0.1\bin\java.exe -jar jRDC.jar Note: PLEASE don't post screen shots! I cannot copy/paste text from screen shots. I may stop replying to posts that just include screen shots instead of posting text as text. This is not solely directed at you. I'm just getting tired of having to switch back and forth between a graphic and the edit box here to type out stuff that I could just have copied and pasted. And yes, its short text, but sometimes my attention span is shorter... Upvote 0
Ok. So you configured Java 11 in the IDE. As is, this does not get called when you try to start java from the command line Code: Copy java -jar jRDC.jar This command will call the previously (most likely Java 8) JRE. In order to use Java 11's JRE, you have to prepend the java command with the path. So for example I have @Erel's mentioned Java 11 installed in C:\OpenJDK\jdk-11.0.1 Click to expand... to launch the above, I would have to do Code: Copy C:\OpenJDK\jdk-11.0.1\bin\java.exe -jar jRDC.jar Note: PLEASE don't post screen shots! I cannot copy/paste text from screen shots. I may stop replying to posts that just include screen shots instead of posting text as text. This is not solely directed at you. I'm just getting tired of having to switch back and forth between a graphic and the edit box here to type out stuff that I could just have copied and pasted. And yes, its short text, but sometimes my attention span is shorter...
TILogistic Expert Licensed User Longtime User May 29, 2020 #6 first check which version of Java and environment variables C:\>java -version java version "1.8.0_251" Java(TM) SE Runtime Environment (build 1.8.0_251-b08) Java HotSpot(TM) 64-Bit Server VM (build 25.251-b08, mixed mode) C:\>echo %JAVA_HOME% C:\Program Files\Java\jdk1.8.0_241 Click to expand... A simple solution to run java 11. Create a workable environment called JAVA11_HOME that contains the path of JDK11. EXAMPLE (use set for session or setx for permanent) C:\>set JAVA11_HOME=C:\OpenJDK\java-11.0.1 C:\>echo %JAVA11_HOME% C:\OpenJDK\java-11.0.1 C:\>%JAVA11_HOME%/bin/java -version openjdk version "11.0.1" 2018-10-16 OpenJDK Runtime Environment 18.9 (build 11.0.1+13) OpenJDK 64-Bit Server VM 18.9 (build 11.0.1+13, mixed mode) Click to expand... Last edited: May 29, 2020 Upvote 0
first check which version of Java and environment variables C:\>java -version java version "1.8.0_251" Java(TM) SE Runtime Environment (build 1.8.0_251-b08) Java HotSpot(TM) 64-Bit Server VM (build 25.251-b08, mixed mode) C:\>echo %JAVA_HOME% C:\Program Files\Java\jdk1.8.0_241 Click to expand... A simple solution to run java 11. Create a workable environment called JAVA11_HOME that contains the path of JDK11. EXAMPLE (use set for session or setx for permanent) C:\>set JAVA11_HOME=C:\OpenJDK\java-11.0.1 C:\>echo %JAVA11_HOME% C:\OpenJDK\java-11.0.1 C:\>%JAVA11_HOME%/bin/java -version openjdk version "11.0.1" 2018-10-16 OpenJDK Runtime Environment 18.9 (build 11.0.1+13) OpenJDK 64-Bit Server VM 18.9 (build 11.0.1+13, mixed mode) Click to expand...