Share My Creation [B4X] [TOOL][SOURCE] lm Snippets Manager

I definitely want to speed up the development of my softwares; I decided to develop a very useful snippets manager.

Although the main purpose is to have all your snippets at your fingertips, saved in a local db, cataloged and easy to find, I have also added the possibility of inserting those that are on b4x.com and also a link to their page.

I am sure that it will also be of use to all the members of our beautiful community.

I'll fill it with my own snippets, as I'm sure you will too, but also the best and most useful ones that are on site.


NEW Version 3.0.0 - 07/19/2022 - Replaced the import-export part.

Version 2.3.0 - 03/29/2022 - Added import-export.

Version 2.2.0 - Added "wildcards" to filter for snippet name. Also added ToolTipTexts. See post #86.

Version 2.1.0 - Added a very useful list of most recent snippets used (window always on top). See post #40.

Ready 2.0.0 version, which implements the feature shown in
post #34, code highlighting (which had a hard to solve bug).

Source code - Min. donation: 16 euros.
Obviously you are not allowed to publish/sell the lmSnippetManager source code.

NOTE: to create the stand-alone (exe) version, use:
Download OpenJDK 14.0.1
EDIT: see this post. You have to add javafx folder to that OpenJDK 14.0.1.




Made with love in B4X... of course!!!
 
Last edited:

toby

Well-Known Member
Licensed User
Longtime User
@LucaMs, I can only run the app in the IDE with Java 14, which is inconvenient. Are you able to run it from a standalone packager or by double-clicking the jar file?
 

toby

Well-Known Member
Licensed User
Longtime User
The latest version of Java SDK with Java FX that works with B4J 9.8 is Java11. Can you, @LucaMs, make lmSnippetManager3.00 work with Java11?
 

LucaMs

Expert
Licensed User
Longtime User
Last edited:

toby

Well-Known Member
Licensed User
Longtime User
Yes, I can; I have just to remove all the GUI 😁
But it works with Java8, at least inside IDE; I just can't create a standalone packager
You can find a lot of posts about it; I had already suggested one to you:
https://www.b4x.com/android/forum/threads/update-openjdk.140167/post-887747
I tried that and it didn't work for me; I'm too lazy to learn JavaFX and set it up manually. I just want to be able to compile a jar file or build a standalone package so that I don't need B4j IDE daily to use your useful tool.;)
 

T201016

Active Member
Licensed User
Longtime User
@LucaMs, I can only run the app in the IDE with Java 14, which is inconvenient. Are you able to run it from a standalone packager or by double-clicking the jar file?
Hello, @LucaMs
First of all, thank you for providing the new version of lmSnippetManager,
a really useful product for me.

However, recently compiled .JAR won't start (by double-clicking),
interestingly, it starts in the IDE B4J itself.

The project compiles correctly under both Java 14.0.1 and 18.0.1
The changes I made are only the installation to the new version 9.80 B4J in the architecture (64 bit).
Unfortunately, the culprit should be looked for, as usual, in Java itself, can you confirm it?
 

toby

Well-Known Member
Licensed User
Longtime User
However, recently compiled .JAR won't start (by double-clicking),
interestingly, it starts in the IDE B4J itself.

The project compiles correctly under both Java 14.0.1 and 18.0.1
 

toby

Well-Known Member
Licensed User
Longtime User
1, Go-to Control panel ->programs and features
2. Uninstall java 14 and 18 if found.
3. Use java 8 for both b4j and the source code.
4. Compile the project. You should be able to double click the jar file to run it.
 

toby

Well-Known Member
Licensed User
Longtime User
Java 11 was working for me until I installed Java 14, and even uninstalling it wouldn't undo every change to the system. Fortunately I have Acronis trueimage backups which can be used to truly restore my computer system.
 

T201016

Active Member
Licensed User
Longtime User
Java 11 was working for me until I installed Java 14, and even uninstalling it wouldn't undo every change to the system. Fortunately I have Acronis trueimage backups which can be used to truly restore my computer system.

I suppose the same happened after my installation of OpenJDK 14 and 18. Previously, I had the Java 8 version of Oracle, and everything worked for me. But finally, after purging all versions, I went back to Oracle JDK 8 and both .JAR and the .EXE executable - (Launch4j) work.
 

toby

Well-Known Member
Licensed User
Longtime User
I still use Java 8 and so I can run my lnSnippetManager.jar
Your out-of-the-box source code uses java14, if I remember correctly, which led me to believe that it works better or only with java14, wasting a lot of time. 🤔
 

LucaMs

Expert
Licensed User
Longtime User
Your out-of-the-box source code uses java14, if I remember correctly, which led me to believe that it works better or only with java14, wasting a lot of time. 🤔
Actually it worked compiling with jdk 14.0.1, now not anymore but I didn't want to investigate (the source has nothing to do with it, since the last update has no graphic parts involved).
 
Top