Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

javax.swing.grouplayout not exist in jdk 1.5

I developed a java application with netbeans. It used jdk 1.6.

It works fine.

But now the requirement is I need to build the jar for the application from the .java files in another machine without netbeans and where jdk 1.5 is used. I cannot upgrade that machine to jdk 1.6.

Is there any way I could make my java files compile and work in jdk 1.5 machine with a possible minimal change to my source code..

The error is javax.swing.grouplayout not available in jdk 1.5

Please help...

like image 322
tamizhan Avatar asked Feb 28 '23 22:02

tamizhan


1 Answers

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

like image 139
John Doe Avatar answered Mar 05 '23 17:03

John Doe