Question:
Attempting to run a simple wizard generated EJB causes the following message
to appear in red in the Message pane:
Exiting! Could not find a valid product license.
Answer:
If the installation of JBuilder 6 and BES are not completed together, then
Server configuration in the Project Properties will require editing.
Go to:
Project | Project Properties | Servers | [...] | Enterprise Application
Server 5.0 | Edit... | VM Paramaters
Now, edit the VM Parameters field so that all of the path entries point
to a valid installation of BES.
For example:
-Djava.library.path=C:/BorlandEnterpriseServer/lib;C:/BorlandEnterpriseServer/bin
-Dborland.enterprise.licenseDir=C:/BorlandEnterpriseServer/var/servers/MyServer/adm
-Dejb.module_preload=true
Next, after it is correctly set, copy the entire line to the clipboard,
and paste the line in the Project Properties for the EJB project:
Project | Project Properties | Run | VM Parameters