Click to See Complete Forum and Search --> : java in netbeans


rockhard
June 21st, 2004, 02:57 AM
hello...i hope some1 can help me.....

i wrote a java program in netbeans and it runs okay.... but when i created a jar executable there's always this error:


java.lang.NoClassDefFoundError: org/netbeans/lib/awtextra/AbsoluteLayout


i dont know what files to add to the jar file i created please help...


thanx....

cjard
June 21st, 2004, 06:02 AM
helpfully, you have created a program using a custom, non-standard layout manager that is a part of Net|Beans. your program will work within netbeans, but if the end user does not have that library, then the program will not run. either provide the library that includes the relevant class, or modify your program so it does not use an absoluteLayout..

GridBag is better, is a core layout manager, so none of the NoClassDefFoundErrors, and there's a tutorial to its use in my signature..

rockhard
June 21st, 2004, 08:44 PM
hello cjard...thank you very much for your reply, but first i will try to include the netbeans lib, if unsucessful then i will try ur sugesstion.. thanx again..

cjard
June 22nd, 2004, 06:49 AM
well, if it functions as its name suggests.. then absolutelayout is not very good at all.. learning a new layout manager that is good and flexible, will be a much better proposition for the future...