Just to be clear, I am working in Netbeans 12.6 on both computers.  Absolute 
Layout works at home, but at my office it throws

java.io.IOException: no module org.netbeans.modules.form
at 
org.netbeans.modules.apisupport.project.queries.ModuleProjectClassPathExtender.addLibraries(ModuleProjectClassPathExtender.java:108)
at 
org.netbeans.spi.java.project.classpath.ProjectClassPathModifierImplementation$Accessor.addLibraries(ProjectClassPathModifierImplementation.java:401)
at 
org.netbeans.api.java.project.classpath.ProjectClassPathModifier.addLibraries(ProjectClassPathModifier.java:86)
at 
org.netbeans.modules.nbform.project.ClassSourceResolver$LibraryEntry.addToProjectClassPath(ClassSourceResolver.java:208)
at 
org.netbeans.modules.form.project.ClassSource.addToProjectClassPath(ClassSource.java:89)
at 
org.netbeans.modules.form.project.ClassPathUtils$2.run(ClassPathUtils.java:245)
at 
org.netbeans.modules.progress.ui.RunOffEDTImpl$ProgressBackgroundRunner.runBackground(RunOffEDTImpl.java:465)
at 
org.netbeans.modules.progress.ui.AbstractWindowRunner.call(AbstractWindowRunner.java:86)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1418)
at org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:45)
at org.openide.util.lookup.Lookups.executeWith(Lookups.java:278)
at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2033)

________________________________
From: Peter Blemel <[email protected]>
Sent: Tuesday, January 18, 2022 10:54 AM
To: [email protected] <[email protected]>; NetBeans Mailing List 
<[email protected]>
Subject: Re: Updating an Old Plugin and Having Issues

Sean,

Your post inspired me to dust off an old Platform application of mine (a 
general Predicate Logic editor, among other things).  Hopefully, I can get back 
into the swing of things enough to be of some use around this mailing list 🙂.

My application was using Platform 6.8. I'm trying to get it running in 12.6. 
There's been some Platform module refactoring since 6,8, but in general I just 
had to add module dependencies to get everything to compile.

Where this is relevant to you is that I ran into a problem with old Form Editor 
autocode that depends on the old Swing Layout Extensions Integration (or 
whatever it was called, specifically it used org.jdesktop.layout.GroupLayout).  
On my home system, I was able to change the layout to "Absolute" from "Free 
Design" and everything worked great. I just tried doing the same thing on my 
work desktop, and I ran into a "no module org.netbeans.modules.form" error.

I don't know the difference between the two systems, except possibly that 1) 
this office machine has only has 12.0 on it and 2) is running a newer Open JDK 
17 that I just installed.  The home machine had 12.0 and 12.2 that I 
uninstalled to make room for 12.6. I am not sure which JDK it uses, possibly 11 
(I will have to drive home to check, my VPN is one-way).

I will need to ferret out what the difference between the two machines is. One 
seems to have no problem with the form module. The other does.

Best,
Peter

[cid:81db9cc6-8e29-42ba-aec7-d6a0d3c3f72f]
[cid:72bf27bc-9b5c-49d0-bcdf-30b29545f19b]

________________________________
From: Sean Carrick <[email protected]>
Sent: Sunday, January 16, 2022 5:54 PM
To: [email protected] <[email protected]>; NetBeans Mailing List 
<[email protected]>
Subject: Updating an Old Plugin and Having Issues

Hey All!

I am updating an old plugin to bring it up to NetBeans 12.6 and have run
into an issue. The old code is using
*org.netbeans.modules.form.FormEditorSupport*i, but when I try to include
it, it does not seem to be found.

Did this class get moved to a different module? Was it dropped altogether?

What I am attempting to update is locating the variables (edit-blocked)
section in the form class and get its offset so that I can declare
variables just below it. The original code is:

if (c instanceof FormEditorSupport) {
    doc = c.getDocument();
    pos = ((FormEditorSupport)
c).getVariablesSection().getStartPosition().getOffset();
} else {
    // ... rest of code goes on for lines and lines ...

IF someone can point me in the right direction, it will be greatly
appreciated!

Sincerely,

Sean Carrick
Owner - PekinSOFT Systems
[email protected]
(309) 989-0672

Reply via email to