fesch / Structorizer.Desktop

Structorizer is a little tool which you can use to create Nassi-Schneiderman Diagrams (NSD).
https://structorizer.fisch.lu
GNU General Public License v3.0
65 stars 20 forks source link

Can't import Code #1079

Closed PauLeeBaer closed 1 year ago

PauLeeBaer commented 1 year ago

Hello, I use Structorizer for my school works and have the problem that I can't import my java code into the program... I only can import this pascal code, idk what this even is, some classmates use the program too and only one of them can do this. I hope someone can help with my issue. Best regards

fesch commented 1 year ago

Do you have any error message on screen or in the console?

codemanyak commented 1 year ago

What exactly is going wrong on the attempt to import Java code? Do you get a parser error or doesn't your Structorizer version offer to import Java files? Would you mind telling us the Structorizer version you are using, uploading a minimum Java code sample that fails to be imported and having a look for your import settings in Structorizer (menu item "Preferences > Import", in particular with the Java-specific options (press the left button within the blue oval after having chosen "Java-SE8" in the choice item, see screenshot)? grafik

codemanyak commented 1 year ago

@PauLeeBaer FYI: The Java import capability was integrated into Structorizer with release 3.31, so if you happen to use an older version then there won't be a chance to import Java code unless you replace it by an up-to-date Structorizer version.

PauLeeBaer commented 1 year ago

With the newest version it doesn't even start and with the version 3.21 its starts but only with limited features

codemanyak commented 1 year ago

@PauLeeBaer

With the newest version it doesn't even start and with the version 3.21 its starts but only with limited features

I see. So my next guess is that you will have to upgrade the underlying Java JDK or RE to at least version 11 as well, because that is what the contemporary Structorizer versions require (see #1031 or #1076 for instance or consult the online User Guide).

PauLeeBaer commented 1 year ago

@PauLeeBaer

With the newest version it doesn't even start and with the version 3.21 its starts but only with limited features

I see. So my next guess is that you will have to upgrade the underlying Java JDK or RE to at least version 11 as well, because that is what the contemporary Structorizer versions require (see #1031 or #1076 for instance or consult the online User Guide).

I have these in my programm folder image I think this is java 19

PauLeeBaer commented 1 year ago

I have to edit if i use the latest version it just starts shows me the starting screen and then it just disappeare image

codemanyak commented 1 year ago

Apparently you have both Java 8 (the JRE) and Java 19 (the JDK) on your computer. Maybe Structorizer is groping for the JRE first und thus ends up dangling. You might try to unpack version 3.31-04 from the old releases on GitHub and have a look into the path view ("Help > About > Paths") to find out what Java version Structorizer is using. If it gropes Java 8 (what I suspect) then you should try to switch off (disable) Java RE 1.8... (via the Oracle Java monitor) in the hope that Structorizer will then accept the JDK 19 instead.

PauLeeBaer commented 1 year ago

Apparently you have both Java 8 (the JRE) and Java 19 (the JDK) on your computer. Maybe Structorizer is groping for the JRE first und thus ends up dangling. You might try to unpack version 3.31-04 from the old releases on GitHub and have a look into the path view ("Help > About > Paths") to find out what Java version Structorizer is using. If it gropes Java 8 (what I suspect) then you should try to switch off (disable) Java RE 1.8... (via the Oracle Java monitor) in the hope that Structorizer will then accept the JDK 19 instead.

OMG!! I have to thank u... It worked with ur version...

codemanyak commented 1 year ago

OMG!! I have to thank u... It worked with ur version...

I guess this means you are working with the (obsolete) Structorizer version 3.31-04 on Java RE 8 now? This will enable you to import Java (SE8) code, at least. But on the long run, I recommend to use the newest Structorizer version (on e.g. Java SDK 19) if you want to get rid of the meanwhile fixed bugs and take advantage of all the newer features. But never mind if I got you wrong. I'm glad you can work now. Think we can close this issue now?

PauLeeBaer commented 1 year ago

OMG!! I have to thank u... It worked with ur version...

I guess this means you are working with the (obsolete) Structorizer version 3.31-04 on Java RE 8 now? This will enable you to import Java (SE8) code, at least. But on the long run, I recommend to use the newest Structorizer version (on e.g. Java SDK 19) if you want to get rid of the meanwhile fixed bugs and take advantage of all the newer features. But never mind if I got you wrong. I'm glad you can work now. Think we can close this issue now?

Yes, we can close it... how do i close it?

codemanyak commented 1 year ago

You should see a "Close with comment" button next to the "Comment" button beneath the Comment form... But I just closed it myself now. Thanks!