Discussions
Categories
- 196.8K All Categories
- 2.2K Data
- 238 Big Data Appliance
- 1.9K Data Science
- 450.2K Databases
- 221.7K General Database Discussions
- 3.8K Java and JavaScript in the Database
- 31 Multilingual Engine
- 550 MySQL Community Space
- 478 NoSQL Database
- 7.9K Oracle Database Express Edition (XE)
- 3K ORDS, SODA & JSON in the Database
- 544 SQLcl
- 4K SQL Developer Data Modeler
- 187K SQL & PL/SQL
- 21.3K SQL Developer
- 295.8K Development
- 17 Developer Projects
- 138 Programming Languages
- 292.5K Development Tools
- 107 DevOps
- 3.1K QA/Testing
- 646K Java
- 28 Java Learning Subscription
- 37K Database Connectivity
- 154 Java Community Process
- 105 Java 25
- 22.1K Java APIs
- 138.1K Java Development Tools
- 165.3K Java EE (Java Enterprise Edition)
- 17 Java Essentials
- 160 Java 8 Questions
- 86K Java Programming
- 80 Java Puzzle Ball
- 65.1K New To Java
- 1.7K Training / Learning / Certification
- 13.8K Java HotSpot Virtual Machine
- 94.3K Java SE
- 13.8K Java Security
- 204 Java User Groups
- 24 JavaScript - Nashorn
- Programs
- 436 LiveLabs
- 38 Workshops
- 10.2K Software
- 6.7K Berkeley DB Family
- 3.5K JHeadstart
- 5.7K Other Languages
- 2.3K Chinese
- 171 Deutsche Oracle Community
- 1.1K Español
- 1.9K Japanese
- 232 Portuguese
Error java -jar frmsal.jar -url

It is giving me the following error when I try to connect to the application by launching the following command
java -jar frmsal.jar -url "http://xx.xx.xx.xx:9001/forms/frmservlet?config=standaloneapp&form=METFACT.fmx"
Inspeccionando los archivos de almacenamiento en el directorio de caché C:\Users\RAMON~1.VIC\AppData\Local\Temp\frmsal\130.162.33.232\12.2.1.4
Usando el archivo almacenado en caché frmall.jar desde el subdirectorio de caché 7gk3pjtnpp47cgqij83js5ns9
Exception in thread "main" java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at oracle.forms.saa.FormsStandAloneApp.main(Unknown Source)
Caused by: java.lang.NoClassDefFoundError: oracle/forms/engine/Main
at oracle.forms.saa.FormsStandAloneApp.run(Unknown Source)
at oracle.forms.saa.FormsStandAloneApp.run(Unknown Source)
... 5 more
Caused by: java.lang.ClassNotFoundException: oracle.forms.engine.Main
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
... 7 more
I have tried downloading frmsal.jar again and the same error follows.
I have also tried to execute java -jar frmsal.jar -url "http://xx.xx.xx.xx:9001/forms/frmservlet?config=standaloneapp"and it gives the same error, does anyone know why it can happen?
Comments
-
In the shell (DOS) you are using, type the following:
java -version
Assuming you are running Forms 12.2.1.4, you should be using Java 8u211 or newer in the v8 family. You can use a newer major version, but only v11 or 17. Do not attempt to use Java versions newer than v17 at this time.
Also, be sure you are downloading the launcher (frmsal.jar) from the same server you plan to run against. Do not download the file from a different server.
Michael Ferrante
Senior Principal Product Manager
Oracle
Twitter: @OracleFormsPM
-
The version that I have from the computer that I execute it is the following java version "1.8.0_331" and I have downloaded the frmsal.jar from the server
-
Do the following:
o Stop and restart the Forms managed server (e.g. WLS_FORMS).
o On the user machine, delete all the contents in (including sub-directories) from here:
C:\Users\RAMON~1.VIC\AppData\Local\Temp\frmsal\
o Open a browser and enter this URL (replace the xx with your server) and verify that you are prompted to Save the frmall.jar file (you do not need to save it - just confirm you are prompted):
http://xx.xx.xx.xx:9001/forms
/java/frmall.jaro Retest
Michael Ferrante
Senior Principal Product Manager
Oracle
Twitter: @OracleFormsPM
-
Restarted the service, deleted the contents of the folder and tried to download the file frmall.jar but it still gives the same error
java -jar frmsal.jar -url "http://xxxxxx:9001/forms/frmservlet?config=standaloneapp&form=METFACT.fmx"
Inspeccionando los archivos de almacenamiento en el directorio de caché C:\Users\RAMON~1.VIC\AppData\Local\Temp\frmsal\xxxxx\12.2.1.4
Descargando archivo frmall.jar en el subdirectorio de caché 7gk3pjtnpp47cgqij83js5ns9
Exception in thread "main" java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at oracle.forms.saa.FormsStandAloneApp.main(Unknown Source)
Caused by: java.lang.NoClassDefFoundError: oracle/forms/engine/Main
at oracle.forms.saa.FormsStandAloneApp.run(Unknown Source)
at oracle.forms.saa.FormsStandAloneApp.run(Unknown Source)
... 5 more
Caused by: java.lang.ClassNotFoundException: oracle.forms.engine.Main
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
... 7 more
-
For the most part, the error is self-explanatory;
ClassNotFoundException
This suggests that a needed JAR cannot be found. I suppose although it claims to be looking for frmall.jar, it might be looking for another. Verify that your ARCHIVE setting does not include any JAR files except frmall.jar. If you do have additional entries in ARCHIVE, ensure that the JARs mentioned are in the /forms/java directory. If you make any changes to this directory, you will need to bounce WLS_FORMS
Also verify that the temp directory noted by the Launcher contains frmall.jar, which should have been downloaded from the server by the Launcher.
C:\Users\RAMON~1.VIC\AppData\Local\Temp\frmsal\xxxxx\12.2.1.4
Michael Ferrante
Senior Principal Product Manager
Oracle
Twitter: @OracleFormsPM
-
Add another additional entry and the directory you indicate are both .jar