Deploying Java Desktop App using executable JAR files
843807Jun 10 2003 — edited May 31 2004Hi there.
Today I am very optimistic about java. I am a beginner, and I had tried (in my few free time) to understand how to deploy java desktop apps.
I am using the lattest NetBeans IDE to do the programming and it is very very fast and optimized.
Going to the point, I tried some time ago to deploy an application (made with this IDE) using JAR files, but even though the application run well on my IDE, when I packed it, it rised an error saying that
java.lang.NoClassDefFoundError: org/netbeans/lib/awtextra/AbsoluteLayout
I was using an absolute layout on my JFrame forms and this AbsoluteLayout is provided by netbeans and not by the normal SDK.
I then looked for the absolute layout class and found a jar file in the following path:
C:\netbeans\modules\ext\AbsoluteLayout.jar
So I mounted the Jar file in my File Systems and then added the contents of the file to myApp.Jar file.
I used the automated Jar Recipe Packaging feature of netbeans, that is why I needed to mount the AbsoluteLayout.jar file into my file systems.
Now it runs fine by just right clicking the MyApp.jar file from Windows Explorer.
In a next reply to this topic I will include some sample code so that anybody requiring to do such implementation can take this for help.
Regards!
JN