sivaprasad9394
Occasional Collector

Debug Local Module via IDE for Site Architect throws error in openjdk 17?

Jump to solution

Hello Team,

I am getting the below error while debugging the module via Eclipse with openjdk 17 build.

Version: 5.2.240608.3e09d26 (I)

Java: 17.0.13

Some issue with,

javax.swing.UIManager, LookAndFeelUtil.java 

Error in Console Log:

WARN  19.11.2024 11:58:10.682 (de.espirit.firstspirit.logging.ClientLogging): Log directory 'C:\Users\si\.firstspirit_5.2R2406\logs' contains more than 100 files. Performing cleanup...
WARN  19.11.2024 11:58:10.682 (de.espirit.firstspirit.logging.ClientLogging): Deleting C:\Users\si\.firstspirit_5.2R2406\logs\SiteArchitect-2024-08-06T19-04-30.5907729.log
INFO  19.11.2024 11:58:11.030 (de.espirit.firstspirit.client.io.TempDirUtil): Setting java.io.tmpdir=C:\Users\si\AppData\Local\Temp\FirstSpirit_1731997691028
Exception in thread "main" java.lang.IllegalAccessError: class de.javasoft.plaf.synthetica.SyntheticaLookAndFeel (in unnamed module @0x2357d90a) cannot access class sun.swing.DefaultLookup (in module java.desktop) because module java.desktop does not export sun.swing to unnamed module @0x2357d90a
	at de.javasoft.plaf.synthetica.SyntheticaLookAndFeel.initialize(SyntheticaLookAndFeel.java:674)
	at java.desktop/javax.swing.UIManager.setLookAndFeel(UIManager.java:592)
	at java.desktop/javax.swing.UIManager.setLookAndFeel(UIManager.java:639)
	at de.espirit.common.gui.LookAndFeelUtil.setLookAndFeel(LookAndFeelUtil.java:53)
	at de.espirit.firstspirit.client.JavaClient.<clinit>(JavaClient.java:194)
	at de.espirit.firstspirit.client.FirstSpiritSiteArchitect.start(FirstSpiritSiteArchitect.java:30)
	at de.espirit.firstspirit.client.bootstrap.DesktopClientApplication.start(DesktopClientApplication.java:41)
	at de.espirit.common.bootstrap.Bootstrap.start(Bootstrap.java:282)
	at de.espirit.common.bootstrap.Bootstrap.start(Bootstrap.java:128)
	at de.espirit.common.bootstrap.Bootstrap.main(Bootstrap.java:395)

 

Eclipse Configurations:

Error_1.png

 

 

 

 

Error_2.png

 

 

 

 

Error_3.png

 

 

 

 

Error_4.png

 

 

 

Error_5.png

 

 

 

 

What else i am missing here for debugging Site Architect?

How to debug Site Architect here?Every new version have to do the configuration and changes required.

 

Thank you.

 

0 Kudos
1 Solution

Accepted Solutions
hbarthel
New Responder

You can try to add the following VM arguments:

 

--add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.desktop/java.awt.event=ALL-UNNAMED --add-opens=java.desktop/javax.swing.plaf.basic=ALL-UNNAMED --add-opens=java.desktop/javax.swing.plaf.synth=ALL-UNNAMED --add-opens=java.jnlp/javax.jnlp=ALL-UNNAMED --add-exports=java.base/sun.security.action=ALL-UNNAMED --add-exports=java.desktop/com.apple.eawt=ALL-UNNAMED --add-exports=java.desktop/sun.awt=ALL-UNNAMED --add-exports=java.desktop/sun.awt.shell=ALL-UNNAMED --add-exports=java.desktop/sun.swing=ALL-UNNAMED --add-exports=java.desktop/sun.swing.plaf.synth=ALL-UNNAMED --add-exports=java.desktop/sun.swing.table=ALL-UNNAMED

 

 

View solution in original post

2 Replies
hbarthel
New Responder

You can try to add the following VM arguments:

 

--add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.desktop/java.awt.event=ALL-UNNAMED --add-opens=java.desktop/javax.swing.plaf.basic=ALL-UNNAMED --add-opens=java.desktop/javax.swing.plaf.synth=ALL-UNNAMED --add-opens=java.jnlp/javax.jnlp=ALL-UNNAMED --add-exports=java.base/sun.security.action=ALL-UNNAMED --add-exports=java.desktop/com.apple.eawt=ALL-UNNAMED --add-exports=java.desktop/sun.awt=ALL-UNNAMED --add-exports=java.desktop/sun.awt.shell=ALL-UNNAMED --add-exports=java.desktop/sun.swing=ALL-UNNAMED --add-exports=java.desktop/sun.swing.plaf.synth=ALL-UNNAMED --add-exports=java.desktop/sun.swing.table=ALL-UNNAMED

 

 

sivaprasad9394
Occasional Collector

Hi hbarthel,

 

thank you for your reply and time.

My issue is resolved now.

connected.png

0 Kudos