Deploying a jdeveloper adf application to a desktop jar file

Advertisement
I have a problem when trying to run an .adf Form that is in the jar.
My Manifest.mf looks like this
Manifest-Version: 1.0
Main-Class: dfg.model.FormUsr1View1
When I change it to run a none .adf form like
Manifest-Version: 1.0
Main-Class: dfg.model.Form1
it runs with no problems.
At both cases I use commnd line like this:
java -jar  dfg.jar
I have also a libs folder in my jar (including all adf jars) and also tried using the following Manifest.MF
Manifest-Version: 1.0
Class-Path: \libs
Main-Class: dfg.model.FormUsr1View1
I 'd appreciate any help!
Edited by: Georgekl on 26 Ιαν 2011 5:20 μμ
Advertisement

Replay

I am now stuck getting the following with my .jar
java -jar dfg.jarException in thread "main" java.lang.NoClassDefFoundError: oracle/adf/model/binding/DCErrorHandler
Caused by: java.lang.ClassNotFoundException: oracle.adf.model.binding.DCErrorHandler
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
Could not find the main class: dfg.model.FormUsr1View1. Program will exit