Javax.swing.grouplayout does not exist in jdk 1.5

I developed a Java application with netbeans. He used jdk 1.6.

It works great.

But now I need to create a jar for the application from .java files on another computer without netbeans and where jdk 1.5 is used. I can not upgrade this machine to jdk 1.6.

Is it possible to somehow compile and process java files on a jdk 1.5 machine with a possible minimal change to the source code.

Error javax.swing.grouplayout is not available in jdk 1.5

Please, help...

+4
source share
2 answers

Use netbeans settings and select org.jdesktop ...., manually update the generated code by right-clicking on the form (Window Inspector -> select swing layout extensions instead of the standard java6 code).

+6
source

For NetBeans, see John Doe's answer. For Eclipse with MyEclipse, so you can use Matisse, in the structure view, select the form. Now, in the property view, look at “Layout Generation Style” and select “Layout Layout Extension Library” rather than “Standard Java 6 Code”.

+2
source

All Articles