B4J Question Compile to Library

peggjones

Active Member
Licensed User
Longtime User
I want to be able to create a shortcut to a program on my desktop, I assume this means I will have to compile to a library but when trying to compile to a library I get -

Parsing code. 0.01
Compiling code. Error
No modules to compile.
The following modules are excluded from library compilation:
main

The program has just a main module and nothing else, so the error makes sense in a way.

Any ideas anyone?
 

agraham

Expert
Licensed User
Longtime User
Wrong assumption. Libraries are compiled code modules for incorporation into complete projects. For a Windows shortcut just place the jar from the Object folder where you want it to finally rest then right-click and drag it to the desktop to create a short cut. If Java is set up correctly it will run the program when you double click the shortcut.
 
Upvote 0
Top