I upgraded to B4J 4.0
The IDE executes properly and I can develop and execute code from within the IDE, but if I try to double-click on the Objects Jar file or if I open a command prompt and try to execute the Objects Jar file directly, I get the error "Error: Could not find or load main class"
For example I execute the following command from a command prompt within the Objects directory:
>C:\Java\jdk1.8.0_66\bin\java.exe extract.jar
I get:
Error: Could not find or load main class extract.jar
I can open and run the .b4j file from the IDE, however.
Using previous versions of B4J I had no trouble executing the Jar files that were produced when I double clicked on the Jar file.
The following comes from my investigations – it may be totally unrelated.
Some web searches have suggested that my Java_Path variable is pointing to invalid symlinks
They suggests that I do some "mklink" commands from an administrator command prompt.
I wasn't sure how to easily get an administrator command prompt – so I punted.
Is my error due to a configuration problem? Because of other application problems I had to relocate my JDK installation from C:\Program files\Java to C:\Java so I wouldn't be surprised if something is pointing to the wrong place.
If the solution does require updating the Symbolic links, could you give a very brief description of how to open an administrator command prompt and issue the proper commands?
Is the solution something else?
Thanks,
Barry.
The IDE executes properly and I can develop and execute code from within the IDE, but if I try to double-click on the Objects Jar file or if I open a command prompt and try to execute the Objects Jar file directly, I get the error "Error: Could not find or load main class"
For example I execute the following command from a command prompt within the Objects directory:
>C:\Java\jdk1.8.0_66\bin\java.exe extract.jar
I get:
Error: Could not find or load main class extract.jar
I can open and run the .b4j file from the IDE, however.
Using previous versions of B4J I had no trouble executing the Jar files that were produced when I double clicked on the Jar file.
The following comes from my investigations – it may be totally unrelated.
Some web searches have suggested that my Java_Path variable is pointing to invalid symlinks
They suggests that I do some "mklink" commands from an administrator command prompt.
I wasn't sure how to easily get an administrator command prompt – so I punted.
Is my error due to a configuration problem? Because of other application problems I had to relocate my JDK installation from C:\Program files\Java to C:\Java so I wouldn't be surprised if something is pointing to the wrong place.
If the solution does require updating the Symbolic links, could you give a very brief description of how to open an administrator command prompt and issue the proper commands?
Is the solution something else?
Thanks,
Barry.