Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Self-contained jar doesn’t open properties panel #34

Open
simonjwright opened this issue Oct 1, 2020 · 3 comments
Open

Self-contained jar doesn’t open properties panel #34

simonjwright opened this issue Oct 1, 2020 · 3 comments

Comments

@simonjwright
Copy link

Having created a self-contained jar file as in #21,

mvn package -DskipTests=true

and then running using

java -jar src/argouml-build/target/argouml-jar-with-dependencies.jar

the properties panel at the bottom of the window (see attached) fails to open except when browsing to a diagram. Log:

SEVERE: Failed to create a prop panel for: Model$Impl  ID: -64--88-1-93--74d54626:174e3a72d54:-8000:0000000000000B7D  MID: -64--88-1-93--74d54626:174e3a72d54:-8000:000000000000060D  OPCKG: -64--88-1-93--74d54626:174e3a72d54:-8000:0000000000000622

This works as I expected with

java -jar src/argouml-build/build/argouml.jar

Macbook Pro 13" early 2015
macOS Catalina 10.15.7
java version "1.8.0_152"
Java(TM) SE Runtime Environment (build 1.8.0_152-b16)
Java HotSpot(TM) 64-Bit Server VM (build 25.152-b16, mixed mode)
2322d07

image

@stcarrez
Copy link
Contributor

stcarrez commented Oct 4, 2020

To launch ArgoUML with the jar, I'm using the following:

DIR=<installation-dir>
java -Dargouml.profiles.directory=$DIR/uml/ \
 -Dlog4j.configuration=org/argouml/resource/full_console.lcf \
 -Djava.util.logging.config.file=$DIR/argouml.properties \
 -Dargouml.modules=org.argouml.activity2.ActivityDiagramModule;org.argouml.sequence2.SequenceDiagramModule;org.argouml.core.propertypanels.module.XmlPropertyPanelsModule;org.argouml.transformer.TransformerModule \
 -jar argouml.jar

I guess what is important is the definition of -Dargouml.modules.

@simonjwright
Copy link
Author

I don’t understand, according to #21 this was supposed to be "a single jar with dependencies that we can use to distribute and launch ArgoUML", to launch with

java -jar argouml-jar-with-dependencies.jar

@linustolke
Copy link
Member

The loading of modules is a mess. We need to work with it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants