PDA

View Full Version : Launcher Problem on Windows (space in path)



MarkusJ
04-24-2003, 10:21 AM
Hi

Our java application installs fine. :-)
The launchers work fine under Linux. :-)

Under Windows, when double-clicking on the icon, or when running the .exe file from the command line it says:

java.lang.NoClassDefFoundError: Files\eGlutek\...\lib/file1.jar;C:\Program
Exception in thread "main"

First I think there might be a problem with the space in "Program Files".
Secondly it puts slashes '/' instead of back-slashes '\' after "lib".

The classpath is constructed in the launcher bean with $P(componentBean.absoluteInstallLocation)/file1.jar

We use '/' there and expected this to be java notation which would be adapted during installation. Is the asumption wrong?

The jar files are the ones we install. Do we have to reference them differently, like $P(componentBean.absoluteInstallLocation)/$P(componentBean.fileName) ?

Jeff Dillon
04-24-2003, 01:08 PM
>The classpath is constructed in the launcher bean with $P
>(componentBean.absoluteInstallLocation)/file1.jar

It should work to simply double quote the classpaths in the launcher bean. Like...

"$P(componentBean.absoluteInstallLocation)/file1.jar"

MarkusJ
04-25-2003, 02:14 AM
Thanks for your info

It works now!

Best regards
Markus:) :)